LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Help: change button value for event structure

Hello,
 
If I click a button, its value changes from 'false' to 'true', and the corresponding event executes.
 
Now if I do not click the button. If the DAQ acquired value is above a threshold, the value of this button is set to 'true' (without external mouse clicking), but the event structure does not recognize the button value change, therefore no execution.
 
Anyone can tell me why this happen?  Or,  how to triger a event when DAQ reading exceeds a threshold? Thanks.
 
-Derek
0 Kudos
Message 1 of 4
(2,820 Views)
Event structures generally only respond to user generated "events". You can programmatically force a case of an event structure to execute by writing to the Value (signalling) property of the control.

Also, you may want to place the control terminal inside the event case (or at least inside the while loop) if you haven't already.

Chris
0 Kudos
Message 2 of 4
(2,813 Views)
Thanks a lot, I will take a try.
0 Kudos
Message 3 of 4
(2,805 Views)

Update: problem solved based on your suggestion.

You are greatly appreciated!

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