RIGOL
2-32
VSA Programming Guide
*CLS
Syntax
*CLS
Description
Clears all the event registers and status byte registers.
*ESE
Syntax
*ESE <value>
*ESE?
Description
Sets the enable register for the standard event status register.
Queries the enable register for the standard event status register.
Parameter
Name
Type
Range
Default
<value>
Integer
Refer to
"
Remarks
"
0
Remarks
Bit 2, Bit 3, Bit 4, and Bit 7 are reserved; you can set their values but they will not affect the system. Bit 1
and Bit 6 are not used and are always treated as 0; therefore, the range of <value> is a decimal value that
corresponds to the binary values ranging from 00000000 (0 in decimal) to 11111111 (255 in decimal) and
of which Bit 1 and Bit 6 are 0.
Return Format
The query returns an integer. The integer equals to the binary-weighted sum of all the bits set in the
register. For example, the query returns 144 if Bit 4 (16 in decimal) and Bit 7 (128 in decimal) are enabled.
Example
The following command sets the enable register for the standard event status register to 16.
*ESE 16
The following query returns 16.
*ESE?
*ESR?
Syntax
*ESR?
Description
Queries and clears the event register for the standard event status register.
Remarks
Bit 1 and Bit 6 in the standard event status register are not in use, and are regarded as 0. The query returns
a decimal value that corresponds to the binary values ranging from 00000000 (0 in decimal) to 11111111
(255 in decimal) and of which Bit 1 and Bit 6 are 0.