Model 2450 SourceMeter® Instrument User's Manual
Section 6: Leakage current and insulation resistance
Set up the application using TSP commands
The following TSP code is designed to be run from Keithley Instruments Test Script Builder (TSB).
TSB is a software tool that is available from tek.com/keithley. You can install and use TSB to write
code and develop scripts for TSP-enabled instruments. Information about how to use TSB is in the
online help for TSB and in the "Introduction to TSP operation" section of the Model 2450
Reference Manual.
By default, the 2450 uses the SCPI command set. You must select the TSP command set before
sending TSP commands to the instrument.
To enable TSP commands:
1. Press the MENU key.
2. Under System, select Settings.
3. Set the Command Set to TSP.
4. At the prompt to reboot, select Yes.
The following TSP commands make insulation resistance measurements by sourcing 20 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 = 0.1
smu.source.level = 20
-- 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
2450-900-01 Rev. E / August 2019
6-13
Need help?
Do you have a question about the Keithley SourceMeter 2450 and is the answer not in the manual?