Class TestModuleBase
- Namespace
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic
- Assembly
- Loehnert.Lisrt.HighVoltageTester.SpsElectronic.dll
Represents a base class for test devices with IOs.
public abstract class TestModuleBase : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasDeviceLabel
- Inheritance
-
PropertyChangedBaseTestModuleBase
- Implements
-
INotifyPropertyChangedEx
- Derived
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Constructors
TestModuleBase(string, ICommunication)
Initializes a new instance of the TestModuleBase class.
protected TestModuleBase(string name, ICommunication communication)
Parameters
name
stringName of the module. See Name.
communication
ICommunicationCommunication device.
Remarks
Sets communication
Encoding to ASCII
and communication
EndDelimiter to line feed ("\n").
Exceptions
- ArgumentNullException
Thrown when
communication
is null.
Properties
DeviceLabel
Gets or sets the device label.
[Configuration("")]
public string DeviceLabel { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether the ILisrtModule is enabled.
public override bool Enabled { get; set; }
Property Value
FirmwareVersion
Gets the firmware version.
public Version FirmwareVersion { get; }
Property Value
Remarks
Command "*IDN?".
HardwareIdentification
Gets the identification.
public string HardwareIdentification { get; }
Property Value
Remarks
Command "*IDN?".
HasBeckhoffIOExtension
Gets or sets a value indicating whether the device has the IO extension.
[Configuration(false, Description = "Gets or sets a value indicating whether the device has an IO extension")]
public bool HasBeckhoffIOExtension { get; set; }
Property Value
Remarks
Icon
Gets a screwdriver module icon.
public override Uri Icon { get; }
Property Value
Inputs
Gets the external inputs.
public ReadOnlyCollection<Input> Inputs { get; }
Property Value
Remarks
Pins 11 to 18 on the X6 interface, Inputs[0] is pin 11. Inputs[8] is input 1 of Beckhoff extension, Inputs[23] is input 1 of Beckhoff extension.
InstanceID
Gets the instance id.
public int InstanceID { get; }
Property Value
InternalInputs
Gets the internal inputs.
public ReadOnlyCollection<Input> InternalInputs { get; }
Property Value
Outputs
Gets the external outputs.
public ReadOnlyCollection<Output> Outputs { get; }
Property Value
Remarks
Pins 1 to 8 on the X6 interface, while Output[0] is pin 1. Beckhoff extension outputs 1 to 16, while Output[8] is output 1.
Methods
Exit()
De initializes the module.
public override void Exit()
Initialize()
Initializes the module.
public override void Initialize()