NI IMAQ Function



rval imgSessionStatus(SESSION_ID sid, uInt32* status, uInt32* bufferIndex);


Gets the current session status.


Name Type Direction
sid SESSION_ID input
status uInt32* output
bufferIndex uInt32* output
rval Int32 output

Parameter Discussion

sid: valid SESSION_ID.

status: on return, the function populates status with zero if the session is not acquiring or a non-zero value if the session is acquiring.

bufferIndex: on return, the function populates bufferIndex with the last available buffer list index.

Return Value

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