User manual

Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-81
*SRE
Syntax *SRE <value>
*SRE?
Description
Set or query the enable register for the status byte register set.
Parameter
Name
Type
Range
Default
<value>
Integer
0 to 255
0
Explanation The bit 0 and bit 1 of the status byte register are not used and are always treated as 0;
therefore, the range of <value> are the decimal numbers corresponding to the binary
numbers XXXXXX00 (X is 1 or 0).
Return
Format
The query returns an integer which equals the sum of the weights of all the bits that
have already been set in the register.
Example *SRE 16 /*Enable the bit 4 (16 in decimal) of the status byte register*/
*SRE? /*The query returns 16*/
*STB?
Syntax
*STB?
Description
Query the event register for the status byte register. The value of the status byte register
is set to 0 after this command is executed.
Explanation The bit 0 and bit 1 of the status byte register are not used and are always treated as 0.
The query returns the decimal numbers corresponding to the binary numbers X0XXXX0X
(X is 1 or 0).
Return
Format
The query returns an integer which equals the sum of the weights of all the bits in the
register.
*TST?
Syntax
*TST?
Description
Perform a self-test and then return the seilf-test results.
Return
Format
The query returns a decimal integer.
*WAI
Syntax
*WAI
Description
Wait for the operation to finish.
Explanation The subsequent command can only be carried out after the current command has been
executed.