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
 - 
      
      PropertyChangedBaseAcpSeriesPowerSupplyModule
 
- Implements
 - 
      
      
      
      
      
      
      
      INotifyPropertyChangedEx
 
- Inherited Members
 - 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
 
Constructors
AcpSeriesPowerSupplyModule(string, ICommunication)
Initializes a new instance of the AcpSeriesPowerSupplyModule class.
public AcpSeriesPowerSupplyModule(string name, ICommunication communicationPort)
  Parameters
namestringName for the device.
communicationPortICommunicationICommunication 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
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
MaximumCurrent
Gets or sets maximum current in amperes.
[Configuration(0, Unit = "A")]
public override double MaximumCurrent { get; set; }
  Property Value
MaximumFrequency
Gets or sets maximum frequency in hertz.
[Configuration(250, Unit = "Hz")]
public double MaximumFrequency { get; set; }
  Property Value
MaximumVoltage
Gets or sets maximum voltage in volts.
[Configuration(0, Unit = "V")]
public override double MaximumVoltage { get; set; }
  Property Value
MinimumFrequency
Gets or sets minimum frequency in hertz.
[Configuration(45, Unit = "Hz")]
public double MinimumFrequency { get; set; }
  Property Value
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
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
SubModules
Gets the sub LisrtModules.
public ILisrtModuleCollection SubModules { get; }
  Property Value
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
currentdoubleCurrent in amperes to regulate.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- ArgumentOutOfRangeException
 Thrown when
currentis greater than MaximumCurrent.
SetFrequency(double)
Sets the frequency.
public void SetFrequency(double frequency)
  Parameters
frequencydoubleFrequency in hertz to regulate.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- ArgumentOutOfRangeException
 Thrown when
frequencyis greater than MaximumFrequency.
SetOutput(bool)
Turns the output on or off.
public override void SetOutput(bool isEnabled)
  Parameters
isEnabledboolState for the output.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
SetVoltage(double)
Sets the voltage.
public override void SetVoltage(double voltage)
  Parameters
voltagedoubleVoltage in volts to regulate.
Exceptions
- NotInitializedException
 Thrown when the module is not initialized.
- ArgumentOutOfRangeException
 Thrown when
voltageis greater than MaximumVoltage.
SetVoltageAndCurrent(double, double)
Sets the voltage and current.
public override void SetVoltageAndCurrent(double voltage, double current)
  Parameters
ShowServiceView()
Shows the service window.
public override void ShowServiceView()