Skip to content

Power Supplies

Auto-generated from driver source. All methods are documented with their signatures, parameters, and return types.


HP E3631A

Triple-output DC power supply (+6 V / +25 V / −25 V).

HP_E3631A

Bases: DeviceManager

connect

connect()

Connect to the instrument and initialize it.

disable_all_channels

disable_all_channels()

Disable output and zero all channel setpoints.

enable_output

enable_output(enabled: bool = True)

Enable or disable the power supply output.

select_channel

select_channel(channel: Channel)

Select the active channel.

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required

set_output_channel

set_output_channel(channel: Channel, voltage, current_limit=None)

Set voltage and current limit for a channel using the APPLy shorthand.

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required
voltage

Desired output voltage.

required
current_limit

Current limit — defaults to DEFAULT_CURRENT_LIMIT if omitted.

None

measure_voltage

measure_voltage(channel: Channel) -> float

Measure output voltage on channel.

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required

measure_current

measure_current(channel: Channel) -> float

Measure output current on channel.

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required

set_voltage

set_voltage(channel: Channel, voltage)

Set only the voltage for channel (does not change current limit).

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required
voltage

Desired voltage.

required

set_current_limit

set_current_limit(channel: Channel, current)

Set only the current limit for channel.

Parameters:

Name Type Description Default
channel Channel

An HP_E3631A.Channel enum member.

required
current

Desired current limit.

required

get_voltage_setpoint

get_voltage_setpoint(channel: Channel | None = None) -> float

Query the voltage setpoint for channel (or the currently selected channel).

Parameters:

Name Type Description Default
channel Channel | None

An HP_E3631A.Channel enum member, or None to use the currently selected channel.

None

get_current_limit

get_current_limit(channel: Channel | None = None) -> float

Query the current limit for channel (or the currently selected channel).

Parameters:

Name Type Description Default
channel Channel | None

An HP_E3631A.Channel enum member, or None to use the currently selected channel.

None

get_output_state

get_output_state() -> bool

Query whether the output is enabled.

get_error

get_error() -> str

Read the most recent error from the error queue.

set_tracking

set_tracking(enable: bool)

Enable or disable tracking mode for the ±25V supplies.

save_state

save_state(location: int)

Save the current state to memory location 1, 2, or 3.

recall_state

recall_state(location: int)

Recall a saved state from memory location 1, 2, or 3.


Keysight EDU36311A

Triple-output DC power supply (+6 V / +30 V / −30 V).

Keysight_EDU36311A

Bases: DeviceManager

connect

connect()

Connect to the instrument and initialize it.

disable_all_channels

disable_all_channels()

Disables output and sets all channels to 0V, 0A.

enable_output

enable_output(enabled: bool = True)

Enable or disable the output of the power supply.

Parameters:

Name Type Description Default
enabled bool

True to enable output, False to disable.

True

select_channel

select_channel(channel)

Select the channel to control.

Parameters:

Name Type Description Default
channel str

The channel to select. Must be one of the keys in CHANNEL_MAP.

required

set_output_channel

set_output_channel(channel, voltage, current_limit=None)

Set the output voltage and current limit for a specific channel.

Parameters:

Name Type Description Default
channel str

The channel to set. Must be one of the keys in CHANNEL_MAP.

required
voltage float

The desired output voltage.

required
current_limit float

The desired current limit.

None

measure_voltage

measure_voltage(channel)

Measure the output voltage of a specific channel.

Parameters:

Name Type Description Default
channel str

The channel to measure. Must be one of the keys in CHANNEL_MAP.

required

Returns:

Name Type Description
float

The measured voltage.

measure_current

measure_current(channel)

Measure the output current of a specific channel.

Parameters:

Name Type Description Default
channel str

The channel to measure. Must be one of the keys in CHANNEL_MAP.

required

Returns:

Name Type Description
float

The measured current.

set_voltage

set_voltage(channel, voltage)

Set only the voltage for the specified channel.

set_current_limit

set_current_limit(channel, current)

Set only the current limit for the specified channel.

get_voltage_setpoint

get_voltage_setpoint(channel=None)

