Series 2600 System SourceMeters Reference Manual Instrument Control Library 12-39
Return to Section 12 topics 2600S-901-01 Rev. A / May 2006
display.trigger.clear
Function Clears the front panel trigger event detector.
Usage
display.trigger.clear()
Remarks The trigger event detector remembers if an event has been detected since the last
display.trigger.wait call. This function clears the trigger’s event detector and
discards the previous history of TRIG key presses.
Details See “Display triggering” on Section 14.
Also see display.trigger.wait
display.trigger.wait
Function Waits for the TRIG key on the front panel to be pressed.
Usage
triggered = display.trigger.wait(timeout)
timeout Set timeout in seconds.
triggered Returns a true if a trigger was detected. Returns a false if the
operation timed out.
Remarks
• This function will wait for the TRIG key on the front panel to be pressed. If the trigger
key was previously pressed and one or more trigger events were 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.
• Use the display.trigger.clear call to clear the trigger event detector.
Details See “Display triggering” on Section 14.
Also see display.trigger.clear
Example Waits up to five seconds for the TRIG key to be pressed:
triggered = display.trigger.wait(5)
print(triggered)
Output: true
The above output indicates that the TRIG key was pressed (trigger detected) before
the five second timeout expired.