User manual

Series 3700 System Switch/Multimeter Reference Manual Section 12: Status Model
3700S-901-01 Rev. C / July 2008 12-15
Status byte and service request commands
The commands to program and read the status byte register and service request
enable register are listed below. 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 12-10) and Reading registers (on page 12-11).
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).
Commands
Description
*STB?
or
print(status.condition)
Read status byte register.
*SRE <mask>
or
status.request_enable =
<mask>
Program the service request enable register:
<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 and when register summary
occurs. The registers are identified in the command table footnotes as follows:
Enable register (identified as "enable" in the table footnotes): Allows
various associated events to be included in the summary bit for the register.
Negative-transition register (NTR; identified as "ntr" in the table
footnotes): 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 (PTR; identified as "ptr" in the table footnotes):
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.