![Tektronix Keithley SourceMeter 2450 User Manual Download Page 58](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2450/keithley-sourcemeter-2450_user-manual_1077861058.webp)
Model 2450 Interactive SourceMeter® Instrument User's Manual
Section 6: Leakage current and insulation resistance
2450-900-01 Rev. A / June 2013
6-11
The following TSP code performs insulation resistance measurements by sourcing 20 V and
measuring resistance. The Simple Loop trigger template is used to take 10 measurements at 100 ms
intervals. After the code is executed, the measurement results are displayed in the Instrument
Console of Test Script Builder.
Send the following commands for this example application:
--Reset the instrument and clear the buffer.
reset()
--Set up the measure function.
smu.measure.func = smu.FUNC_RESISTANCE
smu.measure.resistancemode = smu.RESISTANCE_MANUAL
smu.measure.terminals = smu.TERMINALS_REAR
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
--Set up the source function.
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.ilimit.level = 0.1
smu.source.level = 20
smu.source.delay = 0.1
--Turn on the source output and take readings.
trigger.model.load("SimpleLoop",10)
smu.source.output = smu.ON
trigger.model.initiate()
--Wait for the measurements to complete.
waitcomplete()
--Parse index and the data into three columns.
for i =1, defbuffer1.n do
print(i, "\t", defbuffer1[i], "\t", defbuffer1.relativetimestamps[i])
end
--Turn off the output.
smu.source.output = smu.OFF