imgGetCameraAttributeNumeric

NI IMAQ Function

imgGetCameraAttributeNumeric

Usage

rval imgGetCameraAttributeNumeric (SESSION_ID sid, const char* attributeString, double* currentValue);

Purpose

Gets the value of numeric 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.

Parameters

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

Parameter Discussion

sid: valid SESSION_ID.

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

currentValue: pointer to a variable to receive the attribute. Upon success, the function populates the variable with the current value of the attribute.

Return Value

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