LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

boolean control

I want to set the boolean value to be false constant before run.
 
And I can change it after the program run. What should I do?
 
Thank you for suggestions.
 
Nan
0 Kudos
Message 1 of 4
(2,639 Views)

Hi Nan,

If it is a Boolean Constant (ie: FALSE), you cannot change it because it is a Constant FALSE.

The way to do it is to change it to a Control, initialize it to FALSE, then create a Property Node for Value in which you wire the last value to it.  Another way is to create a Local Variable (Property Node preferred).

But you are correct, you cannot change the value of a Constant Boolean...  A Constant FALSE cannot obtain a TRUE value.

RayR

0 Kudos
Message 2 of 4
(2,634 Views)

Another note, set the Mechanical Action to SWITCH to update the local variable or property node.  If it is set to latch it will require a variant data type.

Matt

Matthew Fitzsimons

Certified LabVIEW Architect
LabVIEW 6.1 ... 2013, LVOOP, GOOP, TestStand, DAQ, and Vison
Message 3 of 4
(2,633 Views)

Yes... yes

Thanks Matt..

A very important point... 

 

 

0 Kudos
Message 4 of 4
(2,628 Views)