Models 707B and 708B Switching Matrix Reference Manual
Use the constant for EVENT_ID rather than the numeric value to set the stimulus. This will help make
the code compatible for future upgrades.
Also see
tsplink.trigger[N].assert()
tsplink.trigger[N].reset()
tsplink.trigger[N].wait()
This function waits for a trigger.
Type
TSP-Link accessible
Function
Yes
Usage
triggered = tsplink.trigger[N].wait(timeout)
triggered
N
timeout
Details
This function waits up to the timeout value for an input trigger. If one or more trigger events were detected since
the last time tsplink.trigger[N].wait() or tsplink.trigger[N].clear() was called, this function
returns immediately.
After waiting for a trigger with this function, the event detector is automatically reset and rearmed. This is true
regardless of the number of events detected.
Example
triggered = tsplink.trigger[3].wait(10)
print(triggered)
Also see
tsplink.trigger[N].clear()
707B-901-01 Rev. A / August 2010
NOTE
(on page 7-218)
(on page 7-223)
Affected by
Trigger detection indication:
•
True: A trigger is detected during the timeout period
•
False: A trigger is not detected during the timeout period
The trigger line (1 to 3)
The timeout value in seconds
(on page 7-219)
Where saved
Default value
Waits up to 10 seconds for a trigger
on TSP-Link line 3.
If false is returned, no trigger was
detected during the 10-second
timeout.
If true is returned, a trigger was
detected.
Section 7: Command reference
7-225