Professional Documents
Culture Documents
Lab No 1
Lab No 1
OBJECTIVE:
Follow the instructions to get familiar with the NI LabVIEW software and to design a virtual
calculator to perform basic arithmetic operation using the software.
THEORY:
Short Introduction to LabVIEW
1 - Getting Started
LabVIEW programs are called Virtual Instruments, or VIs, because their appearance and
operation imitate physical instruments, such as oscilloscopes and multimeters. When opening
LabVIEW, you first come to the “Getting Started” window. Select “File → New VI (Ctrl + N)” to
get started.
STEPS OF CONSTRUCTION:
1. Select File» New to open a new front panel.
2. Create a numeric digital control. Use this control to enter the value of input number.
To wire from one terminal to another, use the Wiring tool to click the first terminal,
move the tool to the second terminal, and click the second terminal.
7. Display the front panel by clicking it or by selecting Window» Show Panel.
8. Enter a number in the digital control and run VI.
Use the Operating tool or the Labeling tool to double-click the digital control and type a
new number.
Click the Run button to run the VI.
Try several different numbers and arithmetic operations and run the VI again.
9. Select File» Close to close the simple calculator VI.
RESULTS:
Task 1:
TASK NO 2:
Try to evaluate square root and square function or something else in this LabVIEW calculator in
addition to perform simple mathematical operations.
STEPS OF CONSTRUCTION:
Reciprocal function case
1. Select File» New to open a new front panel.
2. Create a numeric digital control.
3. Create a numeric digital indicator.
4. Display the block diagram by clicking it.
5. Now change the selector label to reciprocal, and from the Function Palette, select Numeric.
after this select reciprocal.
6. Use the Wiring tool to wire the icons.
To wire from one terminal to another, use the Wiring tool to click the first terminal,
move the tool to the second terminal, and click the second terminal.
7. Click the Run button to run VI.
8. Try several different numbers and arithmetic operations and run the VI again.
RESULTS:
Task 2:
Conclusion
In conclusion, NI LabVIEW offers a user-friendly platform for creating basic calculators. It can
also utilize the concept to build a more complex calculator using more than two operands.