LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Setting of Boolean control

Solved!
Go to solution

Hello!

In my main VI, The user will choose the configuration he wanted and then he pressed  a boolean control "validate". I set the mechanical action of the button to " switched if pressed" I want to oblige the user to not turn back after pressing "validate", it means he can not modify the configuration that he does , unless he stops the VI and relaunch a new run, so i want that the boolean "validate" resumes its default value and be invariable
Please how can i do such a setting ?
thank you in advance.

0 Kudos
Message 1 of 6
(3,553 Views)
Solution
Accepted by topic author Student_LV

 

disable.png

 

0 Kudos
Message 2 of 6
(3,550 Views)

Hello

Thank you for your reply.

That works well, i also initialized the boolean button to " enabled" to make it functional at each new run 

0 Kudos
Message 3 of 6
(3,530 Views)

No need to reinitialize the control for next run.  Change the mechanical action to latch and it will change back automatically after the value is read from the control. 

aputman
Message 4 of 6
(3,513 Views)

I believe Student_LV is referring to making sure the control is set back to "enabled" at the start of the VI, not the true/false state of the boolean or its mechanical action.

Message 5 of 6
(3,510 Views)

@RavensFan wrote:

I believe Student_LV is referring to making sure the control is set back to "enabled" at the start of the VI, not the true/false state of the boolean or its mechanical action.


Ahh...good point.  

aputman
0 Kudos
Message 6 of 6
(3,505 Views)