
Section 7: Command reference
Models 707B and 708B Switching Matrix Reference Manual
7-206
707B-901-01 Rev. A / August 2010
Example
digio.trigger[3].mode = digio.TRIG_FALLING
digio.trigger[5].mode = digio.TRIG_FALLING
trigger.blender[1].orenable = true
trigger.blender[1].stimulus[1] = digio.trigger[3].EVENT_ID
trigger.blender[1].stimulus[2] = digio.trigger[5].EVENT_ID
print(trigger.blender[1].wait(3))
Generate a trigger blender 1
event when a digital I/O
trigger happens either on
line 3 or 5.
Wait three seconds while
checking if trigger blender 1
event has occurred.
If the blender trigger event
has happened, then
true
is
returned. If the trigger event
has not happend, then
false
is returning after the
timeout expires.
Also see
(on page 7-201)
trigger.clear()
This function clears the command interface trigger event detector.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Function No
Usage
trigger.clear()
Details
The trigger event detector indicates if an event has been detected since the last
trigger.wait()
call. This
function clears the trigger's event detector and discards the previous history of command interface trigger events.
Also see
trigger.EVENT_ID
This constant contains the command interface trigger event number.
Type
TSP-Link accessible
Affected by
Where saved
Default value
Constant Yes
Usage
eventID = trigger.EVENT_ID
eventID
The command interface trigger event number