
Section 8: TSP command reference
Model 2461 Interactive SourceMeter® Instrument Reference Manual
8-244
2461-901-01 A/November 2015
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
trigger.digin[
N
].wait()
or
trigger.digin[
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 is ready to detect the next trigger. This is true regardless of the
number of events detected.
Example
digio.line[4].mode = digio.MODE_TRIGGER_IN
triggered = trigger.digin[4].wait(3)
print(triggered)
Waits up to 3 s 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-50)
Digital I/O port configuration
(on page 3-87)
(on page 8-241)
trigger.digout[N].assert()
This function asserts a trigger pulse 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 pulse width that is set determines how
long the instrument asserts the trigger.
Example
digio.line[2].mode = digio.MODE_TRIGGER_OUT
trigger.digout[2].pulsewidth = 20e-6
trigger.digout[2].assert()
Asserts a trigger on digital I/O line 2 with a pulse
width of 20
µ
s.
Also see
(on page 8-50)
Digital I/O port configuration
(on page 3-87)
(on page 8-245)
(on page 8-245)