Power supply
Module holding classes for the Power Supply.
- class qosst_hal.powersupply.FakePowerSupply(_location: Any, **_kwargs)
Fake PowerSupply.
- __init__(_location: Any, **_kwargs)
- Parameters:
_location (Any) – ignored parameter.
- close() None
Close the fake hardware (do nothing).
- open() None
Open the fake hardware (do nothing).
- output(status: int, channel: int = 1) None
Output the values.
- Parameters:
status (int) – status of the output.
channel (int) – channel to use.
- set_intensity(intensity_value: float, channel: int = 1) None
Set the value.
- Parameters:
intensity_value (float) – value to be set.
channel (int) – channel to use.
- set_voltage(voltage_value: float, channel: int = 1) None
Set the value.
- Parameters:
voltage_value (float) – value to be set.
channel (int) – channel to use.
- class qosst_hal.powersupply.GenericPowerSupply
Generic Power Supply.
Each Power Supply must have:
set_voltage : set the voltage of the power supply.
set_intensity : set the intensity of the power supply.
output : output the voltage/intensity
- abstract output(status: int, channel: Any) None
Output the voltage and intensity in a channel.
- Parameters:
status (int) – status of the output.
channel (Any) – channel to use.
- abstract set_intensity(intensity_value: float, channel: Any) None
Set the intensity.
- Parameters:
value (float) – Intensity value in some predefined unit.
channel (Any) – channel to use.
- abstract set_voltage(voltage_value: float, channel: Any) None
Set the voltage.
- Parameters:
value (float) – Voltage value in some predefined unit.
channel (Any) – channel to use.