IMAQdxReadAttributes

NI-IMAQdx Function Reference

IMAQdxReadAttributes

Format

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

Purpose

Reads attributes from file and applies to current session. This function is only required if you wish to load parameters. By default the attributes are loaded from file when the camera is opened.

Parameters

Parameter Type Description
id IMAQdxSession A valid Session ID, which you can obtain using IMAQdxOpenCamera.
Filename const char* The filename to load the attributes from. Specify NULL to load from the default camera file.

Parameter Discussion

name specifies the attribute whose value you want to obtain. In LabWindows/CVI function panel, when you click the control or press <Enter>, <Spacebar>, or <Ctrl-down arrow>, a dialog box opens containing a hierarchical list of the available attributes. Attributes whose values cannot be obtained are dimmed. You can access function help text for each attribute by double-clicking an attribute or by selecting the attribute and pressing <Enter>.

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.