IMAQdxResetCamera

NI-IMAQdx Function Reference

IMAQdxResetCamera

Format

rval = IMAQdxResetCamera (const char *name, unsigned int resetALL);

Purpose

Performs a manual reset on a camera. Stops any ongoing acquisitions.

Parameters

Parameter Type Description
name const char * The name of the camera you want to open. name (cam0, cam1, ..., camN) must match the configuration file name you used to configure the camera in MAX. You can also open a camera using its 64-bit serial number (uuid:XXXXXXXXXXXXXXXX), where the number following uuid must be a 64-bit hexadecimal number representing the internal serial number of the camera.
Note   Specify "uuid:serial number in hexadecimal representation" for the camera name when opening in listening mode. The serial number must match the serial number used in MAX.
resetALL unsigned int If the resetALL value is false, then only the specified camera will be reset. If the resetALL value is true, then all of the connected cameras will be reset.

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 IMAQdxGetErrorString or, if you are using Microsoft Visual Basic, IMAQdxGetErrorStringCW.