![Tektronix Keithley SourceMeter 2450 User Manual Download Page 81](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2450/keithley-sourcemeter-2450_user-manual_1077861081.webp)
Section 8: Rechargeable battery measurements
Model 2450 Interactive SourceMeter® Instrument User's Manual
8-8
2450-900-01 Rev. A / June 2013
Pseudocode
hours[iteration] =
seconds[iteration]/3600
print(voltage[iteration],
current[iteration],
hours[iteration])
if voltage[iteration] <=
voltLimit then:
break
end if
iteration = ite 1
delay(10)
end while
•
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
command
OUTP OFF
•
Turn the output off.
Setting up the battery application using TSP commands
The following example 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 SCPI commands. You must select the TSP command
set before attempting to send 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 and measure current mode.
Specifically, the voltage source is set to 1 V and the source limit is set to 460 mA. The voltage,
current, and relative timestamp are returned. Measurements are taken until the voltage reaches the
set level. During the test, these measurements are shown on the USER DISPLAY swipe screen at
the bottom of the screen (see the figure following the example code).