IMAQdxEnumerateAttributes2CW

NI-IMAQdx Function Reference

IMAQdxEnumerateAttributes2CW

Format

IMAQdxEnumerateAttributes2CW(id As IMAQdxSession, attributeInformationArray() As IMAQdxAttributeInformation, root As String, visibility As IMAQdxAttributeVisibility) As IMAQdxError

Purpose

Gets the attributes supported by the camera.

Parameters

Parameter Type Description
id IMAQdxSession A valid Session ID, which you can obtain using IMAQdxOpenCamera.
attributeInformationArray IMAQdxAttributeInformationArray [] Contains a pointer to an array of attribute information structures in which the attributes supported by the camera are stored.
root String Specifies the branch of the attribute tree to enumerate. Specify an empty string to enumerate the entire attribute tree.
visibility IMAQdxAttributeVisibility Specifies the visibility of the attribute to enumerate. Only attributes with the specified visibility will be returned. Available options are the same as IMAQdxGetAttributeVisibility. Specify IMAQdxAttributeVisibilityAdvanced to return all the visible 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 IMAQdxGetErrorStringCW.