IMAQdxGetAttributeType

NI-IMAQdx Function Reference

IMAQdxGetAttributeType

Format

rval = IMAQdxGetAttributeType (IMAQdxSession id, const char *name, IMAQdxAttributeType *type);

Purpose

Gets the attribute type for a camera attribute.

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 value you want to get. Refer to Attribute Name for a list of attributes.
type IMAQdxAttributeType (passed by reference) The type of the attribute whose value you want to get.

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>.

type specifies the type of the value parameter. The following types are supported: IMAQdxValueTypeU32, IMAQdxValueTypeI64, IMAQdxValueTypeF64, IMAQdxValueTypeString, IMAQdxValueTypeEnumItem, and IMAQdxValueTypeBool.

Note Note  The value type must be compatible with the attribute type. Refer to the NI-IMAQdx Help for more information about camera attributes.

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.