2 Command System RIGOL
DS2000E Programming Guide
*STB?
Syntax
*STB?
Description
Query the condition register for the state byte register set.
Explanation
Definitions of the bits of SRE register:
Bit Weights Name Enable
7 128 OPER Operation Status Reg
6 64 -- Not used
5 32 ESB Event Status Bit
4 16 MAV Message Available
3 8 -- Not used
2 4 MSG Message
1 2 USR User
0 1 TRG Trigger
Return Format
The query returns an integer between 0 and 255 which equals the sum of the binary weights (expressed
in decimal) of all the bits that have already been set in the register. For example, the query returns 144 if
bit 4 (16 in decimal) and bit 7 (128 in decimal) are enabled.
Example
*STB? /*The query returns 24 (bit 3 and bit 4 are enabled)*/