ppk2_configure
Open the serial port, read calibration, select measurement mode (ampere or source), and set voltage to prepare the power profiler for measurement.
Instructions
Open the PPK2 and configure it for measurement.
Opens the serial port (if not already open), reads the device calibration,
selects the meter mode, and sets the voltage. Call this before ppk2_measure.
Args:
mode: "ampere" — the PPK2 measures current drawn from an external
supply (it does not power the DUT). voltage_mv is still required
and is used for the gain/offset calibration, so set it to your
external rail voltage.
"source" — the PPK2 sources voltage_mv to the DUT and measures
the current it draws. Use ppk2_power("ON") to enable the output.
voltage_mv: Source/reference voltage in millivolts (800–5000).
port: Serial port override; defaults to PPK2_PORT or autodetection.
Returns the resulting status.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | ampere | |
| voltage_mv | No | ||
| port | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||