Appendix E: Status model
2606B System SourceMeter® Instrument Reference Manual
E-16
2606B-901-01 Rev. B / May 2018
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 command
(as listed in
(on page 7-7)) 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
Status byte and service request enable registers
(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 System SourceMeter
®
instrument:
•
System Summary
•
Standard Event Status
•
Operation Status
•
Measurement Event
•
Questionable Status