High Voltage SourceMeter Instrument User's Manual Section 5:
Leakage current and insulation resistance
2470-900-01 Rev. B / August 2019 5-13
The following TSP commands make insulation resistance measurements by sourcing 700 V and
measuring the resistance. The Simple Loop trigger model template is used to make
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
reset()
-- Set up the source function.
smu.source.func = smu.FUNC_DC_VOLTAGE
smu.source.ilimit.level = 1e-3
smu.source.level = 700
-- Set up the measure function
smu.measure.func = smu.FUNC_DC_CURRENT
smu.measure.unit = smu.UNIT_OHM
smu.terminals = smu.TERMINALS_REAR
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
-- Turn on the source output and make readings.
trigger.model.load("SimpleLoop", 10, 0.1)
smu.source.output = smu.ON
trigger.model.initiate()
-- Wait for the measurements to complete.
waitcomplete()
-- Turn off the output.
smu.source.output = smu.OFF
-- Parse index and the data into three columns.
print("Rdg #", "Time (s)", "Resistance (Ohm)")
for i = 1, defbuffer1.n do
print(i, defbuffer1.relativetimestamps[i], defbuffer1[i])
end