User manual

Chapter 2 Command System RIGOL
MSO1000Z/DS1000Z Programming Guide 2-79
IEEE488.2 Common Commands
The IEEE 488.2 standard defines some common commands used for querying the basic information of the
instrument or executing the basic operations. These commands usually start with "*" and the keyword of
the command is usually 3-character long.
Command List:
*CLS
*ESE
*ESR?
*IDN?
*OPC
*RST
*SRE
*STB?
*TST?
*WAI
*CLS
Syntax
*CLS
Description
Clear all the event registers and clear the error queue.
*ESE
Syntax *ESE <value>
*ESE?
Description
Set or query the enable register for the standard event status register set.
Parameter
Name
Type
Range
Default
<value>
Integer
Refer to Explanation
0
Explanation The bit 1 and bit 6 of the standard event status register are not used and are always
treated as 0; therefore, the range of <value> are 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 that have
already been set in the register.
Example *ESE 16 /*Enable the bit 4 (16 in decimal) of the standard event status register*/
*ESE? /*The query returns 16*/