Interface IPowerSupply
- Namespace
- Loehnert.Lisrt.PowerSupply
- Assembly
- Loehnert.Lisrt.PowerSupply.dll
Interface for a power supply.
public interface IPowerSupply
Properties
MaximumCurrent
Gets or sets maximum current in Ampere.
double MaximumCurrent { get; set; }
Property Value
MaximumVoltage
Gets or sets maximum voltage in Volt.
double MaximumVoltage { get; set; }
Property Value
OutputIsEnabled
Gets a value indicating whether the supply output is enabled.
bool OutputIsEnabled { get; }
Property Value
SetpointCurrent
Gets the setpoint of the current in Ampere.
double SetpointCurrent { get; }
Property Value
SetpointVoltage
Gets the setpoint of the voltage in Volt.
double SetpointVoltage { get; }
Property Value
Methods
SetCurrent(double)
Sets the current.
void SetCurrent(double current)
Parameters
current
doubleCurrent in Ampere to regulate.
SetOutput(bool)
Sets the output.
void SetOutput(bool isEnabled)
Parameters
isEnabled
boolState for the output.
SetVoltage(double)
Sets the voltage.
void SetVoltage(double voltage)
Parameters
voltage
doubleVoltage in Volt to regulate.
SetVoltageAndCurrent(double, double)
Sets the voltage, current and enables the output.
void SetVoltageAndCurrent(double voltage, double current)