LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event, "Value Change" does not trigger on writing to an indicator, by a global variable

Hello,
 
I am trying to trigger an Event, value change based on an Boolean Indicator (mechanical action set to: latch when pressed). I have wired a global variable to the input of the Indicator. When I write to the global variable in another VI, I see the boolean indicator change its value, but for some reason the Event does not trigger ("New Value"= no change).
Any comments on on why the Event does not trigger, or a better way to trigger an event from another VI, would be greatly appreciated.
 
Thanks,
 
Shoab
 
0 Kudos
Message 1 of 5
(3,207 Views)
Events are typically for user interactions and do not trigger for programmatic changes. You need to write to a signaling value property of the indicator of the control to fire an associated event.
 
You also should use a switch action boolean, latch action will not work for this.
 

Message Edited by altenbach on 09-27-2007 11:59 AM

Message 2 of 5
(3,207 Views)
Thanks for the response Altenbach. Hmmm.... I wasn't aware that the Events wouldn't trigger for programmatic changes.
 
But once I wrote to the val(sgnl) using my global variable and changed the indicator to control and restored the mechanical action to "switch", it worked..!!
 
Awesome.. thanks for the insight.
 
Shoab

Message Edited by Shoab on 09-27-2007 03:16 PM

0 Kudos
Message 3 of 5
(3,188 Views)
Also note that it is sufficient to write to a signaling property, the new value does not need to be different. The "value changed" event event will even fire if the old a new values are the same. 🙂
Message 4 of 5
(3,174 Views)
..... noted. Thanks for your timely help.
0 Kudos
Message 5 of 5
(3,166 Views)