Section 7: TSP command reference
Models 707B and 708B Switching Matrix Reference Manual
7-226
707B-901-01 Rev. B / January 2015
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)
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.
Also see
(on page 7-219)
tsplink.writebit()
This function sets a TSP-Link synchronization line high or low.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function
Yes
Usage
tsplink.writebit(
N
,
data
)
N
The trigger line (1 to 3)
data
The value to write to the bit:
•
Low:
0
•
High:
1
Details
Use
tsplink.writebit()
and
tsplink.writeport()
to control the output state of the trigger
line when trigger operation is set to
tsplink.TRIG_BYPASS
.
If the output line is write-protected by the
tsplink.writeprotect
attribute, this command is
ignored.
The reset function does not affect the present states of the TSP-Link trigger lines.
Example
tsplink.writebit(3, 0)
Sets trigger line 3 low (0).
Also see
(on page 7-216)
(on page 7-216)
(on page 7-227)
(on page 7-227)