LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to change state of a boolean control from on to off and vice-versa programmatically

Hello All,

 

I am trying to modify tank level simulation example (in ni example finder under pid toolkit) in some way.....what i want do is whenever my output from pid i.e my manipulated variable (level of tank) exceeds the s.p;  the Drain Valve (located at bottom of tank) should automatically change its state i.e if level rises above certain s.p valve should get "opened" and again it should change its state to "off" whenever level again comes down below s.p....The valve given is the customized boolean control...can it be accomplished by using reference or local variable?...Any help would be highly appreciated.

 

 

Best regards

0 Kudos
Message 1 of 3
(2,602 Views)

A customized boolean control is still a boolean.  I'm not sure what the architecture is like, but I'm going to guess that the local variable will do what you want.


GCentral
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines
"Not that we are sufficient in ourselves to claim anything as coming from us, but our sufficiency is from God" - 2 Corinthians 3:5
0 Kudos
Message 2 of 3
(2,599 Views)

hmmm....Smiley Indifferent

 

open drain_VI_BD.png

0 Kudos
Message 3 of 3
(2,598 Views)