Download as pdf or txt
Download as pdf or txt
You are on page 1of 49

BANASTHALI VIDYAPITH

BACHELOR OF TECHNOLOGY
(ELECTRONICS AND INSTRUMENTATION)

LAB MANUAL

SUBJECT: INDUSTRIAL INSTRUMENTATION


SUBJECT CODE: EIE-308
ID: BTBTN19064
ROLL NO.: 1913512
SUBMITTED TO: Shri Mohit Jain
SUBMITTED BY: SAKSHI
INDEX

1. Create a VI in LabVIEW to check the utility of following controls and indicators:

Numeric Control and Indicator

Boolean Control and Indicator

String Control and Indicator

Dial connected to Gauge and Meter

Thermometer to Numeric Indicator

Tank to Numeric Indicator

Vertical Slide Control to Horizontal Slide Control

2. Implement a VI to add, multiply, subtract and divide two numeric inputs.

3. Develop a VI to add and multiply more than two numeric inputs.

4. Create a VI to divide two numbers and find the remainder and quotient.

5. Implement a VI to compute the expressions Y = (A*B*C) + (D*E) and Y = mx + c.

6. Design a VI to compute the equations (X1+2)*log(X1) using functions, Expression

node and Express Formula for the given inputs X1.

7. Implement a VI to convert Celsius to Fahrenheit.

8. Implement a VI to find whether the given number is odd or even.

9. Develop a VI to find trigonometric values for the given angle. In LabVIEW,

computation of trigonometric values such as sine, cosine and tangent takes the input in

radians. Hence, angles in degrees are to be converted to radians before calculation.

10. Design a VI which perform various Boolean Operations (AND, OR, NAND, NOR,

XOR).

11. Develop a VI, which converts a binary number to a decimal number.

12. Implement and test a VI to split an input string into two outputs with reference to a

separating character. Find the length of the input string and reverse the string.

13. Design a VI to add two binary bits and find the sum and carry (half adder).

14. Create a VI to compute full adder logic using half adder logic as subVI.

15. Develop a VI to find the decimal equivalent of a binary number using subVI.

16. Design a VI to find the Grey code equivalent of a BCD number using subVIs
17. Implement a VI to find the average of two numbers and convert a section of a VI into

a subVI.

18. Design the front panel and block diagram of the Main VI to show the trigonometric

values (sine, cosine and tangent) of the given degree. This VI must use a subVI for

finding the trigonometric values.

19. Create a VI using For Loop, which changes the color of a color box automatically for

the given number of iterations.

20. Implement a VI to display the numbers 1 to 10 in a Numeric Indicator using a While

Loop. Use the conditional terminal Stop if True.

21. Create a VI to animate a bird flying. Use the Picture Ring control to insert and display

pictures to be animated.

22. Create a VI to find the factorial of the given number using For Loop and Shift Registers.

23. Develop a VI to find the sum of first n natural numbers using a While Loop with a

feedback node.

24. Create a VI to find the sum of first 10 natural numbers using a For Loop.

25. Implement a VI, which converts a decimal number to a binary number using For Loops.

26. Design a VI to find the factorial of a given number using a While Loop.

27. rolling of dice


Procedure
Setting up a Blank VI

1. Open LabVIEW and select Blank VI under Create Project.


2. Click Window > Tile Left and Right to display the front panel (left window)
and block daigram (right window) side by side. This will make them visible at
the same time, making it easier to work.
3. With the block daigram selected, click View > Tools Palette to open the Tools
palette.
4. With the front panel selected, click View > Controls Palette. The workspace
should look like Figure 1.1 To open the Controls palette in the future, simply
right click in the front panel. Similarly, to open the Functions palette, simply
right click in the block daigram.

Figure 1.1
For help with the operation of any LabVIEW icon, select Help > Show Context Help > click
the icon for the operation that is unclear. It will be explained in the Context Help window.
Exp: 1. Create a VI in LabVIEW to check the utility of
following controls and indicators:
Numeric Control and Indicator
Boolean Control and Indicator
String Control and Indicator
Dial connected to Gauge and Meter
Thermometer to Numeric Indicator
Tank to Numeric Indicator
Vertical Slide Control to Horizontal Slide Control.

FRONT PANEL:
Block Diagram Panel:

INPUT:
OUTPUT:

RESULT: Thus, the result has verified successfully on the


front panel
Exp: 2. Implement a VI to add, multiply, subtract and divide
two numeric inputs.

Block Diagram Panel:


FRONT PANEL:

