![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_user-manual_4034402044.webp)
Model 2450 Interactive SourceMeter® Instrument User's Manual
Section 5: Measuring low-resistance devices
2450-900-01 Rev. C / December 2013
5-7
Set up the low-resistance 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 included on one of the CD-ROMs that came with your Model 2450. 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
.
To use other programming environments, you may need to make changes to the example TSP code.
By default, the Model 2450 is configured to use 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. Select the button next to Command Set and select
TSP
.
4. You are prompted to reboot. Select
Yes
.
This sequence of TSP commands makes 100 low-resistance measurements by sourcing current and
measuring resistance. In this example, the source current magnitude and limit voltage are set
automatically. It uses remote commands to change the front-panel display to display the TREND
swipe screen. This allows you to view numeric data at the top of the screen and graphic data at the
bottom of the screen. After the code executes, the data is displayed in the Instrument Console of Test
Script Builder.
Send the following commands for this example application:
--Reset the instrument to the default settings
reset()
--Configure the Simple Loop trigger model template to make 100 readings.
trigger.model.load("SimpleLoop", 100)
--Change the view on the front panel to the TREND swipe screen.
display.changescreen(display.SCREEN_PLOT_SWIPE)
--Set to measure resistance, use 4-wire sense,
--and offset compensation.
smu.measure.func = smu.FUNC_RESISTANCE
smu.measure.sense = smu.SENSE_4WIRE
smu.measure.offsetcompensation = smu.ON
--Turn on the output
smu.source.output = smu.ON
--Initiate trigger model and wait until finished.
trigger.model.initiate()
waitcomplete()
--Turn off output
smu.source.output = smu.OFF
--Read the resistance and time values from defbuffer1.
print("Resistance:\tTime:")
for i = 1, 100 do
print(string.format("%f\t%f", defbuffer1[i], defbuffer1.relativetimestamps[i]))
end