Technical data
Status Reporting 6
Agilent Infiniium 90000 Series Oscilloscopes Programmer's Reference 105
Standard Event Status Register
The Standard Event Status Register (SESR) monitors the following
oscilloscope status events:
• PON - Power On
• CME - Command Error
• EXE - Execution Error
• DDE - Device Dependent Error
• QYE - Query Error
• RQC - Request Control
• OPC - Operation Complete
When one of these events occurs, the corresponding bit is set in the
register. If the corresponding bit is also enabled in the Standard Event
Status Enable Register, a summary bit (ESB) in the Status Byte Register is
set.
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 bits set at the present time.
Example The following example uses the *ESR query to read the contents of the
Standard Event Status Register.
myScope.WriteString ":SYSTEM:HEADER OFF" 'Turn headers off
myScope.WriteString "*ESR?"
varQueryResult = myScope.ReadNumber
Debug.print "Standard Event Status Register: 0x" + Hex(varQueryResult)
If bit 4 (weight = 16) and bit 5 (weight = 32) are set, the program prints
the sum of the two weights.