Models 707B and 708B Switching Matrix Reference Manual
Section 7: Command reference
707B-901-01 Rev. A / August 2010
7-213
Set this attribute to the
eventID
of any trigger event to wait for that event.
Use zero to disable event processing.
NOTE
Use trigger event ID rather than the numeric value to set the stimulus value. This will help make the
code compatible with future upgrades.
Example
print(trigger.timer[1].stimulus)
Prints the event that will start a trigger 1
timer action.
Also see
trigger.timer[N].wait()
This function waits for a trigger.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function Yes
Usage
triggered = trigger.timer[N].wait(timeout)
triggered
Trigger detection indication
N
Trigger timer number (1 to 4)
timeout
Maximum amount of time in seconds to wait for the trigger
Details
If one or more trigger events were detected since the last time
trigger.timer[N].wait()
or
trigger.timer[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 = trigger.timer[3].wait(10)
print(triggered)
Waits up to 10 seconds for a trigger
on timer 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-207)