Appendix A API Command Reference
NetScan Users Manual A-11
@ - Trigger On Command
TYPE
Acquisition
EXECUTION
Deferred
SYNTAX
@
Trigger upon receipt of an @
DESCRIPTION
The Trigger On (@) command will start or stop the acquisition accordingly when the start or stop arguments
of the Set Trigger Configuration (T) command is set to 1 (trigger on). The T comm and is used as a trigger
source and follows the same rules as other trigger sources as defined by the T comm and. The @ command is
valid only when an acquisition is configured where either the start and/or stop event is defined as the Trigger On
command. If this command is issued when the acquisiti on i s not configured for stop and/or start Trigger On
command, an error condition will occur.
EXAMPLE
PRINT#1, “T1,1,0,0X”
Configure an acquisition with both start and stop trigger
being Trigger On command
PRINT#1, “@X”
Start the acquisition
SLEEP 10
Wait 10 seconds to collect data
PRINT#1, “@X”
Stop the acquisition
*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 buf fer is no longer needed or
may be corrupt. Once this command is executed, data in the acquisit i on buf fer is irrevocably lost.
EXAMPLE
PRINT#1,"U1X"
Serial Poll the unit
INPUT#1, A$
Get the Serial Poll response
IF (VAL(A$) AND 128) = 128 THEN
Check for Buffer Overrun
PRINT#1,"*BX"
Data may be corrupt, flush the acquisition buffer
ENDIF