LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Conditions Programme

Solved!
Go to solution

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
(1,867 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


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 4
(1,854 Views)

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

0 Kudos
Message 3 of 4
(1,843 Views)

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

0 Kudos
Message 4 of 4
(1,769 Views)