Skip to main content
Integrate energy and charge over time, or compute current/voltage/power statistics, using an energy-analyzer net connected to a Lager Box.

Syntax

Commands


lager energy NET_NAME read

Integrate current and power over a configurable duration. Returns energy in joules and watt-hours, and charge in coulombs and amp-hours.

Options

Arguments

Output

Examples


lager energy NET_NAME stats

Compute mean, minimum, maximum, and standard deviation for current, voltage, and power over a configurable duration.

Options

Arguments

Output

Examples


Default Net

To avoid specifying the net name each time:
Then:

Supported Hardware

For instantaneous power readings only, see Watt Meter.

Scripting Examples

Energy Budget Verification

Sleep Current Verification

Troubleshooting

Notes

  • The default command timeout is 120 seconds to accommodate long integrations
  • Joulescope JS220 samples continuously; accuracy improves with longer durations
  • Nordic PPK2 operates in source mode (supplies a configurable voltage 0.8–5V and measures current); voltage readings reflect the configured value
  • Use lager instruments --box <box> to verify the device is detected
  • Net names refer to names assigned when configuring your testbed
  • Use lager nets to see available energy-analyzer nets