Power Supply Output¶
PSU output channel configuration
Power supply output control and configuration.
Represents a single power supply output with voltage, current, and enable control.
PowerSupplyOutput
¶
Represents a single power supply output channel.
Provides methods to configure output settings including voltage setpoint, current limit, output enable/disable, and measurements.
Initialize power supply output.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
psu
|
PowerSupply
|
Parent PowerSupply instance |
required |
spec
|
OutputSpec
|
OutputSpec with voltage/current limits for this output |
required |
Source code in scpi_control/power_supply_output.py
voltage
property
writable
¶
Get voltage setpoint in volts.
Returns:
| Type | Description |
|---|---|
float
|
Voltage setpoint in volts |
current
property
writable
¶
Get current limit setpoint in amps.
Returns:
| Type | Description |
|---|---|
float
|
Current limit in amps |
enabled
property
writable
¶
Get output enable state.
Returns:
| Type | Description |
|---|---|
bool
|
True if output is enabled, False otherwise |
ovp_level
property
writable
¶
Get over-voltage protection level in volts.
Returns:
| Type | Description |
|---|---|
float
|
OVP level in volts |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If OVP is not supported by this model |
ocp_level
property
writable
¶
Get over-current protection level in amps.
Returns:
| Type | Description |
|---|---|
float
|
OCP level in amps |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If OCP is not supported by this model |
timer_enabled
property
writable
¶
Get timer enable state.
Returns:
| Type | Description |
|---|---|
bool
|
True if timer is enabled, False otherwise |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If timer is not supported by this model |
waveform_enabled
property
writable
¶
Get waveform generation enable state.
Returns:
| Type | Description |
|---|---|
bool
|
True if waveform is enabled, False otherwise |
Raises:
| Type | Description |
|---|---|
NotImplementedError
|
If waveform generation is not supported |
set_voltage
¶
Set voltage setpoint (alias for voltage setter).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
volts
|
float
|
Voltage setpoint in volts |
required |
set_current
¶
Set current limit (alias for current setter).
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
amps
|
float
|
Current limit in amps |
required |
enable
¶
disable
¶
measure_voltage
¶
Measure actual output voltage in volts.
Returns:
| Type | Description |
|---|---|
float
|
Actual output voltage in volts |
Source code in scpi_control/power_supply_output.py
measure_current
¶
Measure actual output current in amps.
Returns:
| Type | Description |
|---|---|
float
|
Actual output current in amps |
Source code in scpi_control/power_supply_output.py
measure_power
¶
Measure actual output power in watts.
Returns:
| Type | Description |
|---|---|
float
|
Actual output power in watts |
Source code in scpi_control/power_supply_output.py
get_mode
¶
Get current operating mode.
Returns:
| Type | Description |
|---|---|
str
|
Operating mode: 'CV' (constant voltage) or 'CC' (constant current) |
Note
Not all power supplies support mode query. May raise an exception if the command is not supported.
Source code in scpi_control/power_supply_output.py
get_configuration
¶
Get all output configuration parameters.
Returns:
| Type | Description |
|---|---|
Dict[str, any]
|
Dictionary with all output settings |