Query the voltage setpoint for the currently selected (or specified) channel.

get_current_limit

get_current_limit(channel=None)

Query the current limit for the currently selected (or specified) channel.

get_output_state

get_output_state()

Query whether the output is enabled.

get_error

get_error()

Reads the most recent error from the error queue.

set_tracking

set_tracking(enable: bool)

Enable or disable tracking mode for the +/-30V supplies.

save_state

save_state(location: int)

Save the current state to memory location 1-5.

recall_state

recall_state(location: int)

Recall a saved state from memory location 1-5.


MATRIX MPS-6010H

Single-channel DC power supply (0–60 V / 0–10 A).

MATRIX_MPS6010H

Bases: DeviceManager

Driver for MATRIX MPS-6010H-1C Power Supply (60V/10A).

WARNING: This device does not support query commands. All measurement methods return cached values from the last set command, NOT actual measured values from the device. Use an external DMM for accurate measurements.

connect

connect()

Override to set serial communication parameters and enable remote mode.

disable_output

disable_output()

Disable output and set to safe state (0V, 0A limit).

Safety first: Always call this before disconnecting or on error.

set_voltage

set_voltage(voltage: float)

Set output voltage.

Parameters:

Name Type Description Default
voltage float

Desired output voltage (0-60V).

required

Raises:

Type Description
ValueError

If voltage is out of range.

set_current_limit

set_current_limit(current: float)

Set current limit.

Parameters:

Name Type Description Default
current float

Desired current limit (0-10A).

required

Raises:

Type Description
ValueError

If current is out of range.

set_output

set_output(voltage: float, current_limit: float)

Set both voltage and current limit in one call.

Parameters:

Name Type Description Default
voltage float

Desired output voltage (0-60V).

required
current_limit float

Desired current limit (0-10A).

required

enable_output

enable_output(enabled: bool = True)

Enable or disable the output.

Parameters:

Name Type Description Default
enabled bool

True to enable output, False to disable.

True

get_voltage_setpoint

get_voltage_setpoint() -> float

Get the voltage setpoint (cached value, not measured).

Returns:

Name Type Description
float float

Last voltage setpoint sent to device.

WARNING: This returns the CACHED value from the last set_voltage() call, NOT the actual measured voltage. Use an external DMM for measurements.

get_current_limit

get_current_limit() -> float

Get the current limit setpoint (cached value, not measured).

Returns:

Name Type Description
float float

Last current limit sent to device.

WARNING: This returns the CACHED value from the last set_current_limit() call, NOT the actual measured current. Use an external DMM for measurements.

get_output_state

get_output_state() -> bool

Get the output state (cached value, not queried from device).

Returns:

Name Type Description
bool bool

Last output state sent to device.

WARNING: This returns the CACHED value from the last enable_output() call, NOT the actual device state. Check the front panel for confirmation.

measure_voltage

measure_voltage()

Return the voltage setpoint (this device does not support readback queries).

Returns:

Name Type Description
float

Last voltage setpoint sent to device.

measure_current

measure_current()

Return the current limit setpoint (this device does not support readback queries).

Returns:

Name Type Description
float

Last current limit sent to device.

get_error

get_error()

Read error queue.

WARNING: This device does not support error queries.

Returns:

Name Type Description
str

Message indicating error queries are not supported.

set_output_channel

set_output_channel(channel, voltage, current_limit=None)

Compatibility method for REPL - ignores channel (single channel PSU).

Parameters:

Name Type Description Default
channel

Ignored (MATRIX has only one channel)

required
voltage float

Desired output voltage (0-60V)

required
current_limit float

Desired current limit (0-10A)

None

measure_voltage_channel

measure_voltage_channel(channel=None)

Compatibility method for REPL - ignores channel.

Parameters:

Name Type Description Default
channel

Ignored (MATRIX has only one channel)

None

Returns:

Name Type Description
float

Measured voltage

measure_current_channel

measure_current_channel(channel=None)

Compatibility method for REPL - ignores channel.

Parameters:

Name Type Description Default
channel

Ignored (MATRIX has only one channel)

None

Returns:

Name Type Description
float

Measured current