05-06-2012 08:45 AM
Hi all,
I have a simple VI here. I want to pop a One Button Dialog to the user. I want the VI to wait till 'OK Button' is clicked. When the OK button is clicked the VI should pop another one button dialog and stop when the Ok button is pressed. The VI does not stop. THe value change event is not captured by the Event structure. Can't really figure out why.
Solved! Go to Solution.
05-06-2012 10:52 AM
Which OK Button are you wanting to trigger the event structure?
1. As you have it connected the event case is linked to the OK INDICATOR on the front panel. You do not have an OK Button on the front panel. The OK button on the dialog is not easily accessible to the event structure.
2. Programmatically changing an indicator does not trigger a Value Changed event.
3. You could use a Value (Signaling) property node to trigger the event case.
4. There is almost always a better way to do what you want than to use an indicator and Value (Signaling).
Lynn
05-06-2012 10:58 AM
Of course it does not fire the event. Events fire with user actions. In order to fire the event from a programatic change, you need to write to the Value(Signaling) property node.
05-06-2012
11:34 AM
- last edited on
01-15-2025
05:59 PM
by
Content Cleaner
Thanks a lot. I realize that this isn't the best solution to the problem. I was actually trying to figure out how to use the Event Structure. Then I came across this a while ago:
In general, LabVIEW generates user interface events only as a result of direct user interaction with the active front panel. LabVIEW does not generate events, such as Value Change, when you use shared variables, global variables, local variables, DataSocket, and so on. However, you can use the Value (Signaling) property to generate a Value Change event programmatically. In many cases, you can use programmatically generated events instead of queues and notifiers.
Thanks again.