More information about triggering
To obtain precise timing and synchronization between instruments, use the remote trigger model. For
more information about the remote trigger model and interactive triggering using other trigger objects,
see Triggering (on page 4-1).
How do I generate a GPIB service request?
For detailed information about this topic, see Status model (on page 12-1).
Setting up a service request
The exact programming steps necessary to generate a GPIB service request (SRQ) vary depending
on the events intended to generate the SRQ. In general, these steps are:
1. Clear all status registers to prevent anomalous events from generating an SRQ.
2. Set the appropriate bits in the appropriate status model enable registers.
3. Set the proper bits in the service request enable register. At least one bit in this register must
always be set, but the exact bits to be set depend on the desired SRQ events.
Service request programming example
The example below shows how to program the 2600B to generate a service request (SRQ) when the
current limit on channel A is exceeded.
-- Clear all registers.
status.reset()
-- Enable the current limit bit in the current limit register.
status.measurement.current_limit.enable = status.measurement.current_limit.SMUA
-- Enable the status measure current limit bit.
status.measurement.enable = status.measurement.ILMT
-- Enable the status SRQ MSB.
status.request_enable = status.MSB
Polling for SRQs
To determine if the 2600B is the GPIB device that generated the service request (SRQ), serial poll the
instrument for the status byte, and test to see if the corresponding summary bits are set.