imaq1394SetAttributeCW

NI-IMAQ for IEEE 1394 Cameras Function

imaq1394SetAttributeCW

Format

imaq1394SetAttributeCW (sessionId As SESSION_ID, Attribute As Attribute, value) As IMG_ERR

Purpose

Sets an attribute for a camera.

Parameters

Parameter Type Description
sessionId SESSION_ID A valid Session ID, which you can obtain using imaq1394CameraOpen2.
attribute Attribute The Attribute whose value you want to set. Refer to Attributes for a list of attributes.
value variant The value for the specified attribute. If the camera supports a special operation mode, specify one of the following constants as the value:

IMG1394_AUTOMODE

IMG1394_ONEPUSHMODE

IMG1394_OFFMODE

IMG1394_ABSOLUTEMODE

IMG1394_IGNOREMODE

Use imaq1394AttributeInquiry2CW to enumerate the special modes that the camera supports.

Return Value

On success, this function returns IMG1394_ERR_GOOD. On failure, this function returns an error code. You can obtain a more detailed error message with imaq1394ShowErrorCW.