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
select_channel ¶
Select the active channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
Channel
|
An HP_E3631A.Channel enum member. |
required |
set_output_channel ¶
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 output voltage on channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
Channel
|
An HP_E3631A.Channel enum member. |
required |
measure_current ¶
Measure output current on channel.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
channel
|
Channel
|
An HP_E3631A.Channel enum member. |
required |
set_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 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 ¶
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 ¶
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
|
Keysight EDU36311A¶
Triple-output DC power supply (+6 V / +30 V / −30 V).
Keysight_EDU36311A ¶
Bases: DeviceManager
enable_output ¶
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 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 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 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 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_current_limit ¶
Set only the current limit for the specified channel.
get_voltage_setpoint ¶
Query the voltage setpoint for the currently selected (or specified) channel.
get_current_limit ¶
Query the current limit for the currently selected (or specified) channel.
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.
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 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.
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 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 or disable the output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
enabled
|
bool
|
True to enable output, False to disable. |
True
|
get_voltage_setpoint ¶
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 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 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 ¶
Return the voltage setpoint (this device does not support readback queries).
Returns:
| Name | Type | Description |
|---|---|---|
float |
Last voltage setpoint sent to device. |
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 ¶
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 ¶
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 ¶
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 ¶
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 |