Section 14: SCPI command reference
Model 6517B Electrometer Reference Manual
14-120
6517B-901-01 Rev. C / August 2015
:QUEue commands
[:NEXT]?
This command is used to read the error queue.
Usage
:STATus:QUEue[:NEXT]?
Details
As error and status messages occur, they are placed into the error queue. This query command is
used to read those messages.
The error queue is a first-in, first-out (FIFO) register. Every time you read the queue, the oldest
message is read and that message is then removed from the queue. The queue holds up to 10
messages. If the queue becomes full, the message "350, 'Queue Overflow'" occupies the last memory
location in the register. On power-up, the error queue is empty. When the error queue is empty, the
message "0, 'No error'" is placed in the error queue.
The messages in the queue are preceded by a number. Negative (-) numbers are used for SCPI
defined messages, and positive (+) numbers are used for Keithley Instruments defined messages.
The messages are listed in
Status and error messages
(on page 2-11).
After this command is sent and the Model 6517B is addressed to talk, the oldest message in the
queue is sent to the computer.
The
:STATus:QUEue[:NEXT]?
query command performs the same function as the
:SYSTem:ERRor?
query command.
Also see
:SYSTem subsystem
(on page 14-122)