Professional Documents
Culture Documents
Water Level Detector in LabView P
Water Level Detector in LabView P
Introduction to LabVIEW
Here I am going to elaborate you that how to make a simple Water Level Detector in
LabVIEW 2015. First of all we will look at the important LabVIEW components or you can
say tools, required to design a water level detector. You can see the list of these components
below
Tank
Vertical Pointer
Upper level indicator shows when the tank is about to completely fill. Lower level indicator
shows indication by turning "ON" the LED when the level of the water in the tank is too low
and we need to fill it. Graphs shows the graphical visualization as the vertical pointer moves
up ow down.
Go to the "Front Panel" and press "Right Click" from your personal computer or
laptop.
By doing this, you can see the following figure in your PC's screen.
Page 1 of 16
2
Introduction to LabVIEW
Page 2 of 16
3
Introduction to LabVIEW
Now, put the "Cursor" on the tank and press "Click" you can see that the water level
changes with each different click on the tank
Now go to the "Front Panel" and then go to the Controls-> Modern-> Numeric->
Vertical Pointer.
Page 3 of 16
4
Introduction to LabVIEW
By doing this, you can see the following figure in your PC's screen:
Page 4 of 16
5
Introduction to LabVIEW
Put the "Cursor" on the "Vertical Pointer", press click and then move up and down.
Blue color indicates the value or rate at which we want to fill the tank
So now, you have selected both the tank and the vertical pointer and you can see that
it looks like the figure below:
Page 5 of 16
6
Introduction to LabVIEW
You can see the "Block Diagram" window is looking like the below figure
Now, since we want to control the level of the water in the tank with the help of the
vertical pointer by adjusting it at different positions
Page 6 of 16
7
Introduction to LabVIEW
Take a wire from the output terminal of the vertical pointer (Slide) and connect it to
the input terminal of the tank
No we have to set the upper and lower level for the less and high amount of water
indication
We need to put two LED's, one for the upper level ndication and the second for the
lower level indication
Page 7 of 16
8
Introduction to LabVIEW
Connect its first input terminal with the output terminal of the "Vertical Pointer"
Go to the second input terminal of the "Greater or Equal" press "Right Click"
Go to the Create->Constant
Page 8 of 16
9
Introduction to LabVIEW
Page 9 of 16
10
Introduction to LabVIEW
Now we have to put an LED in the "Front Panel" for the upper level indication
Select the LED and place it onto the "Front Panel" with the top right corner of the
tank
Page 10 of 16
11
Introduction to LabVIEW
Now,
Go to the "Block Diagram" window again
Connect the output terminal of the "Greater or Equal" to the input terminal of the
"LED" as shown below
Page 11 of 16
12
Introduction to LabVIEW
You can see, as the vertical pointer moves up from the desired upper which is "9" in
this case, limit LED turns on
select this block and connects one of its inputs to the "Vertical Pointer".
Go to Create-> Constant.
Set the constant, in this case I have set it to "2" as shown below:
Page 12 of 16
13
Introduction to LabVIEW
In "Block Diagram" window connect the LED with the "Less or Equal" block
Page 13 of 16
14
Introduction to LabVIEW
If you want that your program should no terminate until you did it by your self then
follow the below steps
Connect this button with the "RED" small circle at the bottom right corner of the
"While Loop" as shown below in the figure
Complete "Block Diagram" logic of making water level detector is shown below
Page 14 of 16
15
Introduction to LabVIEW
Page 15 of 16
16
Introduction to LabVIEW
Page 16 of 16