NI-IMAQ C Function Reference

imgSessionSerialFlush

  • 已更新2023-02-21
  • 閱讀時間為 1 分鐘

Usage

rval imgSessionSerialFlush(SESSION_ID sid);

Purpose

Clears the internal serial buffer. In a serial write/read sequence, call imgSessionSerialFlush before calling imgSessionSerialWrite to clear the internal serial buffer for the next read.

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.