Program And Read Register Programming Example - Keithley 2520 User Manual

Pulsed laser diode test system
Hide thumbs Also See for 2520:
Table of Contents

Advertisement

Model 2520 User's Manual
Programming example - program and read register set
The command sequence in
Registers are read using the binary format (which directly indicates which bits are set).
The command to select format (FORMat:SREGister) is documented in
Table 11-8

Program and read register programming example

FORM:SREG BIN
STAT:MEAS:ENAB 512
STAT:MEAS:COND?
STAT:MEAS?
Queues
The Model 2520 uses two queues, which are first-in, first-out (FIFO) registers:
The Model 2520 status model
the other registers.
Output queue
The output queue holds data that pertains to the normal operation of the instrument. For
example, when a query command is sent, the response message is placed in the Output
Queue.
When data is placed in the Output Queue, the Message Available (MAV) bit in the Status
Byte Register sets. A data message is cleared from the Output Queue when it is read. The
Output Queue is considered cleared when it is empty. An empty Output Queue clears the
MAV bit in the Status Byte Register.
A message is read from the Output Queue by addressing the Model 2520 to talk after the
appropriate query is sent.
Table 11-8
Command
Output Queue — Used to hold reading and response messages.
Error Queue — Used to hold error and status messages. (See
programs and reads the measurement register set.
Description
Select binary format to read registers.
Enable BFL (buffer full).
Read Measurement Condition Register.
Read Measurement Event Register.
(Figure
11-1) shows how the two queues are structured with
Status Structure
11-19
Table
11-2.
Appendix
B.)

Advertisement

Table of Contents
loading

Table of Contents