*ESE <integer>
*ESE?
Standard Event Status Enable
Sets or reads out the enable bits of the standard event enable register. This enable register contains a mask value for the bits to be enabled in the standard event status register. A bit that is set true in the enable register enables the corresponding bit in the status register. An enabled bit will set the ESB (Event Status Bit) in the Status Byte Register if the enabled event occurs.
Parameters: <integer> = the sum (between 0 and 255) of all bits that are true.
Event Status Enable Register (1 = enable) | ||
---|---|---|
Bit | Weight | Enables |
7 | 128 | Reserved |
6 | 64 | Reserved |
5 | 32 | Reserved |
4 | 16 | Reserved |
3 | 8 | Reserved |
2 | 4 | Reserved |
1 | 2 | Reserved |
0 | 1 | Operation Complete |
Returned Format: <integer> \n
Example:
SEND → *ESE 36
In this example, command error, bit 5, and query error, bit 2, will set the ESB-bit of the Status Byte if these errors occur.
Example:
SEND → *ESE 1
In this example, bit 0 (Operation Complete event) is enabled. This will set the “ESB” bit of the Status Byte Register when long operation completes.
SEND → *ESE?
Reply: 1