![background image](http://html2.mh-extra.com/html/keithley/sourcemeter-2601/sourcemeter-2601_reference-manual_4018913369.webp)
2600S-901-01 Rev. C / January 2008
Return to
12-109
Series 2600 System SourceMeter® Instruments Reference Manual
Section 12: Instrument Control Library
trigger functions
The functions in this group are used to control triggering.
Example
Resets the timer and then measures the time since the reset:
timer.reset()
...
time = timer.measure.t()
print(time)
Output:
1.01
The above output indicates that
timer.measure.t
was executed 14.69077 seconds
after
timer.reset
.
timer.reset
Function
Resets the timer to 0 seconds.
Usage
timer.reset()
Remarks
This function will restart the timer at zero.
Also see
Example
Resets the timer and then measures the time since the reset:
timer.reset()
...
time = timer.measure.t()
print(time)
Output:
1.01
The above output indicates that
timer.measure.t
was executed 14.69077 seconds
after
timer.reset
.
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
call. This function clears the trigger’s event detector and discards the
previous history of command interface trigger events.
Details
See “
Also see
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.