Class TestModuleBase
Represents a base class for test devices with IOs.
Inheritance
Implements
Inherited Members
Namespace: Loehnert.Lisrt.HighVoltageTester.SpsElectronic
Assembly: Loehnert.Lisrt.HighVoltageTester.SpsElectronic.dll
Syntax
public abstract class TestModuleBase : InitializableCompositeModule, ICompositeModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasDeviceLabel
Constructors
TestModuleBase(String, ICommunication)
Initializes a new instance of the TestModuleBase class.
Declaration
protected TestModuleBase(string name, ICommunication communication)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name of the module. See Name. |
ICommunication | communication | Communication device. |
Remarks
Sets communication
Encoding to System.Text.Encoding.ASCII
and communication
EndDelimiter to line feed ("\n").
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown when |
Properties
DeviceLabel
Gets or sets the device label.
Declaration
[Configuration("")]
public string DeviceLabel { get; set; }
Property Value
Type | Description |
---|---|
String |
Enabled
Gets or sets a value indicating whether the ILisrtModule is enabled.
Declaration
public override bool Enabled { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Overrides
FirmwareVersion
Gets the firmware version.
Declaration
public Version FirmwareVersion { get; }
Property Value
Type | Description |
---|---|
System.Version |
Remarks
Command "*IDN?".
HardwareIdentification
Gets the identification.
Declaration
public string HardwareIdentification { get; }
Property Value
Type | Description |
---|---|
String |
Remarks
Command "*IDN?".
HasBeckhoffIOExtension
Gets or sets a value indicating whether the device has the IO extension.
Declaration
[Configuration(false, Description = "Gets or sets a value indicating whether the device has an IO extension")]
public bool HasBeckhoffIOExtension { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
Remarks
Icon
Gets a screwdriver module icon.
Declaration
public override Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Overrides
Inputs
Gets the external inputs.
Declaration
public ReadOnlyCollection<Input> Inputs { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<Input> |
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.
Declaration
public int InstanceID { get; }
Property Value
Type | Description |
---|---|
System.Int32 |
InternalInputs
Gets the internal inputs.
Declaration
public ReadOnlyCollection<Input> InternalInputs { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<Input> |
Outputs
Gets the external outputs.
Declaration
public ReadOnlyCollection<Output> Outputs { get; }
Property Value
Type | Description |
---|---|
System.Collections.ObjectModel.ReadOnlyCollection<Output> |
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.
Declaration
public override void Exit()
Overrides
Initialize()
Initializes the module.
Declaration
public override void Initialize()