Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

IMAQ Measurement Studio + NI PCI-1422 Board

I'm currently using an IMAQ PCI-1422 to acquire images from a camera. The image size is 2048x2048 @ 12 bit a pixel.

Currently the camera is in the snap mode, and take a image and transfer them into the memory using imgSnap. The rate of data transfer is about 1 fps, roughly 8MByte/Second.

It looks like that PCI/PXI -1422 is able to transfer up to 20 MB/sec, so theoretically, the transfer rate should be 400ms or 0.4 sec instead of 1 sec.

Is there a way to speed up the data transfer using IMAQ API? Any code samples out there?

Thanks
0 Kudos
Message 1 of 2
(3,005 Views)
The snap function is a high level funtion that creates buffers, takes a picture and releases the buffer. It in not very efficient for continuous acquisition. I would look at either the "Grab", "Sequence", or "Ring" shipping examples. The Grab is designed more for a continuous acquisition, it takes images as quickly as possible and returns them to be viewed. The Sequence and Ring acquisitions actually set up extra buffers to help ensure that no frames are missed. Sequence is for a finite number of frames, and Ring is for continuous (it loops back to the beginning of the buffer list when complete). These exampes can all be found in your "...\National Instruments\NI-IMAQ\Sample\MSVC\" directory on your computer.
0 Kudos
Message 2 of 2
(3,005 Views)