
SCPI Command Set
command, it would be uncleared which command has resulted
in which error.
Syntax
:SYSTem:ERRor[:NEXT]?
Parameter
None
Response
<error code>,<description>
Output Data Type
<integer>,<string>
Description
Refer to the
Appendix D: SCPI Status and Event Registers
Example
:SYST:ERR?
:SYSTem:ERRor:ALL?
This query returns all the uncleared error codes and messages from the SCPI error/event
queue. If there are no error messages, the query returns 0,"No error".
Syntax
:SYSTem:ERRor:ALL?
Parameter
None
Response
<error code>,<description>{,<error code>,<description>}
Output Data Type
<integer>,<string>{,<integer>,<string>}
Description
Refer to the
Appendix E: SCPI Error Codes Used
Example
:SYST:ERR:ALL?
:SYSTem:FLUSh
This command clears the WSA5000's internal data storage buffer of any data that is
waiting to be sent. Thus, it is recommended that the flush command should be used
when switching between different capture modes to clear up the remnants of packet
within the WSA.
Caution:
any time during streaming or sweeping mode will
cause the stream or sweep capture to stop (abort) and switch automatically to block
capture mode.
Note:
Flush command only handles the WSA's internal buffer storage. The host
application should ensure that the socket buffer is also cleared up of any potential data in
the socket buffer. This can be done by calling the receive socket (non-blocking) until no
data is returned. With Streaming or Sweeping, the start ID in a VRT extension packet
marks the beginning of packets belonging to the new stream or sweep. This helps to
distinct old packets from new packets.
Syntax
:SYSTem:FLUSh
Parameter/Response
None
*RST State
N/A
Examples
:SYST:FLUSH
50
ThinkRF WSA5000 Wireless Signal Analyzer Programmer's Guide