5 Programming Examples
266 Keysight Models 6811C, 6812C, and 6813C Programming Guide
Examples
Determining the cause of a service interrupt
You can determine the cause for an SRQ by the following actions:
Step 1 Determine which summary bits are active. Use:
*STB? or
Serial poll
Step 2 Read the corresponding Event register for each summary bit to
determine which events caused the summary bit to be set. Use:
STATus:QUEStionable:EVENt?
STATus:OPERation:EVENt?
ESR?
When an Event register is read, it is cleared. This also clears the
corresponding summary bit.
Step 3 Remove the specific condition that caused the event. If this is not
possible, the event may be disabled by programming the
corresponding bit of the status group Enable register or NTR|PTR filter.
A faster way to prevent the interrupt is to disable the service request by
programming the appropriate bit of the Service Request Enable
register.