Table of Contents

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
PropertyChangedBase
TestModuleBase
Implements
INotifyPropertyChangedEx
Derived
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Constructors

TestModuleBase(string, ICommunication)

Initializes a new instance of the TestModuleBase class.

protected TestModuleBase(string name, ICommunication communication)

Parameters

name string

Name of the module. See Name.

communication ICommunication

Communication device.

Remarks

Sets communicationEncoding to ASCII and communicationEndDelimiter 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

string

Enabled

Gets or sets a value indicating whether the ILisrtModule is enabled.

public override bool Enabled { get; set; }

Property Value

bool

FirmwareVersion

Gets the firmware version.

public Version FirmwareVersion { get; }

Property Value

Version

Remarks

Command "*IDN?".

HardwareIdentification

Gets the identification.

public string HardwareIdentification { get; }

Property Value

string

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

bool

Remarks

Enables or disables the Inputs[8] to Inputs[24] and Outputs[8] to Outputs[24].

Icon

Gets a screwdriver module icon.

public override Uri Icon { get; }

Property Value

Uri

Inputs

Gets the external inputs.

public ReadOnlyCollection<Input> Inputs { get; }

Property Value

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.

public int InstanceID { get; }

Property Value

int

InternalInputs

Gets the internal inputs.

public ReadOnlyCollection<Input> InternalInputs { get; }

Property Value

ReadOnlyCollection<Input>

Outputs

Gets the external outputs.

public ReadOnlyCollection<Output> Outputs { get; }

Property Value

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.

public override void Exit()

Initialize()

Initializes the module.

public override void Initialize()