LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions Programme

Solved!
Go to solution
Highlighted

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

 

0 Kudos
Message 1 of 4
(119 Views)
Solution
Accepted by topic author Toofor

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?

 

Best regards,
GerdW
CLAD expired, using LV2011SP1 + LV2017 (+LV2019 sometimes) on Win7+cRIO
Kudos are welcome Smiley Wink

0 Kudos
Message 2 of 4
(106 Views)

Why is the control Water Level writing a value back to itself through a local variable?

0 Kudos
Message 3 of 4
(95 Views)

Thanks a bunch i followed some examples that labview showed and read your feedback thanks a bunch

0 Kudos
Message 4 of 4
(21 Views)