
Series 3700 System Switch/Multimeter Reference Manual
Section 9
:
Instrument Control Library (ICL)
Document Number: 3700S-901-01 Rev. A / August 2007
9-215
tsplink.trigger[N].wait
Function
Wait for a trigger.
Usage
triggered = tsplink.trigger[N].wait(timeout)
N
: (In) The trigger line (1
–3).
timeout
: (In) Maximum amount of time in seconds to wait for the trigger.
triggered
: (Out) Trigger detection indication.
Remarks
This function will wait 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 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.
trigger functions
Use the functions in this group to control triggering.
trigger.clear
Function
Clears the command interface trigger event detector.
Usage
trigger.clear()
Remarks
The trigger event detector remembers if an event has been detected since the last
trigger.wait
(on page 9-215) call. This function clears the trigger's event detector and
discards the previous history of command interface trigger events.
Also see
trigger.wait
(on page 9-215)
trigger.wait
Function
Wait for a trigger event.
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 GPIB GET command or a *TRG
message on the GPIB interface if that is the active command interface or a *TRG
message on the command interface for all other interfaces. 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.
Also see
trigger.clear
(on page 9-215)