Table of Contents

Class AcpSeriesPowerSupplyModule

Namespace
Loehnert.Lisrt.PowerSupply.ElektroAutomatik
Assembly
Loehnert.Lisrt.PowerSupply.ElektroAutomatik.dll

Represents a ACP-Series power supply by AutomatikElektronik controlled via SCPI commands.

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

Constructors

AcpSeriesPowerSupplyModule(string, ICommunication)

Initializes a new instance of the AcpSeriesPowerSupplyModule class.

public AcpSeriesPowerSupplyModule(string name, ICommunication communicationPort)

Parameters

name string

Name for the device.

communicationPort ICommunication

ICommunication port for communication with the device. With 8 data bits, no parity, 1 stop bit and end of string character: line feed (LF, 0x0A).

Properties

Address

Gets or sets the RS485-address.

[Configuration("", Description = "Address used for RS485-Setup. Leave empty if used in different setup. Address-format: Axxx, where xxx is the Address between 0 and 254.")]
public string Address { get; set; }

Property Value

string

Remarks

Needed if the ACP is used in RS485-Mode. Address-format: Axxx, where xxx is the Address between 0 and 254.

InitializationState

Gets a value indicating whether the module is initialized.

public InitializationState InitializationState { get; }

Property Value

InitializationState

MaximumCurrent

Gets or sets maximum current in amperes.

[Configuration(0, Unit = "A")]
public override double MaximumCurrent { get; set; }

Property Value

double

MaximumFrequency

Gets or sets maximum frequency in hertz.

[Configuration(250, Unit = "Hz")]
public double MaximumFrequency { get; set; }

Property Value

double

MaximumVoltage

Gets or sets maximum voltage in volts.

[Configuration(0, Unit = "V")]
public override double MaximumVoltage { get; set; }

Property Value

double

MinimumFrequency

Gets or sets minimum frequency in hertz.

[Configuration(45, Unit = "Hz")]
public double MinimumFrequency { get; set; }

Property Value

double

ReloadValuesFromDeviceIsActive

Gets or sets a value indicating whether the value setting methods reloads the values from the device.

[Configuration(true, Description = "Indicates whether the set point should be read back after a set point change.")]
public bool ReloadValuesFromDeviceIsActive { get; set; }

Property Value

bool

Remarks

Default is false. For example if true, SetpointCurrent sets the value and sets the SetpointCurrent with device value.

SetpointFrequency

Gets or sets the setpoint of the frequency in hertz.

[SuppressMessage("StyleCop.CSharp.DocumentationRules", "SA1650:ElementDocumentationMustBeSpelledCorrectly", Justification = "'setpoint' is correct (https://dict.leo.org/englisch-deutsch/setpoint)")]
public virtual double SetpointFrequency { get; protected set; }

Property Value

double

SubModules

Gets the sub LisrtModules.

public ILisrtModuleCollection SubModules { get; }

Property Value

ILisrtModuleCollection

Methods

Exit()

De initializes the object.

public void Exit()

Remarks

Sets the voltage to 0V, disables the output and returns to local controlled mode.

Initialize()

Initializes the module.

public void Initialize()

Measure()

Measures the frequency, voltage and current.

public MeasurementValues Measure()

Returns

MeasurementValues

The measured (frequency, voltage, current) or (0.0, 0.0, 0.0) if disabled.

Remarks

The frequency is not a real actual value, since not measured.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

SetCurrent(double)

Sets the current.

public override void SetCurrent(double current)

Parameters

current double

Current in amperes to regulate.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when current is greater than MaximumCurrent.

SetFrequency(double)

Sets the frequency.

public void SetFrequency(double frequency)

Parameters

frequency double

Frequency in hertz to regulate.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when frequency is greater than MaximumFrequency.

SetOutput(bool)

Turns the output on or off.

public override void SetOutput(bool isEnabled)

Parameters

isEnabled bool

State for the output.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

SetVoltage(double)

Sets the voltage.

public override void SetVoltage(double voltage)

Parameters

voltage double

Voltage in volts to regulate.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when voltage is greater than MaximumVoltage.

SetVoltageAndCurrent(double, double)

Sets the voltage and current.

public override void SetVoltageAndCurrent(double voltage, double current)

Parameters

voltage double

Voltage to set.

current double

Current to set.

ShowServiceView()

Shows the service window.

public override void ShowServiceView()