INPUT:
OUTPUT:

Result:
Thus the arithmetic operations were performed and the result is
verified using lab view
Exp: 3. Develop a VI to add and multiply more than two
numeric inputs.

BLOCK DAIGRAM:

FRONT PANEL:
INPUT:
OUTPUT:

Result:
Thus the arithmetic operations were performed and the result is
verified using lab view
Exp No: 4. Create a VI to divide two numbers and find the
remainder and quotient.

BLOCK DAIGRAM:

FRONT PANEL:
INPUT:

OUTPUT:

Result:
Thus the arithmetic operations were performed and the result is
verified using lab view
Exp No: 5. Implement a VI to compute the expressions Y =
(A*B*C) + (D*E) and Y = mx + c.

BLOCK DAIGRAM:

FRONT PANEL:
INPUT ,OUTPUT:

Result:
Thus the arithmetic operations were performed and the result is
verified using lab view
Exp No: 6. Design a VI to compute the equations
(X1+2)*log(X1) using functions, Expression
node and Express Formula for the given inputs X1.

FRONT PANEL:
BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 7. Implement a VI to convert Celsius to Fahrenheit.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 8. Implement a VI to find whether the given number
is odd or even.
FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 9. Develop a VI to find trigonometric values for the
given angle. In LabVIEW, computation of trigonometric
values such as sine, cosine and tangent take the input in
radians. Hence, angles in degrees are to be converted to
radians before calculation.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 10. Design a VI which perform various Boolean Operations
(AND, OR, NAND, NOR, XOR).

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 11. Develop a VI, which converts a binary number to a
decimal number.
FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 12. Implement and test a VI to split an input string
into two outputs with reference to a separating character.
Find the length of the input string and reverse the string.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 13. Design a VI to add two binary bits and find the
sum and carry (half adder).
FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 14. Create a VI to compute full adder logic using half
adder logic as sub VI.

FRONT PANEL:
BLOCK DAIGRAM:

SUB VI BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 15. Develop a VI to find the decimal equivalent of a
binary number using sub VI.

FRONT PANEL:
BLOCK DAIGRAM:

SUB VI BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 16. Design a VI to find the Grey code equivalent of a
BCD number using sub VI

FRONT PANNEL:

BLOCK DAIGRAM:
SUB VI BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
17. Implement a VI to find the average of two numbers
and convert a section of a VI into a sub VI.

FRONT PANEL:
BLOCK DAIGRAM:

SUB VI BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
18. Design the front panel and block diagram of the Main
VI to show the trigonometric values (sine, cosine and
tangent) of the given degree. This VI must use a sub VI for
finding the trigonometric values.

FRONT PANEL:

BLOCK DAIGRAM:
SUB VI BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
19. Create a VI using For Loop, which changes the colour
of a colour box automatically for the given number of
iterations.

FRONT PANEL:
BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 20. Implement a VI to display the numbers 1 to 10 in
a Numeric Indicator using a While Loop. Use the
conditional terminal Stop if True.
FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 21. Create a VI to animate a horse running. Use the
Picture Ring control to insert and display pictures to be
animated.

FRONT PANEL:
BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 22. Create a VI to find the factorial of the given
number using For Loop and Shift Registers.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 23. Develop a VI to find the sum of first n natural
numbers using a While Loop with a feedback node.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 24. Create a VI to find the sum of first 10 natural
numbers using a For Loop.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 25. Implement a VI, which converts a decimal
number to a binary number using For Loops.

FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
EXP 26. Design a VI to find the factorial of a given
number using a While Loop.
FRONT PANEL:

BLOCK DAIGRAM:

RESULT: Thus, the result has verified successfully on the


front panel
1. Rolling of dice
This VI demonstrate how to use the LabVIEW random number
generator, basics of loops and picture rings.

FRONT PANEL:

We use picture ring to show the animation of dice rolling and


two Boolean switches to roll and stop the rolling of dice
BLOCK DAIGRAM:
In the Block Diagram, we added a While Loop and an
Event Structure, so that we can keep rolling the dice as
a new event. Then we insert a For Loop inside the Event
Structure. Insert a Random Number VI to get the
random values on dice. Then we will get a value from 0
to 1, so multiply the Random Number output by 5 to get
an output between 0 and 5 (6 dice possibilities). Then
We need to round the output number to the nearest
whole-number integer, so select Round to Nearest. At
last Add a False Constant from the Event Structure to
the Loop Condition terminal.

While stop
While rolling

RESULT:
We successfully perform the task on front panel.

You might also like