Section 5: Axial-lead device high current test
Model 8010 High Power Device Test Fixture User's Manual
5-8
8010-900-01 Rev. C / March 2017
-----------------------------------
-- Timer 1 controls the pulse period
trigger.timer[1].count = numPulses - 1
-- 1% Duty Cycle
trigger.timer[1].delay = pulseWidth / 0.01
trigger.timer[1].passthrough = true
trigger.timer[1].stimulus = smua.trigger.ARMED_EVENT_ID
-- Timer 2 controls the pulse width
trigger.timer[2].count = 1
trigger.timer[2].delay = pulseWidth - 3e-6
trigger.timer[2].passthrough = false
trigger.timer[2].stimulus = smua.trigger.SOURCE_COMPLETE_EVENT_ID
-- Configure SMU Trigger Model for Sweep/Pulse Output
-----------------------------------------------------
-- Pulses will all be the same level so set start and stop to
-- the same value and the number of points in the sweep to 2
smua.trigger.source.lineari(pulseLevel, pulseLevel, 2)
smua.trigger.source.limitv = pulseLimit
smua.trigger.measure.action = smua.ASYNC
-- We want to start the measurements before the source action takes
-- place, so we must configure the ADC to operate asynchronously of
-- the rest of the SMU trigger model actions
-- Measure I and V during the pulse
smua.trigger.measure.iv(smua.nvbuffer1, smua.nvbuffer2)
-- Return the output to the bias level at the end of the pulse
smua.trigger.endpulse.action = smua.SOURCE_IDLE
smua.trigger.endsweep.action = smua.SOURCE_IDLE
smua.trigger.count = numPulses
smua.trigger.arm.stimulus = 0
smua.trigger.source.stimulus = trigger.timer[1].EVENT_ID
smua.trigger.measure.stimulus = trigger.timer[1].EVENT_ID
smua.trigger.endpulse.stimulus = trigger.timer[2].EVENT_ID
smua.trigger.source.action = smua.ENABLE
smua.source.output = smua.OUTPUT_ON
smua.trigger.initiate()
waitcomplete()
smua.source.output = smua.OUTPUT_OFF
PrintPulseData()
end
--[[
Name: PrintPulseData()
Description:
This function prints the data contained in smua.nvbuffer1 and
smua.nvbuffer2 in a format that is copy and paste compatible with
Microsoft Excel.
]]
function PrintPulseData()
print("Timestamp\tVoltage\tCurrent")
for i=1, smua.nvbuffer1.n do