Section 7: SCPI command reference
Model 2281S-20-6 DC Power Supply and Battery Simulator Reference Manual
7-30
077114601 / March 2019
:BATTery[n]:MODel<modelindex>:<element>
This command sets and queries a list of custom values for a specified battery model.
Type
Affected by
Where saved
Default value
Command and query
Recall settings
Instrument reset
Power cycle
Save settings
Nonvolatile memory
Usage
:BATTery[n]:MODel<modelindex>:<element> <string>
:BATTery[n]:MODel<modelindex>:<element>?
[n]
Channel number: For single-channel instruments, the value is 1
<modelindex>
1 to 9
<element>
RESistance: resistance
Voc: open-circuit voltage
<string>
The setting values separated by commas; the maximum length of a string is
2048
Details
This command defines a list of
<element>
values (no more than 101 items) for the specified model.
Creating a list with more than 101 items results in error 702, "Model length is too long."
Before executing the command, the number of values in the model must be 101. If less than 101,
error 705, "Model length not enough," occurs. If this error is displayed, you can send the following
command to add more values to the existing model:
:BATTery[n]:MODel<modelindex>:<element>:APPend
When you specify the values for a model, make sure that the resistance values are non-increasing
and the Voc values are non-decreasing.
Example
:BATT:MOD1:RES "2.0,1.9,1.8"
:BATT:MOD1:VOC "1, 2, 3"
Set the resistance to 2.0, 1.9, 1.8.
Set the Voc to 1, 2, 3.
Also see
:BATTery[n]:MODel<modelindex>:<element>:APPend
(on page 7-31)