Section 3: Functions and features
Pulse train example code
Even though no measurements are made in this example, a measure range is set. When sourcing
voltage, it is good practice to set the current measure range equal to the triggered source limit range.
This is especially important when the triggered limit is greater than 100 mA. If the measure range is
not set, it may impact the shape of the first pulse in the train. This step is not necessary when
sourcing current.
-- Reset the SourceMeter instrument to default conditions.
reset()
-- Generate a 10-point pulse train with the following characteristics:
--
*
--
*
--
*
--
*
-- Configure the source function.
smua.source.func = smua.OUTPUT_DCVOLTS
-- Set the voltage source range and the bias source level and limit.
smua.source.rangev = 5
smua.source.levelv = 0
smua.source.limiti = 0.1
-- Use trigger timer 1 to control the period and trigger timer 2 to control the
-- pulse width. Alias the timers for convenience and clarity.
period_timer = trigger.timer[1]
pulsewidth_timer = trigger.timer[2]
-- Configure the period timer to output 10 total trigger events.
period_timer.delay = 0.005
-- The effective count is 10 because the passthrough setting is true.
period_timer.count = 9
-- Configure the timer to immediately output a trigger event when it is started.
period_timer.passthrough = true
-- Start the timer when the SMU moves from the ARM layer to the TRIGGER layer.
period_timer.stimulus = smua.trigger.ARMED_EVENT_ID
-- Configure the pulse width timer to output one trigger event for each period.
pulsewidth_timer.delay = 0.0006
pulsewidth_timer.count = 1
-- Do not immediately output a trigger event when pulse width timer is started.
pulsewidth_timer.passthrough = false
-- Start the pulse width timer with the period timer output trigger event.
pulsewidth_timer.stimulus = period_timer.EVENT_ID
-- Configure the trigger model to execute a 10-point fixed-level voltage pulse
-- train. No measurements are made.
smua.trigger.source.listv({5})
smua.trigger.source.action = smua.ENABLE
smua.trigger.measure.action = smua.DISABLE
3-56
Model 2651A High Power System SourceMeter® Instrument Reference Manual
Bias (Idle) Level = 0 V
Pulse Level = 5 V
Pulse Width = 600 us
Pulse Period = 5 ms
2651A-901-01 Rev. C October 2021
Need help?
Do you have a question about the Keithley 2651A and is the answer not in the manual?