LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Control does not respond after event handler loop exits

Solved!
Go to solution

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.

 

Message 1 of 3
(3,096 Views)
Solution
Accepted by topic author Les__Bartel

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

 

Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
Nederlandse LabVIEW user groep www.lvug.nl
My LabVIEW Ideas

LabVIEW, programming like it should be!
Message 2 of 3
(3,092 Views)

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?

0 Kudos
Message 3 of 3
(3,041 Views)