Control and monitor battery simulator Nets (Keithley 2281S) through the Lager CLI for battery simulation and testing.
Syntax
Global Options
Commands
Listing Battery Nets
When invoked with only --box and no subcommand, lists all battery nets on the Lager Box:
Command Reference
mode
Set or read battery simulation mode type.
Arguments:
NETNAME - Name of the battery Net
[static|dynamic] - Mode type (omit to read current mode)
Options:
--box TEXT - Lagerbox name or IP
Examples:
set
Initialize battery simulator mode. Prepares the instrument for battery simulation.
Options:
--box TEXT - Lagerbox name or IP
soc
Set or read battery state of charge in percent.
Arguments:
NETNAME - Name of the battery Net
VALUE - State of charge percentage (0-100), omit to read
Options:
--box TEXT - Lagerbox name or IP
Examples:
voc
Set or read battery open circuit voltage in volts.
Arguments:
NETNAME - Name of the battery Net
VALUE - Open-circuit voltage (volts), omit to read
Options:
--box TEXT - Lagerbox name or IP
batt-full
Set or read battery fully charged voltage in volts.
Arguments:
NETNAME - Name of the battery Net
VALUE - Voltage at 100% SOC (volts), omit to read
Options:
--box TEXT - Lagerbox name or IP
batt-empty
Set or read battery fully discharged voltage in volts.
Arguments:
NETNAME - Name of the battery Net
VALUE - Voltage at 0% SOC (volts), omit to read
Options:
--box TEXT - Lagerbox name or IP
capacity
Set or read battery capacity limit in amp-hours.
Arguments:
NETNAME - Name of the battery Net
VALUE - Battery capacity (Ah), omit to read
Options:
--box TEXT - Lagerbox name or IP
current-limit
Set or read maximum charge/discharge current in amps.
Arguments:
NETNAME - Name of the battery Net
VALUE - Maximum current limit (amps), omit to read. Must be between 0 and 6.0 A (Keithley 2281S limit); values outside this range are rejected.
Options:
--box TEXT - Lagerbox name or IP
ovp
Set or read over-voltage protection limit in volts.
Arguments:
NETNAME - Name of the battery Net
VALUE - OVP limit (volts), omit to read
Options:
--box TEXT - Lagerbox name or IP
ocp
Set or read over-current protection limit in amps.
Arguments:
NETNAME - Name of the battery Net
VALUE - OCP limit (amps), omit to read
Options:
--box TEXT - Lagerbox name or IP
model
Set or read battery model preset.
Arguments:
NETNAME - Name of the battery Net
PARTNUMBER - Battery model (e.g., 18650, nimh, lead-acid), omit to read
Options:
--box TEXT - Lagerbox name or IP
Supported Models:
18650 - Standard lithium-ion cell
nimh - Nickel-metal hydride
lead-acid - Lead acid battery
- Custom part numbers from your battery library
models
List the battery models available on the instrument: memory slots with a
saved model plus the firmware built-in models. Read-only.
Arguments:
NETNAME - Name of the battery Net
Options:
--box TEXT - Lagerbox name or IP
The printed slots and names are valid inputs to the model command.
model-create
Create a custom battery model in a memory slot (1-9) from a CSV file.
Arguments:
NETNAME - Name of the battery Net
SLOT - Target memory slot (1-9)
Options:
--csv FILE - CSV curve file (required)
--force - Overwrite the slot if it already holds a model
--box TEXT - Lagerbox name or IP
CSV format:
Two columns, voc,resistance (header row optional), ordered from empty
battery to full: open-circuit voltage in volts (non-decreasing) and internal
resistance in ohms (non-increasing). Exactly 11 or 101 data rows — 11-row
files are interpolated to 101 points by the instrument.
The file is validated on your machine before anything is sent to the
instrument. If the slot already holds a model, the command refuses unless
--force is given.
Saving overwrites the slot’s previous model, and the instrument has no way
to delete a model from a slot — a slot, once written, can only be
overwritten with a different model.
After a successful create, model SLOT loads the model and models lists it.
model-export
Export a saved battery model’s curve from a memory slot (1-9) to a CSV file.
Arguments:
NETNAME - Name of the battery Net
SLOT - Memory slot to export (1-9)
Options:
--csv FILE - Output CSV file to write (required)
--box TEXT - Lagerbox name or IP
Writes the slot’s 101 voc,resistance points in the format model-create
accepts, so a saved model can be exported, edited, and written back to a
slot (model-export → edit → model-create). Read-only: exporting does not
recall or change the active model. Exporting an empty slot is an error —
use models to see which slots hold a saved model.
state
Get comprehensive battery state including all current settings and measurements.
Options:
--box TEXT - Lagerbox name or IP
Example Output:
enable
Enable battery simulator output.
Options:
--box TEXT - Lagerbox name or IP
--yes - Skip confirmation prompt
disable
Disable battery simulator output.
Options:
--box TEXT - Lagerbox name or IP
--yes - Skip confirmation prompt
clear
Clear all protection trip conditions (OVP and OCP).
Options:
--box TEXT - Lagerbox name or IP
clear-ovp
Clear over-voltage protection trip condition.
Options:
--box TEXT - Lagerbox name or IP
clear-ocp
Clear over-current protection trip condition.
Options:
--box TEXT - Lagerbox name or IP
tui
Launch interactive terminal UI for real-time monitoring and control.
Options:
--box TEXT - Lagerbox name or IP
TUI Features:
- Real-time voltage/current display
- SOC adjustment slider
- Enable/disable controls
- Protection status indicators
- Keyboard navigation
Examples
Supported Hardware
Notes
- All value commands (soc, voc, ovp, etc.) read the current value when called without an argument
- Use
--yes flag to skip confirmation prompts for enable/disable
- Protection limits help prevent damage during testing
- SOC can be set from 0-100% for realistic battery simulation
- The
state command provides a comprehensive view of all settings
- Mode can be
static (fixed parameters) or dynamic (SOC-based modeling)
- The TUI allows concurrent CLI access while monitoring
See Also