10-23-2019 06:24 AM - edited 10-23-2019 06:27 AM
Hi i'm fairly new to Lab-view and i want to get a head start with basics.
I'm having trouble with this requirement:
Water level in the tank falls to the point where L2 opens then an
electrically operated supply valve should open and feed water to the tank until L3 closes, at which
point the valve should close.
Open = LED off
Closed = LED on
Ive made is so the valve turns on when L2 opens but i cant get my head around how to make the valve only open and fill when L2 reaches and not make it open if it L3 opens
Solved! Go to Solution.
10-23-2019 06:46 AM - edited 10-23-2019 06:47 AM
Hi Toofor,
@Toofor wrote:
Ive made is so the valve turns on when L2 opens but i cant get my head around how to make the valve only open and fill when L2 reaches and not make it open if it L3 opens
So there is a (boolean) condition:
IF L2 AND NOT L3 THEN valve := open
ELSE
valve := closed ENDIF
There is a palette with boolean functions - see how far you get…
On your image:
- We prefer VIs instead of images. We cannot debug images with LabVIEW…
- Why don't you use AutoCleanup?
- Why do you use two loops?
- Why are there no stop buttons in those loops? How will you ever stop your VI?
10-23-2019 06:59 AM - edited 10-23-2019 06:59 AM
Why is the control Water Level writing a value back to itself through a local variable?
12-03-2019 05:36 AM
Thanks a bunch i followed some examples that labview showed and read your feedback thanks a bunch