imgSetCameraAttributeString

NI IMAQ Function

imgSetCameraAttributeString

Usage

rval imgSetCameraAttributeString(SESSION_ID sid, const char* attributeString, const char* newValue);

Purpose

Sets the value of camera attributes. Camera attributes vary according to which camera you are using. Refer to Measurement & Automation Explorer (MAX) for information about valid camera attributes for your camera and image acquisition device. Use this function to set the value of string or numeric attribute types. If the attribute is a numeric type (integer or float), this function converts the string input into a numeric value.

Parameters

Name Type Direction
sid SESSION_ID input
attributeString const char* input
newValue const char* input
rval Int32 output

Parameter Discussion

sid: valid SESSION_ID.

attributeString: attribute name as described in the Camera Attributes tab in MAX.

newValue: new value of the attribute.

Return Value

This function returns 0 on success. On failure, this function returns an error code. For information about the error code, call imgShowError.