Skip to content

DC power supply

Channel-oriented DC source control: set voltage / current limit, enable output, readback.

See capability matrix.

Open

let mut psu = catalog.open_dc_power_supply(&address)?;
var psu = catalog.OpenDcPowerSupply(address);

Set and enable

psu.set_voltage(1, 3.3)?;
psu.set_current_limit(1, 0.5)?;
psu.output_enable(1, true)?;
psu.SetVoltage(1, 3.3);
psu.SetCurrentLimit(1, 0.5);
psu.OutputEnable(1, true);

Readback

let volts = psu.read_voltage(1)?;
let amps = psu.read_current(1)?;
var volts = psu.ReadVoltage(1);
var amps = psu.ReadCurrent(1);

Channels are 1-based in the common SCPI dialects used here. Units are volts and amps (SI).