NI-IMAQdx Function Reference



rval = IMAQdxWriteAttributes (IMAQdxSession id, const char* filename)


Writes current attributes to the camera file. This function is only required if you wish to save parameters.


Parameter Type Description
id IMAQdxSession A valid Session ID.
Filename Const char* The filename to load the attributes from. Specify NULL to load from the default camera file. Specify a valid filename to override the default camera file. The driver locates camera files in the <NI-IMAQdx\Data> folder if no path information is specified.

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.