Machine Vision

cancel
Showing results for 
Search instead for 
Did you mean: 

Confused by IMAQdx Extract Image

Using LV2015, I have a ring acquisition. It runs fine until the camera stops acquiring. This happens because it has a hardware trigger. When the test ends the camera stops receiving triggers. At that point I want the loop containing IMAQdx Extract Image to finish, but it doesn't. As best I can tell this is because I have that vi set to never time out. 

I need it to never time out because when I start up the program the camera may not be acquiring.

So how do I tell it there are no more images coming and to move on so the loop can close?

AcqProb.JPG

 Hopeful this part of the diagram helps.

0 Kudos
Message 1 of 3
(2,177 Views)

You could stop or close the IMAQdx session, and that will unblock the loop.

0 Kudos
Message 2 of 3
(1,979 Views)

Hadn't thought of that. Might be a good idea. Thank you.

 

What I'm doing right now is applying a time out but using the buffer counter to tell me if the vi has timed-out. If it has, I just go around the loop again. I also note if any acquisition has taken place. That way, I can avoid a timeout before starting to acquire but permit a time out when the acquisition is complete and no more images are being received.

 

0 Kudos
Message 3 of 3
(1,898 Views)