Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Vision acqusition blocks GUI use

Solved!
Go to solution

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

 

0 Kudos
Message 1 of 4
(3,783 Views)
Solution
Accepted by topic author NeuroSteve

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

 

0 Kudos
Message 2 of 4
(3,779 Views)
That was quick...:smileyvery-happy:
0 Kudos
Message 3 of 4
(3,740 Views)
****Message deleted***
Message Edited by muks on 11-16-2009 04:29 PM
0 Kudos
Message 4 of 4
(3,739 Views)