User`s guide

6-11
Status Reporting
Standard Event Status Register (SESR)
Standard Event Status Register (SESR)
The Standard Event Status Register (SESR) monitors the following oscilloscope
status events:
PON - Power On
URQ - User Request
CME - Command Error
EXE - Execution Error
DDE - Device Dependent Error
QYE - Query Error
RQC - Request Control
OPC - Operation Complete
When one of these events occur, the event sets the corresponding bit in the
register. If the bits are enabled in the Standard Event Status Enable Register,
the bits set in this register generate a summary bit to set bit 5 (ESB) in the
Status Byte Register.
You can read the contents of the Standard Event Status Register and clear the
register by sending the *ESR? query. The value returned is the total bit weights
of all of the bits that are set at the present time.
Example The following example uses the *ESR query to read the contents of the Standard
Event Status Register.
10 OUTPUT 707;"*ESR?"
20 ENTER 707;Result !Place result in a numeric variable
30 PRINT Result !Print the result
40 End
If bit 4 (weight = 16) and bit 5 (weight = 32) are set, the program prints the
sum of the two weights.