Table of Contents

Class PmlaSeriesElectronicLoadModule

Namespace
Loehnert.Lisrt.ElectronicLoad.HoecherlHackl
Assembly
Loehnert.Lisrt.ElectronicLoad.HoecherlHackl.dll

Represents LisRT Module for a PMLA-Series electronic load by Hoecherl-Hackl controlled via SCPI commands.

public class PmlaSeriesElectronicLoadModule : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasServiceView
Inheritance
PropertyChangedBase
PmlaSeriesElectronicLoadModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

PmlaSeriesElectronicLoadModule(string, ICommunication)

Initializes a new instance of the PmlaSeriesElectronicLoadModule class.

public PmlaSeriesElectronicLoadModule(string name, ICommunication communicationPort)

Parameters

name string

Name for the device.

communicationPort ICommunication

ICommunication for communication with the device. With end of string character: line feed.

Exceptions

ArgumentNullException

Thrown if communicationPort is null.

Properties

ChannelAddress

Gets or sets the channel address of this electronic load. Zero, if only one electronic load is used.

[Configuration(0, Description = "Channel address of this electronic load. Set to zero, if only one electronic load is used.")]
public int ChannelAddress { get; set; }

Property Value

int

FunctionMode

Gets a value representing the current function mode.

public FunctionMode FunctionMode { get; }

Property Value

FunctionMode

Remarks

Set the function mode with SetFunctionMode(FunctionMode).

InputIsEnabled

Gets a value indicating whether the input of the electronic load is enabled.

public virtual bool InputIsEnabled { get; }

Property Value

bool

MaximumCurrent

Gets or sets maximum current in amperes.

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

Property Value

double

MaximumPower

Gets or sets maximum power in watts.

[Configuration(0, Unit = "W")]
public double MaximumPower { get; set; }

Property Value

double

MaximumResistance

Gets or sets maximum resistance in ohms.

[Configuration(0, Unit = "Ω")]
public double MaximumResistance { get; set; }

Property Value

double

MaximumVoltage

Gets or sets maximum voltage in volts.

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

Property Value

double

ReloadValuesFromDeviceIsActive

Gets or sets a value indicating whether the value setting methods reload 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.

SetpointCurrent

Gets the setpoint current in amperes.

public double SetpointCurrent { get; }

Property Value

double

SetpointPower

Gets the setpoint power in watts.

public double SetpointPower { get; }

Property Value

double

SetpointResistance

Gets the setpoint resistance in ohms.

public double SetpointResistance { get; }

Property Value

double

SetpointVoltage

Gets the setpoint voltage in volts.

public double SetpointVoltage { get; }

Property Value

double

Methods

DisableInput()

Turns the input off.

public void DisableInput()

Exceptions

NotInitializedException

Thrown when the module is not initialized.

EnableInput()

Turns the input on.

public void EnableInput()

Exceptions

NotInitializedException

Thrown when the module is not initialized.

Exit()

De-Initializes the module.

public override void Exit()

Initialize()

Initializes the module.

public override void Initialize()

SetCurrent(double)

Sets the value for regulated input current in current function mode.

public void SetCurrent(double current)

Parameters

current double

Current to set in amperes.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when the value is greater than MaximumCurrent.

SetFunctionMode(FunctionMode)

Sets the function mode for regulation of the electronic load.

public void SetFunctionMode(FunctionMode functionMode)

Parameters

functionMode FunctionMode

Function mode to set.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

SetPower(double)

Sets the value for regulated input power in power operating mode.

public void SetPower(double power)

Parameters

power double

Power to set in watts.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when the value is greater than MaximumPower.

SetResistance(double)

Sets the value for regulated resistance in resistance operating mode.

public void SetResistance(double resistance)

Parameters

resistance double

Resistance to set in ohms.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when the value is greater than MaximumResistance.

SetVoltage(double)

Sets the value for regulated input voltage in voltage function mode.

public void SetVoltage(double voltage)

Parameters

voltage double

Voltage to set in volts.

Exceptions

NotInitializedException

Thrown when the module is not initialized.

ArgumentOutOfRangeException

Thrown when the value is greater than MaximumVoltage.

ShowServiceView()

Shows the service window.

public void ShowServiceView()