Professional Documents
Culture Documents
Objective:
Tools/Software Requirement
Theory
In order to use a VI as a subroutine in the block diagram of another VI, it must have an icon with
a connector (see Figure 8.3). AVI that is used within another VI is called a subVI and is
analogous to a subroutine. The icon is a VI’s pictorial representation and is used as an object in
the block diagram of another VI. A VI’s connector is the mechanism used to wire data into the VI
from other block diagrams when the VI is used as a subVI. Much like parameters of a
subroutine, the connector defines the inputs and outputs of the VI.
11. Examine the different objects in the diagram window. Open the contextual Help window
by choosing Show Context Help from the Help menu—or you can use the <ctrl>-H
shortcut on Windows, <command>-H on Mac OS X, or <meta>-H on Linux.
12. Position the cursor over different objects in the block diagram and watch the Help
window change to show descriptions of the objects. If the object is a function or subVI,
the Help window will describe the inputs and outputs as well.
13. Turn on execution highlighting by clicking on the Highlight Execution button, so that the
light bulb changes to the active(lighted) state. With execution highlighting turned on, you
can watch the data flow through the wires. You will see small data bubbles that travel
along the wires, representing the data flowing through the wires.
14. Select Close from the File menu of Temperature System Demo.vi, and do not save any
changes. Note that, selecting Close from the File menu of a VI diagram closes the Block
Diagram window only. Selecting Close on a Front Panel window closes both the Panel
and the Diagram.
Creating a VI in LabView
1. Open Front Panel and right click to select Decoration from menu.
2. Select Flat Boxes from Decorations option. Increase one’s size in a vertical rectangular
shape and another in a square shape.
3. Right click and move to numeric icon and select Tank from Numeric mode. Rename it as
Water Tanker and adjust its size.
4. Now by right clicking the mouse in front panel, click on numeric option again and select
Vertical Graduated Bar from Numeric mode. Label it as Water Level.
5. Move and adjust the tanker’s size as well as graduated level indicator.
6. Now right click mouse in front panel to select two Boolean LEDs.
7. You might have observed how block diagram also insert your chosen items.
8. In Block Diagram, directly connect water tanker to Water Level.
9. Right click in Block diagram, click on Greater or Equal in comparison option and connect
one end of gate with Boolean LED and other with the wire between water level and
water tanker.
10. Right click and create constant as 2 for this logic gate.
11. Right Click in Block diagram and click on Less than or Equal in comparison option and
connect this logic gate with previous one.
12. Rename both Boolean as High Water Level and Low Water Level.
13. In Front Panel, right click on Water Level LEDs and go to properties and assign colors
green and red to the respective LEDs for their enabled state.
We can see how changing the volume in water tanker will affect the values in water
level.
Front Panel
Block Diagram
Observations
In the lab view task we observed the following
The tank has a level that displays the water level as a vertical bar.
Red is displayed as the high water level indicator.
Green is another sign for low water levels.
One tank has water in it.
When the water level reaches a particular high position, the red indication begins to blink,
and when the water level reaches a certain low position, the green light begins to blink.
Analysis/Discussion
We conclude that Lab View is a programming environment in which one can create programs
using some graphical notations. It is much more than a programming language. It is an
interactive program development and execution system designed for people, like scientists and
engineers.
We analyze that this software has also practical importance in our daily life as well. In this task
we analyze the water level of tank that when tank is full then red light blinks and when tank is
empty green light blinks. We can use same phenomenon in our home by using a lab view
programmed circuit which can tell us when there is need to start water motor or not. It means
when our home tank level is low it will blink as green and when its high it will blinks red.
Evaluation Criteria: