Skip to main content
Present a programmable load to a DUT’s output: draw a fixed current, hold a fixed voltage, or emulate a resistance or a constant power draw.

Handle

Methods

Types

EloadMode

EloadState

Method Reference

set(mode: EloadMode, value: f64) -> Result<()>

Switch to mode and apply value as its setpoint, atomically. The box performs both as one composite operation under the instrument lock, so the load never spends a moment in the new mode carrying the old mode’s setpoint.
Parameters:

setpoint(mode: EloadMode) -> Result<f64>

Read the stored setpoint for a mode. Each mode keeps its own, so reading Cv after setting Cc gives you the constant-voltage setpoint, not the current you just set.

state() -> Result<EloadState>

Current mode, whether the input is enabled, and the measurements.

Examples

Step the load and watch the rail hold up

Supported Hardware

Notes

  • Prefer set() over changing mode and setpoint separately — that is the whole reason it takes both.
  • Return the load to zero in teardown. A load left drawing current keeps drawing it after your test exits.
  • measured_voltage is the voltage at the load’s terminals, which includes any drop in the wiring between it and the DUT. For a rail measurement at the DUT, use an ADC net wired there.