LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean indicator with possibility for usercontrol

Hi

I am modelling a thermostat. It is a boolean button, controlled by the simulation program. When the water boils, the button swiches of (jumps out), and the user must press the button back in order to turn the boiler on again. The problem is, that buttons in Labview are either controls or indicators. What do I do to get a button that allows both control from a user and indication from the program?
0 Kudos
Message 1 of 3
(4,193 Views)
Hi,

You can use either a local variable (right click the control and choose create local variable) or a property node changing the value property of the control (right click and choose create property node, then on the block diagram choose the value property), this way you can change the value of a control programatically.

Hope this helps,
Paulo
Message 2 of 3
(4,186 Views)
An additional advantage of setting the boolean value using a property node is the ability in LV7.0+ to use a value(signaling) property. This is great if you want to tie events to every change in the switch state. Also if you need to reset the button in a subvi, pass the reference of the boolean to the subvi and wire it to the application property node to set/reset the switch.

-Paul
Paul Falkenstein
Coleman Technologies Inc.
CLA, CPI, AIA-Vision
Labview 4.0- 2013, RT, Vision, FPGA
Message 3 of 3
(4,177 Views)