
2600AS-901-01 Rev. B / September 2008
Return to
19-211
Series 2600A System SourceMeter® Instruments Reference Manual
Section 19: Remote Commands
trigger.wait
Function
Wait for a command interface trigger event.
TSP-Link
accessibility
This function cannot be accessed from a remote TSP-Link node.
Usage
triggered = trigger.wait(timeout)
timeout
Maximum amount of time in seconds to wait for the trigger.
triggered
Returns
true
if a trigger was detected. Returns
false
if no triggers were detected during the timeout period.
Remarks
• This function will wait 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 will return
immediately.
• After waiting for a trigger with this function, the event detector will be automatically reset and
rearmed. This is true regardless of the number of events detected.
Details
See
.
Also see
Example
Waits up to 10 seconds for a trigger:
triggered = trigger.wait(10)
print(triggered)
Output:
false
The above output indicates that no trigger was detected during the 10 second timeout.