Model 2601B-PULSE System SourceMeter Instrument Reference Manual Section 11: TSP command reference
2601B-PULSE-901-01A April 2020 11-355
Example
digio.trigger[3].mode = digio.TRIG_FALLING
digio.trigger[5].mode = digio.TRIG_FALLING
trigger.blender[1].orenable = true
trigger.blender[1].stimulus[1] = digio.trigger[3].EVENT_ID
trigger.blender[1].stimulus[2] = digio.trigger[5].EVENT_ID
print(trigger.blender[1].wait(3))
Generate a trigger blender 1 event when a digital I/O trigger happens either on line 3 or 5.
Wait three seconds while checking if trigger blender 1 event has occurred.
If the blender trigger event has happened, then true is output. If the trigger event has not happened, then
false is output after the timeout expires.
Also see
trigger.blender[N].clear() (on page 11-350)
trigger.clear()
This function clears the command interface trigger event detector.
Usage
trigger.clear()
Details
The trigger event detector indicates if a trigger event has been detected since the last
trigger.wait() call. trigger.clear() clears the trigger event detector and discards the history
of command interface trigger events.
Also see
trigger.wait() (on page 11-364)
trigger.EVENT_ID
This constant contains the command interface trigger event number.
Usage
eventID = trigger.EVENT_ID
The event ID for the command interface triggers
Details
You can set the stimulus of any trigger object to the value of this constant to have the trigger object
respond to command interface trigger events.