Status Byte Register - Keithley 2450 Reference Manual

Interactive sourcemeter instrument
Table of Contents

Advertisement

Appendix C: Status model

Status Byte Register

The Status Byte Register monitors the registers and queues in the status model and generates
service requests (SRQs).
When bits are set in the status model registers and queues, they generate summary messages that
set or clear bits of the Status Byte Register. You can enable these bits to generate an SRQ.
Service requests (SRQs) instruct the controller that the instrument needs attention or that some event
has occurred. When the controller receives an SRQ, the controller can interrupt existing tasks to
perform tasks that address the request for service.
For example, you might program your instrument to send an SRQ when a specific instrument error
occurs. To do this, you set the Status Request Enable bit 2 (EAV). In this example, the following
actions occur:
The errors occurs.
The error is logged in the Error Queue.
The Error Queue sets the EAV bit of the Status Byte Register.
The EAV bits are summed.
The RQS bit of the Status Byte Register is set.
On a GPIB system, the SRQ line is asserted. On a VXI-11 or USB connection, an SRQ event is
generated.
For an example of this, see the example code provided in
The summary messages from the status registers and queues are used to set or clear the appropriate
bits (B0, B2, B3, B4, B5, and B7) of the Status Byte Register. These summary bits do not latch, and
their states (0 or 1) are solely dependent on the summary messages (0 or 1). For example, if the
Standard Event Register is read, its register will clear. As a result, its summary message will reset to
0, which in turn will reset the ESB bit in the Status Byte Register.
The Status Byte Register also receives summary bits from itself, which sets the Master Summary
Status (MSS) bit.
When using the GPIB, USB, or VXI-11 serial poll sequence of the Model 2450 to get the status byte
(serial poll byte), bit B6 is the RQS bit. See
using the serial poll sequence.
When using the *STB? common command or status.condition command to read the status
byte, bit B6 is the MSS bit.
To reset the bits of the Service Request Enable Register to 0, use 0 as the parameter value for the
command (for example, *SRE 0 or status.request_enable = 0).
You can read and set which bits to AND in the Status Byte Register using the following commands.
Description
Read the Status Byte Register
Read the Status Request Enable
Register
Enable bits in the Status Request
Enable Register
C-10
Model 2450 Interactive SourceMeter® Instrument Reference Manual
SRQ on error
Serial polling and SRQ
SCPI command
*STB?
(on page B-9)
*SRE
(on page B-8)?
*SRE
(on page B-8)
(on page C-22).
(on page C-13) for details on
TSP command
status.condition
(on page 8-154)
status.request_enable
(on page 8-
160)
status.request_enable
(on page 8-
160)
2450-901-01 Rev. B/September 2013

Advertisement

Table of Contents
loading

Table of Contents