Monitoring the Instrument
4
-
19
Standard Event Status register
The Standard Event Status Register monitors the fol-
lowing instrument status events:
• OPC - Operation Complete
• RQC - Request Control
• QYE - Query Error
• DDE - Device Dependent Error
• EXE - Execution Error
• CME - Command Error
• URQ - User Request
• PON - Power On
When one of these events occur, the event sets the cor-
responding 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.
Enabling register bits with masks
Several masks are available which you can use to enable
or disable individual bits in each register. For example,
you can disable the Hardcopy bit in the OPERation Sta-
tus Register so that even though it goes high, it can
never set the summary bit in the status byte high.
Use the *SRE common command to set or query the
mask for the Status Byte Register.
The masks for the OPERation Status and QUEStionable
Status registers are set and queried using the STATus
subsystem’s ENABle commands.
Use the *ESE common command to set or query the
mask for the Standard Event Status Register.
The *CLS common command clears all event registers
and all queues except the output queue. If *CLS is sent
immediately following a program message terminator,
the output queue is also cleared. In addition, the
request for the *OPC bit is also cleared.
For example, suppose your application requires an
interrupt whenever any type of error occurs. The error
related bits in the Standard Event Status Register are
bits 2 through 5. The sum of the decimal weights of
Summary of Contents for 86121A
Page 2: ...User s Guide Agilent 86121A WDM Channel Analyzer ...
Page 7: ......
Page 10: ...Chapter 1 Getting Started ...
Page 21: ......
Page 24: ...Agilent 86121A Front and Rear Panels 2 3 Agilent 86121A Front and Rear Panels ...
Page 25: ...2 4 Agilent 86121A Front and Rear Panels ...
Page 27: ...2 6 WDM Channel Analyzer Display The S N with Averaging display ...
Page 32: ...The Softkeys 2 11 The Setup menu ...
Page 33: ...2 12 The Softkeys The Disk menu The Printer menu ...
Page 35: ...2 14 Changing the Printer Paper Changing the Printer Paper ...
Page 37: ......
Page 191: ......
Page 205: ...7 14 Regulatory Information Declaration of Conformity ...
Page 239: ......