IEEE-488 Reference
5-119
5.17.4
:ERRor?
:SYSTem:ERRor? Read Error Queue
:syst:err?
Power-up Clears Error Queue
*RST No effect
*CLS Clears Error Queue
DCL, SDC No effect
:SYSTem:PRESet No effect
:STATus:PRESet No effect
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.
If the queue becomes full, the message “350, ‘Queue Overflow’” will occupy the last memory
location in the register. On power-up, the 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 defined messages. Table 4-1
lists the messages.
After this command is sent and the Model 7001 is addressed to talk, the “oldest” message in the
queue is sent to the computer.
Note: The :SYSTem:ERRor? query command performs the same function as the :STA-
Tus:QUEue? query command (see STATus subsystem).
10 DIM A$ [30]
20 OUTPUT 707; “:syst:err?”
30 ENTER 707; A$
40 PRINT A$
50 END
Line 10 Increases string size to accommodate message.
Line 20 Reads the Error Queue.
Line 30 Addresses the 7001 to talk.
Line 40 Displays the message from the Error Queue.
Short-form
format
Defaults
Description
Programming
example
:SYSTem Subsystem
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com