
2600AS-901-01 Rev. B / September 2008
Return to
10-25
Series 2600A System SourceMeter® Instruments Reference Manual
Section 10: Triggering
Example:
-- Immediately satisfies the Arm Event Detector of SMU A.
smua.trigger.arm.set()
-- Sets the Measure Event Detector of SMU A.
smua.trigger.measure.set()
Event detector overruns
If another trigger event is generated before the event detector clears then the trigger object will
generate a detector overrun. Detector overruns can be checked by reading the
overrun
attribute
of the trigger object. The attribute is set to
true
when an overrun occurs. The
clear()
function
can be used to immediately clear the event detector, discarding any history of previous trigger
events. The
clear()
function also clears any detector overruns.
NOTE Detector overruns are not the same as action overruns that are
reported in the status model.
The following is an example of how to check and respond to detector overruns:
testOver = digio.trigger[4].overrun
if testOver == true then
print ("Digital I/O overrun occurred.")
end
Examples using interactive triggering
Command interface interactive trigger example
The example below clears triggers, turns on the SMU output, and then enables a 30 second
timeout to wait for a command interface trigger. Upon receipt of the trigger, the Series 2600A
performs a voltage reading.
*TRG example:
-- Clear any previously detected command interface triggers.
trigger.clear()
-- Turn on output.
smua.source.output = smua.OUTPUT_ON
-- Wait 30 seconds for a command interface trigger.
triggered = trigger.wait(30)
-- Get voltage reading.
reading = smua.measure.v()
-- Send command interface trigger to trigger the measurement.
*TRG