Table of Contents

Class AnalogControlledMonitoringPowerSupplyModule

Namespace
Loehnert.Lisrt.PowerSupply.AnalogInputPowerSupply
Assembly
Loehnert.Lisrt.PowerSupply.dll

Represents an analog controlled monitoring power supply.

public class AnalogControlledMonitoringPowerSupplyModule : AnalogControlledPowerSupplyModule, IHasDeviceLabel, IHasServiceView, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IMonitoringPowerSupply, IPowerSupply
Inheritance
PropertyChangedBase
AnalogControlledMonitoringPowerSupplyModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

AnalogControlledMonitoringPowerSupplyModule(string, IAnalogOutput, IAnalogOutput, IAnalogInput, IAnalogInput)

Initializes a new instance of the AnalogControlledMonitoringPowerSupplyModule class.

public AnalogControlledMonitoringPowerSupplyModule(string name, IAnalogOutput analogVoltageOutput, IAnalogOutput analogCurrentOutput, IAnalogInput analogVoltageInput, IAnalogInput analogCurrentInput)

Parameters

name string

Name of the module.

analogVoltageOutput IAnalogOutput

Optional analog output, which is connected to the power supply to control the voltage.

analogCurrentOutput IAnalogOutput

Optional analog output, which is connected to the power supply to control the current.

analogVoltageInput IAnalogInput

Optional analog input, which is connected to the power supply to monitor the voltage.

analogCurrentInput IAnalogInput

Optional analog input, which is connected to the power supply to monitor the current.

Properties

CurrentScalingFactor

Gets or sets the factor with which the current input and output are scaled.

[Configuration(1, Description = "The factor with which the current input and output are scaled.")]
public override double CurrentScalingFactor { get; set; }

Property Value

double

Examples

Power supply output current is 5A at 10V input voltage, the factor is 0.5.

VoltageScalingFactor

Gets or sets the factor with which the voltage input and output are scaled.

[Configuration(1, Description = "The factor with which the voltage input and output are scaled.")]
public override double VoltageScalingFactor { get; set; }

Property Value

double

Examples

Power supply output voltage is 24V at 10V input voltage, the factor is 2.4.

Methods

Exit()

De initializes the module.

public override void Exit()

Initialize()

Initializes the module.

public override void Initialize()

Exceptions

InvalidOperationException

Thrown when any IInitializable analog output is not Initialized.

MeasureCurrent()

Measures the current.

public double MeasureCurrent()

Returns

double

The measured current in ampere.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

NotSupportedException

Thrown when no analog current input is set.

MeasureVoltage()

Measures the voltage.

public double MeasureVoltage()

Returns

double

The measured voltage in volt.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

NotSupportedException

Thrown when no analog voltage input is set.