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
-
PropertyChangedBasePmlaSeriesElectronicLoadModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
PmlaSeriesElectronicLoadModule(string, ICommunication)
Initializes a new instance of the PmlaSeriesElectronicLoadModule class.
public PmlaSeriesElectronicLoadModule(string name, ICommunication communicationPort)
Parameters
name
stringName for the device.
communicationPort
ICommunicationICommunication 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
FunctionMode
Gets a value representing the current function mode.
public FunctionMode FunctionMode { get; }
Property Value
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
MaximumCurrent
Gets or sets maximum current in amperes.
[Configuration(0, Unit = "A")]
public double MaximumCurrent { get; set; }
Property Value
MaximumPower
Gets or sets maximum power in watts.
[Configuration(0, Unit = "W")]
public double MaximumPower { get; set; }
Property Value
MaximumResistance
Gets or sets maximum resistance in ohms.
[Configuration(0, Unit = "Ω")]
public double MaximumResistance { get; set; }
Property Value
MaximumVoltage
Gets or sets maximum voltage in volts.
[Configuration(0, Unit = "V")]
public double MaximumVoltage { get; set; }
Property Value
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
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
SetpointPower
Gets the setpoint power in watts.
public double SetpointPower { get; }
Property Value
SetpointResistance
Gets the setpoint resistance in ohms.
public double SetpointResistance { get; }
Property Value
SetpointVoltage
Gets the setpoint voltage in volts.
public double SetpointVoltage { get; }
Property Value
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
doubleCurrent 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
FunctionModeFunction 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
doublePower 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
doubleResistance 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
doubleVoltage 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()