Digital I/O triggering interactive example
The programming example below illustrates how to configure digital I/O line 2 as an input trigger and
digital I/O line 14 as an output trigger. The 2600B to wait for an external input trigger on digital I/O line
2. If a trigger event occurs, the 2600B outputs an external trigger on digital I/O line 14. If no trigger
event is received on digital I/O line 2, the test is aborted.
-- Configure digital I/O lines 2 and 14 for input trigger detection
-- and output trigger generation, respectively.
digio.trigger[2].mode = digio.TRIG_RISINGA
digio.trigger[2].clear()
digio.trigger[14].mode = digio.TRIG_FALLING
digio.trigger[14].pulsewidth = 0.0001
-- Wait 15 seconds for a trigger event to occur on digital I/O line 2.
trigInput = digio.trigger[2].wait(15)
-- If a trigger event occurs on digital I/O line 2, assert an output
-- trigger on digital I/O line 14. If a trigger event does
-- not occur, turn off the output of smua and issue a message
-- on the front-panel display.
if trigInput == true then
digio.trigger[14].assert()
else
smua.source.output = smua.OUTPUT_OFF
display.screen = display.USER
display.clear()
display.setcursor(1, 1)
display.settext("No trigger received. Test aborted.")
exit()
end
Hardware trigger modes
You can use different hardware trigger modes for digital I/O and TSP-Link
®
synchronization. Use
hardware triggers to integrate Keithley instruments and non-Keithley instruments in a test system.
The 2600B supports 14 digital I/O lines and three TSP-Link synchronization lines that can be used for
input or output triggering. For additional information about the hardware trigger modes, see TSP
command reference (on page 9-1).
For direct control of the line state, use the bypass trigger mode.