![Rigol DS4000E Series Programming Manual Download Page 114](http://html1.mh-extra.com/html/rigol/ds4000e-series/ds4000e-series_programming-manual_1460996114.webp)
RIGOL
2-102
DS4000E Programming Guide
Return Format
The query returns 1 if the current operation is finished; otherwise, the query returns 0.
*RST
Syntax
*RST
Description
Restores the instrument to its factory default settings.
*SRE
Syntax
*SRE <mask>
*SRE?
Description
Sets or queries the enable register of the status byte register set.
Parameter
Name
Type
Range
Default
<mask>
Integer
0 to 255
0
Remarks
<mask> is the binary-weighted sum of all the bits from bit 0 to bit 7. "1" denotes enabling the
corresponding bit; and "0" denotes disabling the corresponding bit. The bits in the status byte register are
defined as follows:
Bit
Weight
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 (Not used)
2
USR
User
0 (Not used)
1
TRG
Trigger
Return Format
The query returns an integer (corresponds to the binary-weighted sum of all the bits) between 0 and 255.
*STB?
Syntax
*STB?
Description
Queries the condition register of the status byte register set.
Remarks
For the definitions of the bits in the status byte register, refer to the *SRE command.