Professional Documents
Culture Documents
Lab No 1
Lab No 1
OBJECTIVE:
To get familiar...........
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.
Task 1:
Create the following simple program that adds 2 numbers:
STEPS OF CONSTRUCTION:
1.Front Panel:
2.Block Diagram:
ADDITION CASE
From the Function Palette, select Numeric, and then select addition as shown in the figure
below.
Connect (wire) the different objects together like this:
Subtraction case
Now change the selector label to Subtract, and from the Function Palette, select Numeric, and
then select Subtract as shown in the figure below.
Connect the input side of this block to the input nodes of the case structure and the output side
to the output node of the case structure.
Multiplication case
Now change the selector label to Multiply, and from the Function Palette, select Numeric, and
then select Multiply, as shown in the figure below.
Firstly, connect the input side of this block to the input nodes of the case structure. Then
connect the output side to the output node of the case structure.
Division case
Now change the selector label to Divide, and from the Function Palette, select Numeric. After
this, select Divide, as shown in the figure below.
Connect the input side of this block to the input nodes of the case structure and the output side
to the output node of the case structure.
3.Output of Calculator
On the front panel, enter two values into the input control of the LabVIEW calculator. Then,
select the operation to perform and run the VI. After that the screen shows the output of the
calculator.
TASK NO 2:
Try to evaluate square root and square function as well in this LabVIEW calculator in addition to
simple mathematical operations.
STEPS OF CONSTRUCTION:
Square function case
Now change the selector label to square, and from the Function Palette, select Numeric. After
this, select square, as shown in the figure below.
Connect the input side of this block to the input nodes of the case structure and the output side
to the output node of the case structure.
RESULTS:
Conclusion
In conclusion, this tutorial provides an in-depth overview of designing a basic calculator in
LabVIEW’s VI. It also covers a step-by-step explanation of designing a block diagram for this
purpose. This helps us better understand the concept of designing a basic calculator in
LabVIEW. It can also utilize the concept to build a more complex calculator using more than two
operands.