Appendix C: Status model
Models 707B and 708B Switching Matrix Reference Manual
C-20
707B-901-01 Rev. B / January 2015
Status byte and service request commands
The commands to program and read the Status Byte Register and Service Request Enable Register
are listed in
Status byte and service request commands
(on page C-20). Note that the table includes
both common commands and their script command equivalents. For details on programming and
reading registers, see
Programming enable and transition registers
(on page C-15).
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
).
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 TSP commands) 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 C-4). For example, either of
the following will set the system node QSB enable bit:
status.node_enable = status.QSB
status.node_enable = 8