Appendix E: Status model
Model 2651A High Power System SourceMeter® Instrument Reference Manual
E-18
2651A-901-01 Rev. A / March 2011
Status Byte and Service Request Enable Register commands
Command Description
*STB?
or
print(status.condition)
Read the Status Byte Register.
*SRE <mask>
or
status.request_enable = <mask>
Program the Service Request Enable Register where
<mask>
= 0 to 255.
*SRE?
or
print(status.request_enable)
Read the Service Request Enable Register.
Enable and transition registers
In general, there are three types of user-writable registers that are used to configure which bits feed
the register summary bit and when it occurs. The registers are identified in each applicable
(see "Commands" on page 7-8) command table and defined as follows:
•
Enable register
(identified as
.enable
in each attribute's command listing): Allows various
associated events to be included in the summary bit for the register.
•
Negative-transition register
(identified as
.ntr
in each attributes command listing): A particular
bit in the event register will be set when the corresponding bit in the NTR is set, and the
corresponding bit in the condition register transitions from 1 to 0.
•
Positive-transition register
(identified as
.ptr
in each attributes command listing): A particular
bit in the event register will be set when the corresponding bit in the PTR is set, and the
corresponding bit in the condition register transitions from 0 to 1.
Controlling node and SRQ enable registers
Attributes to control system node and service request (SRQ) enable bits and read associated
registers are summarized in the
(on page E-4). For example, either of
the following will set the system node QSB enable bit:
status.node_enable = status.QSB
status.node_enable = 8
Status register sets
There are five status register sets in the status structure of a High Power System SourceMeter
®
Instrument:
•
System Summary
•
Standard Event Status
•
Operation Status
•
Measurement Event
•
Questionable Status