IMAQdxGetAttributeUnitsCW

NI-IMAQdx Function Reference

IMAQdxGetAttributeUnitsCW

Format

IMAQdxGetAttributeUnitsCW (id As IMAQdxSession, name As String, unit As String) As IMAQdxError

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 String The name of the attribute whose units you want to get. Refer to Attribute Name for a list of attributes.
units String (passed by reference) The units of the specified attributes when the function returns.

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