11-12-2009 04:10 PM
I am trying to create a VI that acquires images when the user presses a 'GO' button
and stops when the user presses the 'STOP' button.
I have created an event structure that is activated on a value change of the GO button. Inside this event structure, I have put in a 'while loop' that repeatedly calls the "Vision Acqusition VI" to acquire and display an image, and it works great. The 'while loop' is set to terminate when the user clicks the "Stop" button.
The only problem is that the Vision Acqusition apparently blocks execution of the GUI, so the 'Stop' button does not respond to clicks. I can press the "Stop Sign" button and force the whole VI to quit, but I would like to be able to keep the VI running and stop the loop.
Any thoughts?
Thanks,
Steve
Solved! Go to Solution.
11-12-2009 04:31 PM
Of course, as soon as I post the question I find the solution.
The solution is to right click on the case window, and choose "Edit Events handled by this case".
On that panel, at the bottom, there is a check box that says "Lock front panel until event completes" or something of the like. Uncheck it.
Best,
Steve
11-16-2009 04:58 AM
11-16-2009 04:58 AM - edited 11-16-2009 04:59 AM