ppk2_measure
Measure current consumption and compute summary statistics (mean, min, max) over a configurable duration. Optionally returns a downsampled current series for analysis.
Instructions
Sample current for a fixed duration and return summary statistics.
Starts continuous sampling, discards an initial settling window, collects
samples for duration_seconds, stops, and computes statistics. Requires a
prior ppk2_configure. The PPK2 streams ~100k samples/s, so raw samples are
never returned by default — only aggregates (and an optional downsampled
series).
Args: duration_seconds: How long to collect samples (after settling). 0.05–60. settle_ms: Initial data discarded before timing starts, to skip the switch-on transient. Default 200 ms. include_series: If true, also return a downsampled current series. series_points: Target number of points in the downsampled series.
Returns current statistics in microamps (µA), plus average power (µW),
charge (µC) and energy (µJ) when a voltage is configured. samples is the
raw sample count; sample_rate_hz is the achieved rate.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| duration_seconds | No | ||
| settle_ms | No | ||
| include_series | No | ||
| series_points | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||