RIGOL 2 Command System
2-8 DS2000E Programming Guide
*SRE
Syntax
*SRE <mask>
*SRE?
Description
Set or query the enable register for the state byte register set.
Parameter
Name Type Range Default
<mask> Integer 0 to 255 0
Explanation
<mask> is the sum of the binary weights (expressed in decimal) 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 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
*SRE 16 /*Bit 4 is enabled*/
*SRE? /*The query returns 16*/