10-20
Status Structure
Model 6487 Reference Manual
Programming example — read error queue
The following command reads the error queue:
STAT:QUE?
' Read Error Queue.
Table 10-7
SCPI commands — error queue
Command
Description
Default
STATus
:QUEue
[:NEXT]?
:ENABle <list>
:ENABle?
:DISable <list>
:DISable?
:CLEar
SYSTem
:ERRor
[:NEXT]?
:ALL?
:COUNt?
:CODE
[:NEXT]?
:ALL?
STATus subsystem:
Read error queue:
Read and clear oldest error/status (code and message).
Specify error and status messages for error queue.
Read the enabled messages.
Specify messages not to be placed in queue.
Read the disabled messages.
Clear messages from error queue.
SYSTem subsystem:
Read error queue:
Read and clear oldest error/status (code and message).
Read and clear all errors/status (code and message).
Read the number of messages in queue.
Code numbers only:
Read and clear oldest error/status (code only).
Read and clear all errors/status (codes only).
(Note 1)
(Note 2)
(Note 2)
(Note 1)
Notes:
1. Power-up and *CLS empties the error queue. STATus:PRESet has no effect.
2. Power-up enables error messages and disables status messages. *CLS and STATus:PRESet have no effect.