Chapter 2 Command System  RIGOL 
MSO1000Z/DS1000Z Programming Guide  2-81 
*SRE 
Set or query the enable register for the status byte register set. 
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).   
The query returns an integer which equals the sum of the weights of all the bits that 
have already been set in the register. 
*SRE 16        /*Enable the bit 4 (16 in decimal) of the status byte register*/ 
*SRE?          /*The query returns 16*/ 
 
 
*STB? 
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. 
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). 
The query returns an integer which equals the sum of the weights of all the bits in the 
register.   
 
 
*TST? 
Perform a self-test and then return the seilf-test results. 
The query returns a decimal integer. 
 
 
*WAI 
Wait for the operation to finish. 
The subsequent command can only be carried out after the current command has been 
executed.