11-10
Status Structure
Model 2701 User’s Manual
Status byte and service request commands
The commands to program and read the Status Byte Register and Service Request Enable
Register are listed in Table 11-3. For details on programming and reading registers, see
“Programming enable registers” and “Reading registers”.
NOTE
To reset the bits of the Service Request Enable Register to 0, use 0 as the
parameter value for the *SRE command (*SRE 0).
Programming example — set MSS (B6) when error occurs
The second command in the following sequence enables EAV (error available). When an
invalid command is sent (line 4), bits B2 (EAV) and B6 (MSS) of the Status Byte Register
set to 1. The last command reads the Status Byte Register. To determine the exact nature of
the error, you will have to read the Error Queue (see “Queues” on page 11-22).
NOTE
The following example can be run from the KE2700 Instrument Driver using the
example named “PollSRQ” in Table G-1 of Appendix G.
*CLS
' Clear Error Queue.
*SRE 4
' Enable EAV.
FORM:SREG BIN
' Select binary format.
*XYZ
' Generate error.
*STB?
' Read Status Byte Register.
Status register sets
As shown in Figure 11-1, there are four status register sets in the status structure of the
Model 2701: Standard Event Status, Operation Event Status, Measurement Event Status,
and Questionable Event Status.
Table 11-3
Status Byte and Service Request Enable Register commands
Command
Description
Default
*STB?
Read Status Byte Register.
*SRE <NDN> or <NRf>
Program the Service Request Enable Register:
<NDN>
= #Bxx…x
Binary format (each x = 1 or 0)
= #Hx
Hexadecimal format (x = 0 to FF)
= #Qx
Octal format (x = 0 to 377)
<NRf>
= 0 to 255
Decimal format
(Note)
*SRE?
Read the Service Request Enable Register
Note: *CLS and STATus:PRESet have no effect on the Service Request Enable Register.
2701-900-01.book Page 10 Wednesday, August 3, 2011 9:43 AM
Summary of Contents for 2701
Page 344: ...12 CommonCommands 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 366: ...15 SCPIReferenceTables 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 393: ...A Specifications 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 399: ...B Model7700ConnectionGuide 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 410: ...C StatusandErrorMessages 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 417: ...D SignalProcessing SequenceandDataFlow 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 430: ...E MeasurementConsiderations 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...
Page 450: ...G KE2700InstrumentDriver Examples 2701 900 01 book Page 1 Wednesday August 3 2011 9 43 AM...