![background image](http://html2.mh-extra.com/html/keithley/interactive-sourcemeter-2450/interactive-sourcemeter-2450_user-manual_4034402076.webp)
Model 2450 Interactive SourceMeter® Instrument User's Manual
Section 8: Rechargeable battery measurements
2450-900-01 Rev. C / December 2013
8-7
Set up the battery application using SCPI commands
The SCPI 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.
In the following example code, notice that some of the code is labeled as "Pseudocode." The code
you use for the pseudocode lines will vary based on the programming environment you use.
Send the following commands for this example application:
SMU
command or
pseudocode
Commands
Description
SMU
command
*RST
OUTP:SMOD HIMP
SENS:RES:RSEN ON
SOUR:FUNC VOLT
SOUR:VOLT 1
SOUR:VOLT:READ:BACK ON
SOUR:VOLT:RANG 2
SOUR:VOLT:ILIM 460e-3
SENS:FUNC "CURR"
SENS:CURR:RANG 1
OUTP ON
•
Reset the instrument.
•
Turn on high-impedance output mode.
•
Set to 4-wire sense mode.
•
Set to source voltage.
•
Set source level to 1 V.
•
Turn on source readback.
•
Set source range to 2 V.
•
Set the source limit to 460 mA.
•
Set to measure current.
•
Set current range to 1 A.
•
Turn the output on.
Pseudocode
iteration = 1
voltLimit = 1.0
current = []
voltage = []
seconds = []
hours = []
while true do:
•
Create a variable called
iteration
and
initialize to 1.
•
Create a variable called
voltLimit
and
initialize to 1.
•
Create an empty array for current
measurements.
•
Create an empty array for voltage
measurements.
•
Create an empty array for the time values.
•
Start a
while
loop.
SMU
command
current[iteration] = READ?
"defbuffer1"
voltage[iteration] = TRAC:DATA?
iteration, iteration,
"defbuffer1", SOUR
seconds[iteration] = TRAC:DATA?
iteration, iteration,
"defbuffer1", REL
•
Append the current reading to the array
current
.
•
Append the voltage reading to the array
voltage
.
•
Append the time reading to the array
seconds
.