Quantcast
Viewing all articles
Browse latest Browse all 66753

calling a Vision Acquisition Express VI in a Loop

Hi there. I've been working on a personal project for a while now, and I've seem to come to a brick wall. I'm relatively new to IMAQ, but I feel I understand some of it.

 

Let's call our test user Bob.

 

Bob needs to be able to see what the camera sees, and when the camera is focused on a barcode, Bob has to hit a "Capture" button, which will take the last acquired image from the continuous acquisition, and use that image for barcode reading and later, parsing the data.

 

Bob runs into a problem though. His Block Diagram is set up in two different ways, both yielding the same result. (see the attached photos). this is inside a Sequence structure, which in turn is inside of a while loop, which can be exited at any time. To prevent automatic cycling in the big while loop, the first frame of the aforementioned sequence is an event structure which allows the process to continue when a "New Capture" button is pressed. What happens? The first time through the sequence, Bob gets successful results. However, after the execution of the entire while loop, the camera image, which should be displayed in sync with what the camera sees until the "Capture" button is pressed, is just a white background.

 

What could be causing the express VI to not be called the second time through the loop and beyond?

 

Thanks in advance.

 

(EDIT 1: added front panel image after the problem has occured)


Viewing all articles
Browse latest Browse all 66753

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>