LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQdx: Does configure acquisition.vi clear buffered frames?

 

I am trying to synchronize two acquisition devices -- one being an imaq camera. In order to get proper synchronization, I need to know the frame I grab is from the same trigger as the other acquisition device. 

 

Here is my basic vi (there's a screenshot of the individual functions attached):

- Initialize the camera.

- Enter while loop and reset camera (configure as desired)

- Enter a nested while loop and grab images until there is an error here (or with the other acquisition device), Then reset the camera and start again.

 

My question is: does the "configure acquisition.vi" in my "reset camera" function clear all the buffers? If not, how do I ensure the buffers are cleared after the reset and before I begin to grab images again?

 

Thanks,

Kristen

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

Hello Kllurie,

 

In regards to your question:

1. Does the "configure acquisition.vi" in my "reset camera" function clear all the buffers? If not, how do I ensure the buffers are cleared after the reset and before I begin to grab images again?

No, for that purpose, I recommend you to use the ¿IMAQ Dispose VI¿.

I add you here the best information I could find to show you the functionality of this VI:

1. ¿Memory Management with IMAQ¿
http://www.ni.com/white-paper/4538/en/

2. ¿Community: Dispose Images IMAQ¿
https://decibel.ni.com/content/docs/DOC-5733

3. ¿What Does IMAQ Dispose Do When the "All Images?" Value is True?¿
http://digital.ni.com/public.nsf/allkb/9C57B01335C8AC60862578F800690FC3

4. ¿How Can I Programmatically Clear an Image Display Control?¿
http://digital.ni.com/public.nsf/allkb/514FD61A5F1829EA86256DF6004FDE13

I hope this helps to address you in the right direction.


Regards!

 

>>Daniel C.

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

It's been five years that no other discussion joined.

As I know you are trying to clear\reset the buffers that was allocated by IMAQdx Configure Acquisition, right?

 

ConfigureBuffer.png

 

 

 

 

 

 

 

Recently I am curious about how to clear iMAQdx image buffers too.

I don't know if there was IMAQdx Unconfigure Acquisition.vi back in LV2015.

 image.png

However, I am still experimenting on this VI to prevent actually "Dispose" the camera just in order to clear those image buffers.

 

Welcome to join our discussion if you have any ideas regarding "Clear iMAQdx image buffers", thank you.

 

 

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