IMAQdxGetAttributeUnits

NI-IMAQdx Function Reference

IMAQdxGetAttributeUnits

Format

rval = IMAQdxGetAttributeUnits (IMAQdxSession id, const char *name, char *units, unsigned int length);

Purpose

Gets the attribute units for a camera.

Parameters

Parameter Type Description
id IMAQdxSession A valid Session ID, which you can obtain using IMAQdxOpenCamera.
name const char * The name of the attribute whose units you want to get. Refer to Attribute Name for a list of attributes.
units char * A pointer to an area of memory reserved for an error string. The reserved memory must be at least the size specified by the length parameter.
length unsigned int The maximum length of the C string passed as the units parameter.

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.