Appendix A API Commands
ChartScan User’s Manual 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 acquisition buffer will be deleted and is unavailable to be read. This
command should only be used when it is determined that the data in the acquisition buffer is no longer needed or
may be corrupt. Once this command is executed, data in the acquisition buffer is irrevoc ably 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