Specifications
2 Command System RIGOL
DS2000 Programming Guide
2-17
*SRE
Syntax
*SRE <mask>
*SRE?
Description
Set the enable register for the state byte register set.
Query the current value of the enable register of the state byte register set.
Parameter
Name Type Range Default
<mask> Integer 0 to 255 0
Explanation
<mask> is the sum of the weights of all the bits between bit 0 and bit 7 that have
already been set. If the bit has already been set, the corresponding binary bit is 1;
otherwise, it is 0.
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
weights 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.