User manual

Section 13: Instrument Control Library (ICL) Series 3700 System Switch/Multimeter Reference Manual
13-290 3700S-901-01 Rev. C / July 2008
trigger.clear()
Remarks
The trigger event detector remembers if an event has been detected since the last
trigger.wait() (on page 13-290) 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 13-290)
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 13-289)
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.
trigger.timer functions and attributes
Use the functions in this group to control the trigger timer.
trigger.timer[N].clear
Attribute
Clears trigger time[N].
Usage
trigger.timer[N].clear
N: is a trigger.timer value (from 14).
Remarks
This function clears the specified trigger timer number.
Also see
trigger.timer[N].count (on page 13-290)