LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Why is the front panel "inactive" when using event structures

I have a VI which reads in a data file and allows the user to analyze the data. This is done through an event structure in a while loop. Reading the data file happens outside of the while loop. Everything works fine until I want to "restart" the above in another while loop to view a different data file. As soon as I end the inner while loop (triggered by the event structure), the next data file is read and displayed. However, the cursor in in the "hand" mode and basically has no ability to activate buttons or move cursors. The inner while loop is iterating.

Any ideas on what I might do to correct or trouble shoot this one?
0 Kudos
Message 1 of 4
(2,747 Views)
Sounds like you might have a infinite loop or vi waiting for data. If you post your code, we'll have a better shot at offering solutions.
Tim
0 Kudos
Message 2 of 4
(2,747 Views)
Tim...thanks for your response. Is there a way to determine which VI is in an infinite loop? Without the outer while loop, the program performs wonderfully.
When the outer while loop is put in, then the GUI on my main VI is unresponsive. The inner while loop is executing through the timeout event structure.
0 Kudos
Message 3 of 4
(2,747 Views)
I found my problem. In the event structure contained in the inner while loop, I dynamically registered an event prior to entering the inner while loop and it was tied to the shift register contained in the inner while loop.

When I "unregistered" the dynamic event upon completion of the inner while loop, everything worked fine. I can't explain why...but it solved the problem of an unresponsive GUI.
0 Kudos
Message 4 of 4
(2,747 Views)