From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Matching image acquisition with lasers switching

Solved!
Go to solution
I am having trouble understanding something. If anyone could help me, I would be very greatful.
 
I use NI Vision Acquisiton to program two Point Grey Flea2 cameras. My goal is to acquire stereo images simultaneously with the switching of different combinations of 7 lasers. According to the camera register reference, I have configured an I/O pin to be a strobe output which outputs a pulse each time the camera begins integration of an image. This strobe signal is processed by a PIC microcontroller that does the job of switching the lasers. The problem is that when I acquire a sequence, I can not see the matching between the switching of the lasers combinations in the images acquired.  
 
The acquisition does not occur at each integration of an image? 
 
I apologize for my English and thank you in advance.
 
Patryk.

 

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

Patryk,

 

     Without seeing your code (attach the VI, or compress the folder containing your LabVIEW Project and attach the entire Zip file), it is extremely difficult to make any meaningful suggestions.

 

Bob Schor

0 Kudos
Message 2 of 3
(2,680 Views)
Solution
Accepted by topic author PatrykEEL

I solved the problem. I was using continuous acquisition in my code. Ideally, a continuous acquisition acquires and processes every image that is transferred from the camera. However, because of processing time fluctuations, some images from the camera may not be processed before the camera transfers the next image. If a delay becomes too long, the camera overwrites the requested buffer with new image data. So I used one-shot acquisition and specified the number of internal buffers. The camera transfers each image up to and including the specified number of buffers. The driver acquires every image during a one-shot acquisition.

My best regards,

Patryk.

0 Kudos
Message 3 of 3
(2,632 Views)