Performing a Snap Using Low-Level Functions

NI IMAQ

Performing a Snap Using Low-Level Functions

The LLSnap.c example demonstrates how to perform a snap acquisition using low-level calls. The example sets up a single-frame acquisition to a buffer allocated by NI-IMAQ. The program retrieves the acquisition window width of the selected camera and aligns it on a 32-bit boundary. You must align both the acquisition window width and rowPixels on a 32-bit boundary to ensure that the image is acquired properly. The software does not perform this alignment for you unless you select a scaling option. After the program sets the ROI, it locks the memory and acquires the image. If you choose to plot the image using the imgPlot function, you must align the image width on a 32-bit boundary as well.