LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

button state change event

Hi,
 
i need a simple way to check not the state of a button but i need a signal if the state is changed.
And is it possible i need the same to check if a number changed.
 
Thanks
 
Florian
0 Kudos
Message 1 of 4
(3,370 Views)
Typically, you would use a shift register, then compare the current with the previous value using "not equal". It will be true whenever the data has changed from the previous iteration.
 
You could also use an event strucure with "value changed". It will fire whenever the control is changed by the operator.
 
As an alternative, there is an openG tool has a "data changed?"  node  for this purpose. ( www.openg.org ).
0 Kudos
Message 2 of 4
(3,364 Views)
Both you can solve with an event structure. Just place your button control inside the event structure and choose the event 'Value Change'. The same states for the numeric control.

David
0 Kudos
Message 3 of 4
(3,363 Views)

Thanks!!!

the event structure was the thing i am searching for, because the shift register are bad when you have a lot of buttons to check.

Florian

0 Kudos
Message 4 of 4
(3,357 Views)