IMAQdxSetAttributeCW
Format
IMAQdxSetAttributeCW (id As IMAQdxSession, name As String, type As IMAQdxValueType, value As VARIANT) As IMAQdxError
Purpose
Sets the value for a camera attribute.
Parameters
Parameter | Type | Description |
id | IMAQdxSession | A valid Session ID, which you can obtain using IMAQdxOpenCamera. |
name | String | The name of the attribute you want to set. Refer to Attribute Name for a list of attributes. |
type | IMAQdxValueType | The type of the attribute you want to set. |
value | VARIANT (passed by reference) | The value of the specified attribute. |
Parameter Discussion
type specifies the type of the value parameter. The following types are supported: IMAQdxValueTypeU32, IMAQdxValueTypeI64, IMAQdxValueTypeF64, IMAQdxValueTypeString, IMAQdxValueTypeEnumItem, and IMAQdxValueTypeBool.
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.