Flush acquisition buffer – Measurement Computing TempScan/1100 User Manual
Page 209

TempScan / MultiScan User’s Manual
889897
API
Command Reference A-13
*B
- Flush Acquisition Buffer
TYPE
Buffer
EXECUTION
Immediate
SYNTAX
*B
Flush any data currently in the Acquisition Buffer
DESCRIPTION
The Flush Acquisition Buffer (
*B
) command will flush any data currently in the Acquisition Buffer. Upon execution
of this command, all data currently in the buffer will be deleted and made unavailable to be read. This command
should only be used when it is determined that the data in the buffer is no longer needed or may be corrupt.
Once this command is executed, data in the buffer is irrevocably lost.
EXAMPLE
PRINT#1,"SPOLL07"
‘ Serial Poll the unit
INPUT#2, S%
‘ Get the Serial Poll response
IF (S% AND 128) = 128 THEN
‘ Check for Buffer Overrun
PRINT#1,"OUTPUT07; *BX"
‘ Data may be corrupt, flush the Acquisition Buffer
ENDIF