Queue Commands - Keithley 7001 Instruction Manual

High density switch system
Hide thumbs Also See for 7001:
Table of Contents

Advertisement

:QUEue commands

5.16.6
[:NEXT]?
:STATus:QUEue[:NEXT]?
Short-form
:stat:que?
format
Power-Up
Defaults
*CLS
:STATus:PRESet
As error and status messages occur, they are placed into the Error Queue. This query command
Description
is used to read those messages.
The Error Queue is a first-in, first-out (FIFO) register. Every time you query the queue, the "old-
est" message is read and that message is then removed from the queue. The queue will hold up
to 10 messages. If the queue becomes full, the message "350, 'Queue Overflow'" will occupy
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 defined messages. The mes-
sages are listed in Table 4-1.
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 :STATus:QUEue[:NEXT]? query command performs the same function as the :SYS-
Tem:ERRor? query command (see System Subsystem).
Programming
The following program will read the "oldest" message in the Error Queue:
example
5
10 OUTPUT 707; ":stat:que?"
20 ENTER 707; A$
30 PRINT A$
40 END
Line 5
Line 10 Requests the "oldest" message in the queue.
Line 20 Addresses the Model 7001 to talk.
Line 30 Displays the message on the CRT.
Artisan Scientific - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisan-scientific.com
Clears Error Queue
Clears Error Queue
No effect
DIM A$ [30]
Increase string size to accommodate the length of the messages.
:STATus Subsystem
Query Error Queue
IEEE-488 Reference
5-113

Advertisement

Table of Contents
loading

Table of Contents