LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Event Structure not responding to One Btn Dialog output

Solved!
Go to solution

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.

 

0 Kudos
Message 1 of 4
(2,899 Views)
Solution
Accepted by topic author MustIHaveAnAlias

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

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

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.

0 Kudos
Message 3 of 4
(2,890 Views)

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.

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