2470 High Voltage SourceMeter Instrument Reference Manual
Section 14: TSP command reference
2470-901-01 Rev. A /
May
2019
14-197
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 two) 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.
Example
digio.line[3].mode = digio.MODE_TRIGGER_IN
digio.line[5].mode = digio.MODE_TRIGGER_IN
trigger.digin[3].edge = trigger.EDGE_FALLING
trigger.digin[5].edge = trigger.EDGE_FALLING
trigger.blender[1].orenable = true
trigger.blender[1].stimulus[1] = trigger.EVENT_DIGIO3
trigger.blender[1].stimulus[2] = trigger.EVENT_DIGIO5
print(trigger.blender[1].wait(3))
Generate a trigger blender 1 event when a digital I/O trigger happens on line 3 or 5.
Wait 3 s while checking if trigger blender 1 event has occurred.
Also see
(on page 14-193)
trigger.clear()
This function clears any pending command triggers.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
No
Usage
trigger.clear()