9: Measuring I-V characteristics of solar cells Model 2450 SourceMeter® Instrument
9-8 2450-900-01 Rev. E / August 2019
Set up the solar cell I-V sweep 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.
To use other programming environments, you may need to make changes to the example TSP code.
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.
In this application, a linear voltage sweep is configured to output voltage from 0 V to 0.53 V in
56 steps. The instrument measures the resulting current from the solar cell during the sweep.
Send the following commands for this example application:
-- Define the number of points in the sweep.
num = 56
-- Reset the instrument and clear the buffer.
reset()
-- Set the source and measure functions.
smu.measure.func = smu.FUNC_DC_CURRENT
smu.source.func = smu.FUNC_DC_VOLTAGE
-- Measurement settings.
smu.terminals = smu.TERMINALS_FRONT
smu.measure.sense = smu.SENSE_4WIRE
smu.measure.autorange = smu.ON
smu.measure.nplc = 1
-- Source settings.
smu.source.highc = smu.OFF
smu.source.range = 2
smu.source.readback = smu.ON
smu.source.ilimit.level = 1
smu.source.sweeplinear("SolarCell", 0, 0.53, num, 0.1)
-- Start the trigger model and wait for it to complete.
trigger.model.initiate()
waitcomplete()