11-27-2009 01:52 PM
My application collects user input from several controls. When the user presses the OK button, it exits the event handler loop and does the processing. While processing, it isn't able to read new values from the controls. And in fact no longer responds to the stop button.
Upon running the attached VI, you will note that you can press the Switch button and the LED indicates the state of the switch (this is my user input). Now press the OK button. If you press the Switch button, you will see that it works only once. Furthermore, the stop button no longer responds to user input. If you don't press the Switch button, the stop button will cause the 2nd loop to exit.
Why doesn't the 2nd loop respond to the Switch button?
This is a simplified version of my application in which the two while loops are in separate states of my state machine. There are several other states as well.
Solved! Go to Solution.
11-27-2009 02:09 PM
The event case of the 'Value Change' event has the property set to lock the VI front panel when the event is triggered until the event case finished.
Because the left while loop is not running but the event structuer is still active the whole FP is locked.
Uncheck this option in the 'Edit this Event'.
Ton
11-30-2009 09:31 AM
My accepted solution works for the sample VI I submitted. Unfortunately it doesn't work in my application. I set ALL of the events to 'not locked'.
The mouse cursor changes to a pointing finger when I hover over my 3 button radio control, but clicking the mouse button does not change the selected radio button.
Any other ideas?