Model 2651A High Power System SourceMeter® Instrument Reference Manual
The programming example below illustrates how to have the SMU immediately perform an action the
first time through the trigger model, even if a programmed trigger event does not occur.
-- Immediately sets the arm event detector of SMU A
-- to the detected state.
smua.trigger.arm.set()
-- Sets the measure event detector of SMU A.
smua.trigger.measure.set()
Event detector overruns
If a second trigger event is generated before an event detector clears, the trigger object generates a
detector overrun. You can check for detector overruns by reading the overrun attribute of the trigger
object. The attribute is set to true when an overrun occurs. You can use the clear() function to
immediately clear the event detector, discarding any history of previous trigger events. The clear()
function also clears any detector overruns.
Detector overruns are not the same as the action overruns that are reported in the status model.
The programming example below illustrates how to check for 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
The following examples demonstrate how to use interactive triggering.
Command interface interactive trigger example
The programming example below illustrates how to clear triggers, turn on the SMU output, and then
enable a 30-second timeout to wait for a command interface trigger. When the trigger is received, the
Model 2651A performs a voltage reading.
-- 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 a voltage reading.
reading = smua.measure.v()
-- Send a command interface trigger to trigger the measurement.
*TRG
*TRG cannot be used in a script.
2651A-901-01 Rev. C October 2021
Section 3: Functions and features
3-63
Need help?
Do you have a question about the Keithley 2651A and is the answer not in the manual?