Examples using interactive triggering
The following examples demonstrate how to use interactive triggering.
Command interface interactive trigger example
The programming example below illustrates how to clear triggers, turn on the SMU output, and then
enable a 30-second timeout to wait for a command interface trigger. When the trigger is received, the
2600B performs a voltage reading.
-- Clear any previously detected command interface triggers.
trigger.clear()
-- Turn on output.
smua.source.output = smua.OUTPUT_ON
-- Wait 30 seconds for a command interface trigger.
triggered = trigger.wait(30)
-- Get a voltage reading.
reading = smua.measure.v()
-- Send a command interface trigger to trigger the measurement.
*TRG
*TRG cannot be used in a script.
Manual triggering example
The programming example below illustrates how to pause a script and prompt the operator to press
the TRIG key when the operator is ready to continue. If the TRIG key is not pressed, the test
continues after waiting 10 minutes (600 seconds).
display.clear()
display.trigger.clear()
display.setcursor(1, 1)
display.settext("Take a Break")
display.setcursor(2, 1)
display.settext("Press TRIG to continue")
display.trigger.wait(600)
display.clear()