
Section 7: TSP command reference
2606B System SourceMeter® Instrument Reference Manual
7-344
2606B-901-01 Rev. B / May 2018
Trigger event IDs*
Event ID
Event description
trigger.blender[
N
].EVENT_ID
Occurs after a collection of events is detected
trigger.timer[
N
].EVENT_ID
Occurs when a delay expires
trigger.generator[
N
].EVENT_ID
Occurs when the
trigger.generator[
N
].assert()
function is executed
* Use the name of the trigger event ID to set the stimulus value rather than the numeric value. Using the name
makes the code compatible for future upgrades (for example, if the numeric values must change when
enhancements are added to the instrument).
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
Generate a trigger blender 1
event when a digital I/O
trigger happens on line 3 or
5.
Also see
(on page 7-342)
trigger.blender[N].wait()
This function waits for a blender trigger event to occur.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
triggered
= trigger.blender[
N
].wait(
timeout
)
triggered
Trigger detection indication for blender
N
The trigger blender (up to six) on which to wait
timeout
Maximum amount of time in seconds to wait for the trigger blender event
Details
This function waits for an event blender trigger event. If one or more trigger events were detected
since the last time
trigger.blender[
N
].wait()
or
trigger.blender[
N
].clear()
was
called, this function returns immediately.
After detecting a trigger with this function, the event detector automatically resets and rearms. This is
true regardless of the number of events detected.