Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-214
707B-901-01 Rev. A / August 2010
trigger.wait()
This function waits for a command interface trigger event.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
triggered = trigger.wait(timeout)
triggered
True
: A trigger was detected during the timeout period
False
: No triggers were detected during the timeout period
timeout
Maximum amount of time in seconds to wait for the trigger
Details
This function waits up to
timeout
seconds for a trigger on the active command interface. A command interface
trigger occurs when:
•
A GPIB GET command is detected (GPIB only)
•
A VXI-11 device_trigger method is invoked (VXI-11 only)
•
A *TRG message is received
If one or more of these trigger events were previously detected, 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 = trigger.wait(10)
print(triggered)
Waits up to 10 seconds for a trigger.
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-206)
tsplink.group
This attribute is the group number of a TSP-Link node used for DTNS.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Attribute (RW)
Yes
Not applicable
Not saved
0
Usage
groupNumber = tsplink.group
tsplink.group = groupNumber
groupNumber
The group number of the TSP-Link node (0 to 64)