![Tektronix Keithley SourceMeter 2450 User Manual Download Page 69](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2450/keithley-sourcemeter-2450_user-manual_1077861069.webp)
Section 7: Measuring I-V characteristics of FETs
Model 2450 Interactive SourceMeter® Instrument User's Manual
7-10
2450-900-01 Rev. A / June 2013
Using TSP commands with the trigger model to set up the test
Send the following commands for this example application:
--[[
********************************************************************
MOSFET Test: This test steps the gate-source voltage and
sweeps the drain-source voltage at each step, and measures
the drain-source current.
SMU-1 on drain is the sweeper and is the master node.
Starting step: 0 V
Stopping step: 5 V
Number of steps: 51
SMU-2 on gate is the stepper and is node 2.
Start: 2 V
Stop: 5 V
Number of steps: 4
*******************************************************************
]]
--Reset the instruments and the TSP-Link connection and clear the buffers.
tsplink.initialize()
reset()
node[2].reset()
--If the TSP-Link state is not online, print an error message and quit.
state = tsplink.state
if state ~= "online" then
print("Error:\n-Check that all SMUs have a different node number")
print("-Check that all SMUs are connected correctly\n")
return
end
--###########################SMU-1 (drain) setup######################
--Number of points in the sweep.
sweeppoints = 51
--Source settings.
smu.source.configlist.create("sweepVals")
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.autorange = smu.ON
smu.source.ilimit.level = 100e-3
--Measurement settings.
smu.measure.func = smu.FUNC_DC_CURRENT
smu.measure.autorange = smu.ON
smu.measure.terminals = smu.TERMINALS_REAR
--TSP-Link settings.
tsplink.line[1].mode = tsplink.MODE_TRIGGER_OUT
tsplink.line[2].mode = tsplink.MODE_TRIGGER_IN
trigger.tsplinkout[1].stimulus = trigger.EVENT_NOTIFY1
--Populate the sweepVals source config list with varying source levels.
for i = 0, 5, 0.1 do
smu.source.level = i
smu.source.configlist.store("sweepVals")
end
--Set up the trigger model for SMU-1.
trigger.model.setblock(1, trigger.BLOCK_CONFIG_RECALL, "sweepVals")
trigger.model.setblock(2, trigger.BLOCK_SOURCE_OUTPUT, smu.ON)