Programming instructions
Table Of Contents
- Contents
- Title Page
- Chapter 1 Introduction to Programming
- Chapter 2 Programming Getting Started
- Chapter 3 Programming over HP-IB
- Chapter 4 Programming over RS-232-C
- Chapter 5 Programming and Documentation Conventions
- Chapter 6 Status Reporting
- Figure 6-1. Status Reporting Overview Block Diagram
- Table 6-1. Status Reporting Bit Definition
- Status Reporting Data Structures
- Status Byte Register (SBR)
- Service Request Enable Register (SRER)
- Trigger Event Register (TRG)
- Standard Event Status Register (SESR)
- Standard Event Status Enable Register (SESER)
- User Event Register (UER)
- Local Event Register (LCL)
- Operation Status Register (OPR)
- Limit Test Event Register (LTER)
- Mask Test Event Register (MTER)
- Histogram Event Register (HER)
- Arm Event Register (ARM)
- Error Queue
- Output Queue
- Message Queue
- Key Queue
- Clearing Registers and Queues
- Figure 6-3. Status Reporting Decision Chart
- Chapter 7 Installing and Using the Programmer's Reference
- Chapter 8 Programmer’s Quick Reference
- Warranty
- Index

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.
The contents of the Standard Event Status Register can be read and the
register cleared 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;":SYSTEM:HEADER OFF" !Turn headers off
20 OUTPUT 707;"*ESR?"
30 ENTER 707;Result !Place result in a numeric variable
40 PRINT Result !Print the result
50 End
If bit 4 (weight = 16) and bit 5 (weight = 32) are set, the program prints the
sum of the two weights.
Status Reporting
Standard Event Status Register (SESR)
6-12