![Tektronix Keithley SourceMeter 2450 User Manual Download Page 80](http://html1.mh-extra.com/html/tektronix/keithley-sourcemeter-2450/keithley-sourcemeter-2450_user-manual_1077861080.webp)
Model 2450 Interactive SourceMeter® Instrument User's Manual
Section 8: Rechargeable battery measurements
2450-900-01 Rev. A / June 2013
8-7
Setting up the battery application using SCPI commands
The SCPI 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.
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
SYST: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
.