![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_user-manual_4034402065.webp)
Section 7: Measuring I-V characteristics of FETs
Model 2450 Interactive SourceMeter® Instrument User's Manual
7-10
2450-900-01 Rev. C / December 2013
Set up the application using TSP commands with the trigger model
Send the following commands for this example application:
--Reset the instruments and the TSP-Link connection, and clear the buffers.
tsplink.initialize()
reset()
--If the tsplink 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
--######################## Model 2450 #1 (gate) setup ################
steppoints = 4
--Set up the source function.
smu.source.configlist.create("stepVals")
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.autorange = smu.ON
--Set up the measure function.
smu.measure.func = smu.FUNC_DC_CURRENT
smu.measure.autorange = smu.ON
smu.measure.terminals = smu.TERMINALS_REAR
--Set up TSP-Link communication.
tsplink.line[1].reset()
tsplink.line[1].mode = tsplink.MODE_SYNCHRONOUS_MASTER
trigger.tsplinkout[1].stimulus = trigger.EVENT_NOTIFY1
--Populate the stepVals source config list, with source levels 2 V to 5 V
for i = 2, 5 do
smu.source.level = i
smu.source.configlist.store("stepVals")
end
--Set up the trigger model.
trigger.model.setblock(1, trigger.BLOCK_CONFIG_RECALL, "stepVals")
trigger.model.setblock(2, trigger.BLOCK_SOURCE_OUTPUT, smu.ON)
trigger.model.setblock(3, trigger.BLOCK_MEASURE)
trigger.model.setblock(4, trigger.BLOCK_NOTIFY, trigger.EVENT_NOTIFY2)
trigger.model.setblock(5, trigger.BLOCK_WAIT, trigger.EVENT_TSPLINK1)
trigger.model.setblock(6, trigger.BLOCK_CONFIG_NEXT, "stepVals")
trigger.model.setblock(7, trigger.BLOCK_BRANCH_COUNTER, steppoints, 3)
trigger.model.setblock(8, trigger.BLOCK_SOURCE_OUTPUT, 0)
--########################## Model 2450 #2 (drain) setup ################
sweeppoints = 51
--Set up the source function.
node[2].smu.source.configlist.create("sweepVals")
node[2].smu.source.func = node[2].smu.FUNC_DC_VOLTAGE
node[2].smu.source.autorange = node[2].smu.ON
node[2].smu.source.ilimit.level = 100e-3
--Set up the measure function.
node[2].smu.measure.func = node[2].smu.FUNC_DC_CURRENT
node[2].smu.measure.autorange = node[2].smu.OFF
node[2].smu.measure.terminals = node[2].smu.TERMINALS_REAR
node[2].smu.measure.range = 100e-3
--Set up TSP-Link communication.
node[2].tsplink.line[1].mode = node[2].tsplink.MODE_SYNCHRONOUS_ACCEPTOR