Status Structure 8-9
Status byte and service request commands
The commands to program and read the status byte register and service request enable regis-
ter are listed in Table 8-2. For details on programming and reading registers, see “Programming
enable registers” and “Reading registers” on page 8-5.
NOTE T
o reset the bits of the service request enable register to 0, use 0 as the parameter
value for the *SRE command (i.e. *SRE 0).
Table 8-2
Command commands — status byte and service request enable registers
Command Description Default
*STB?
*SRE <NRf>
*SRE?
Read status byte register
Program the service request enable register: 0 to 255
Read the service request enable register
(Note)
Note: *CLS and STATus:PRESet have no effect on the service request enable register.
Programming example — read status byte
The following command sequence enables EAV (error available), sends an invalid command,
and then reads the status byte register:
*CLS ‘ Clear Status Byte Register.
*SRE 4 ‘ Enable EAV.
BAD:COMMand ‘ Send an invalid command to generate an error.
*STB? ‘ Read status byte. The value 68 will be returned to indicate
that bits B2 (EAV) and B6 (MSS) of the Status Byte Register
are set.
Test Equipment Depot - 800.517.8431 - 99 Washington Street Melrose, MA 02176
TestEquipmentDepot.com