LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Is it necessary to reset button to default when using event structure?

Solved!
Go to solution
When using buttons with "latch when released" mechanical action to trigger an even structure with even "value changed", the button does not pop back up as you would expect.  I can get it to behave the way I want by adding a "reinit to default" invoke node, but this somehow seems like overkill.  Is there an easier way to get the button to pop back up after pressing?
0 Kudos
Message 1 of 2
(2,580 Views)
Solution
Accepted by topic author j_osh_o

The button resets once it is read by the code. This means that the terminal should be inside the event structure. If you place the terminal outside, it will only get read at the beginning of the run and then never again and it will not reset.

 

If the terminal is indet the event structure, it gets read by the code (even if it is not connected to anything) and will this reset as soon as the event has a chance to execute.

Message Edited by altenbach on 07-19-2009 11:11 AM
Message 2 of 2
(2,577 Views)