8: Rechargeable battery measurements Model 2450 Interactive SourceMeter® Instrument
8-8 2450-900-01 Rev. C / December 2013
Pseudocode
seconds[iteration]/3600
print(voltage[iteration],
current[iteration],
hours[iteration])
if voltage[iteration] <=
voltLimit then:
break
end if
iteration = iteration + 1
delay(10)
• Calculate the hours taken at each iteration.
• Print the measured values.
• Compare the voltage reading from this
iteration to the voltage limit. If the
measured value is less than or equal to the
limit, break out of the loop.
• End the if statement.
• Increment the iteration count by 1.
• Delay for 10 seconds.
• End the while loop.
SMU
• Turn the output off.
Set up the battery 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.
The TSP code in this example sets the Model 2450 to the source voltage function and measure
current function. The voltage source is set to 1 V and the source limit is set to 460 mA. The voltage,
current, and relative timestamp values are returned. Measurements are made until the voltage
reaches the set level. During the test, these measurements are shown on the USER swipe screen at
the bottom of the screen (see the figure following the example code).