User manual
RIGOL Chapter 2 Command System
2-74 MSO5000 Programming Guide
*RST
Syntax
*RST
Description
Restores the instrument to its factory default settings.
*SRE
Syntax
*SRE <maskargument>
*SRE?
Description
Sets or queries the enable register of the status byte register set.
Parameter
Name
Type
Range
Default
<maskargument>
Integer
0 to 255
0
Remarks
This command queries the standard event enable register value. Bit 3 and Bit 6 in the
standard event status register are not used and are always treated as 0. Therefore, the
range of <maskargument> is a decimal that corresponds to a binary number
X0XX0XXX (X is 1 or 0).
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the
bits set in the register.
Example
*SRE 16 /*Enables the bit 4 (16 in decimal) in the register.*/
*SRE? /*The query returns the enable value of the register 16.*/
*STB?
Syntax
*STB?
Description
Queries the event register for the status byte register. After executing the command, the
value in the status byte register is cleared.
Remarks
Bit 0 and Bit 1 in the status byte register are not used and are always treated as 0;
therefore, the range of the returned value is a decimal number corresponding to a binary
number X0XXXX0X (X is 1 or 0).
Return
Format
The query returns an integer. The integer equals to the binary-weighted sum of all the bits
set in the register.
*TST?
Syntax
*TST?
Description
Performs a self-test and queries the self-test result.
Return
Format
The query returns a decimal integer.
*WAI
Syntax
*WAI
Description
Waits for all the pending operations to complete before executing any additional
commands.
Remarks
This operation command does not have any functions, only to be compatible with other
devices.