
Model 2450 Interactive SourceMeter® Instrument Reference Manual
Section 8: TSP command reference
2450-901-01 Rev. B/September 2013
8-173
Details
This function pauses for up to
timeout
seconds for an input trigger. If one or more trigger events are detected
since the last time
digio.trigger[
N
].wait()
or
digio.trigger[
N
].clear()
was called, this function
returns a value immediately. After waiting for a trigger with this function, the event detector is automatically reset
and ready to detect the next trigger. This is true regardless of the number of events detected.
Example
digio.line[4].mode = digio.MODE_TRIGGER_OUT
triggered = trigger.digin[4].wait(3)
print(triggered)
Waits up to three seconds for a trigger to be
detected on trigger line 4, then outputs the
results.
Output if no trigger is detected:
false
Output if a trigger is detected:
true
Also see
(on page 8-43)
(on page 3-62)
(on page 8-170)
trigger.digout[N].assert()
This function asserts a trigger on one of the digital I/O lines.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
trigger.digout[
N
].assert()
N
Digital I/O trigger line (1 to 6)
Details
Initiates a trigger event and does not wait for completion. The set pulse width determines how long the trigger is
asserted.
Example
digio.line[2].mode = digio.MODE_TRIGGER_OUT
trigger.digout[2].assert()
Asserts a trigger on digital I/O line 2.
Also see
(on page 8-43)
(on page 3-62)
(on page 8-174)