Section 17: Frequently asked questions Model 2601B-PULSE System SourceMeter Instrument Reference Manual
17-4 2601B-PULSE-901-01A April 2020
Interactive trigger programming
The programming example below illustrates how to set up interactive triggering. The example sets the
output trigger pulse width on line 1, then programs both lines 1 and 2 for falling edge triggers. Digital
I/O line 1 trigger asserts, and then line 2 waits for the input trigger up to the timeout period specified.
-- Set line 1 pulse width to 10 us.
digio.trigger[1].pulsewidth = 10e-6
-- Set line 1 mode to falling edge.
digio.trigger[1].mode = digio.TRIG_FALLING
-- Set line 2 mode to falling edge.
digio.trigger[2].mode = digio.TRIG_FALLING
-- Assert trigger on line 1.
digio.trigger[1].assert()
-- When complete, wait for trigger on line 2.
digio.trigger[2].wait(2)
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 6-1).
How do I generate a GPIB service request?
For detailed information about this topic, see the Status model (on page 15-1) section of this manual.
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 will depend on the desired SRQ events.