IMAQdxSnapCW

NI-IMAQdx Function Reference

IMAQdxSnapCW

Format

IMAQdxSnapCW (id As IMAQdxSession, image As CWIMAQImage) As IMAQdxError

Purpose

Configures, starts, acquires, and unconfigures a snap acquisition. Use a snap for low-speed or single-capture applications where ease of programming is essential. If you call this function before calling IMAQdxOpenCamera, IMAQdxSnap uses cam0 by default. If the image type does not match the video format of the camera, this function changes the image type to a suitable format.

Parameters

Parameter Type Description
id IMAQdxSession A valid Session ID, which you can obtain using IMAQdxOpenCamera.
image CWIMAQImage The image that receives the captured pixel data.

Return Value

On success, this function returns IMAQdxErrorSuccess. On failure, this function returns an error code. You can obtain a more detailed error message with IMAQdxGetErrorStringCW.