imgEncoderResetPosition

NI IMAQ Function

imgEncoderResetPosition

Usage

rval imgEncoderResetPosition(SESSION_ID sid);

Purpose

Resets the absolute encoder position counter to 0. Read this position counter value by querying the attribute IMG_ATTR_ENCODER_POSITION.

Parameters

Name Type Direction
sid SESSION_ID input
rval Int32 output

Parameter Discussion

sid: valid SESSION_ID.

Return Value

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