Technical data
244 Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference
13 Common Commands
*STB?
(Status Byte)
Query
*STB?
The *STB? query returns the current contents of the Status Byte, including
the Master Summary Status (MSS) bit. See Table 20 for Status Byte
Register bit definitions.
Returned Format
<value><NL>
<value> An integer, 0 to 255, representing a mask value for the bits enabled in the
Status Byte.
Example This example reads the contents of the Status Byte into the numeric
variable, varValue, then prints the value of the variable to the computer's
screen.
myScope.WriteString "*STB?"
varValue = myScope.ReadNumber
Debug.Print FormatNumber(varValue, 0)
In response to a serial poll (SPOLL), Request Service (RQS) is reported on
bit 6 of the status byte. Otherwise, the Master Summary Status bit (MSS)
is reported on bit 6. MSS is the inclusive OR of the bitwise combination,
excluding bit 6, of the Status Byte Register and the Service Request Enable
Register. The MSS message indicates that the oscilloscope is requesting
service (SRQ).
Table 20 Status Byte Register Bits
Bit Bit
Weight
Bit Name Condition (0 = False = Low, 1 =
True = High)
7 128 OPER 0 = no enabled operation status
conditions have occurred 1 = an
enabled operation status condition
has occurred
6 64 RQS/MSS 0 = oscilloscope has no reason for
service 1 = oscilloscope is
requesting service
5 32 ESB 0 = no event status conditions
have occurred 1 = an enabled
event status condition has
occurred
4 16 MAV 0 = no output messages are ready
1 = an output message is ready
3 8 --- 0 = not used