LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How can i initialize a button (Switch when pressed) to be always disabled when i start the programm.

Hello

How can i initialize a button (Switch when pressed) to be always disabled when i start the programm. My problem is that the state of the button is always the state in which it finihed last time.

Thanks
Lukas
0 Kudos
Message 1 of 3
(4,295 Views)
Hi Lukas

Just create a local variable of the button (right-click on the block-diagram >> create >> local variable) and wire the appropriate constant to it.

You just have to place it correctly, depending on your program.

Hope this helps.

Thomas
Using LV8.0
--------------------------------------------------------------------
Don't be afraid to rate a good answer... 😉
--------------------------------------------------------------------
Message 2 of 3
(4,288 Views)
A button is either true or false. "Disabled" is a property that determines if the button can be operated or not. 😉

It seems from the rest of your question that you actually want to ensure that it is set to false, but remain enabled. This is easiest done with a local variable as already mentioned by becktho.

If you want to disable the button, use a property node.
Message 3 of 3
(4,279 Views)