Specifications

Chapter 2 Command System RIGOL
M300 Programming Guide 2-57
*ESE
Syntax *ESE <enable_val>
*ESE?
Description
Set the enable register for the Standard Event Register set.
Parameters
Name
Type
Range
Default
<enable_val>
Numeric
0 to 255
0
Explanation
The definition of each bit in the Standard Event Register is as shown in the table
below. Wherein, bit1 and bit6 are not used and are always regarded as 0. Therefore,
the range of <enable_val> are the decimal numbers corresponding to the binary
numbers ranging from 00000000 (0 in decimal) to 11111111 (255 in decimal) and of
which bit1 and bit6 are 0.
Bit
Weight
Name
Explanation
7
128
Power On
Power has been turned off and on
since the last time the event
register was read or cleared.
6
Not Used
Not Used
Always be 0.
5
32
Command Error
A command error occurred.
4
16
Execution Error
An execution error occurred.
3
8
Device Error
A device-specific error has been
generated.
2
4
Query Error
A query error has been generated.
In the following situations, query
errors will be generated:
the instrument tried to read the
output buffer but it was empty; a
new command line was received
before a previous query has been
read; both the input and output
buffers are full.
1
Not Used
Not Used
Always be 0.
0
1
Operation Complete
All the commands prior to and
including the
*OPC command have been
executed.
Return
Format
The query returns an integer that corresponds to the binary-weighted sum of all the bits set
in the register. For example, if bit 4 (decimal value = 16) and bit 7 (decimal value = 128) are
enabled, the query will return 144.
Example *ESE 144
*ESE?
The query returns 144.
Related
command
*ESR?