REMOTE OPERATION STATUS COMMANDS
4-201
Determine which register sets, and which of its bits monitors the condition.
Determine how that bit reports to the request service (RQS) bit of the status byte (some report
directly while others may report indirectly through other register sets:).
Send remote commands to enable the bit that monitors the condition and to enable the
summary bits that report the condition to the RQS bit.
Enable the controller to respond to service requests.
When the condition changes, the instrument sets its RQS bit (bit 6) and the GPIB’s SRQ line; the
controller is informed of the change as soon as it occurs. Setting the SRQ line informs the
controller that a device on the bus requires service. The program then instructs the controller to
perform a serial poll; each device on the bus returns the contents of its status byte register in
response to this poll. The device whose RQS bit is set to ‘1’ is the device that requested service.
After the status byte is read the RQS bit is reset to ‘0’; the other bits are not affected.
Another reason for using SRQ is the need to detect errors in the various devices within the
instrument. Since the timing of errors may not be known in advance, and it is not practical for the
program to check the status of every device frequently, an interrupt handling routine can be used to
detect and investigate any SRQ generated.