Measurement Studio for VC++

cancel
Showing results for 
Search instead for 
Did you mean: 

Seperate snap from data transfer

Hi,

imgSnap does the snap & data transfer all in one shot. I wonder if the imgSnap can be seperated into two functions:
1. snap (which tells camera to snap the image and put it in the on-board buffer)
2. data transfer (which transfers data from on-board buffer to host memory).

Is there any simple way of doing this without getting into all the details in managing the DMA buffers?

thanks
0 Kudos
Message 1 of 2
(2,904 Views)
I would take a look at the LL Snap example. This example does the same thing as the High Level Snap Example, but does so using lower-level function calls. This allows you to specify where you would like the buffer to be set up, in your case on-board. Open the example and look at the function called imgCreateBuffer. This is where you specify that you want to use on-board memory. The exmaple is located in "...\National Instruments\NI-IMAQ\Sample\MSVC\Snap\LL Snap" and the function is located on line 203. Documentation for all of the c function can be found by going to Start >> Program Files >> National Instruments >> Vision >> Documentation >> NI-IMAQ Function Reference.
0 Kudos
Message 2 of 2
(2,904 Views)