![background image](http://html2.mh-extra.com/html/keithley/2657a/2657a_reference-manual_4007750162.webp)
Section 3: Functions and features
Model 2657A High Power System SourceMeter® Instrument Reference Manual
3-48
2657A-901-01 Rev. B/December 2012
Pulse train example code
-- Generate a 10-point pulse train where each pulse has a width of 50
-- milliseconds and a pulse period of 100 milliseconds.
-- Alias the trigger timers to use for pulse width and period.
period_timer = trigger.timer[1]
pulse_timer = trigger.timer[2]
-- Create a fixed level voltage sweep.
smua.trigger.source.listv({100})
smua.trigger.source.action = smua.ENABLE
smua.source.rangev = 200
smua.trigger.measure.action = smua.DISABLE
-- Set pulse width.
pulse_timer.delay = 50e-03
-- Trigger pulse width timer with period timer.
pulse_timer.stimulus = period_timer.EVENT_ID
-- Output one pulse per period.
pulse_timer.count = 1
-- Set the pulse period.
period_timer.delay = 100e-03
-- Set pulse period count to generate 10 pulses.
period_timer.count = 9
-- Trigger pulse period timer when the SMU passes through the ARM layer.
period_timer.stimulus = smua.trigger.ARMED_EVENT_ID
-- Configure the timer to output a trigger event when it
-- starts the first delay.
period_timer.passthrough = true
-- Trigger SMU source action using pulse period timer.
smua.trigger.source.stimulus = period_timer.EVENT_ID
-- Trigger SMU end pulse action using pulse width timer.
smua.trigger.endpulse.action = smua.SOURCE_IDLE
smua.trigger.endpulse.stimulus = pulse_timer.EVENT_ID
-- Configure the SMU to execute a 10-point pulse train.
smua.trigger.count = 10
-- Set Arm Count.
smua.trigger.arm.count = 1
-- Prepare SMU to output pulse train.
smua.source.output = smua.OUTPUT_ON
smua.trigger.initiate()
-- Wait for the sweep to complete.
waitcomplete()
Event blenders
The ability to combine trigger events that occur at different times is known as event blending. An
event blender can be used to wait for a specific input trigger or to wait for up to four input triggers to
occur before responding with an output event.
There are four event blenders that can be used to monitor and respond to multiple stimulus events.
Each event blender can be configured to monitor a maximum of four different trigger events.
Содержание 2657A
Страница 3: ......