Class MeasureMuxModule
Represents a measure multiplexer board L15B63 and L2109016. Depends on project L15B63, L2001047.
Implements
Inherited Members
Namespace: Loehnert.Lisrt.CircuitBoard.L15B63
Assembly: Loehnert.Lisrt.CircuitBoard.L15B63.dll
Syntax
public class MeasureMuxModule : LisrtModule, ILisrtModule, IInitializable, INotifyPropertyChangedEx, INotifyPropertyChanged, IHasDeviceLabel, IHasServiceView
Constructors
MeasureMuxModule(String, ICanCommunication2)
Initializes a new instance of the MeasureMuxModule class.
Declaration
public MeasureMuxModule(string name, ICanCommunication2 canCommunication)
Parameters
Type | Name | Description |
---|---|---|
String | name | Name for the module. |
ICanCommunication2 | canCommunication | Can communication. |
Exceptions
Type | Condition |
---|---|
System.ArgumentNullException | Thrown |
Properties
CardAddress
Gets or sets the card address.
Declaration
[Configuration(0U)]
public uint CardAddress { get; set; }
Property Value
Type | Description |
---|---|
System.UInt32 |
DeviceLabel
Gets or sets the device label.
Declaration
[Configuration("")]
public string DeviceLabel { get; set; }
Property Value
Type | Description |
---|---|
String |
Icon
Gets the icon which is representative for the module.
Declaration
public override Uri Icon { get; }
Property Value
Type | Description |
---|---|
Uri |
Overrides
InitializationState
Gets the current initialization state.
Declaration
public InitializationState InitializationState { get; }
Property Value
Type | Description |
---|---|
InitializationState |
InstanceID
Gets or sets the ID for the instance.
Declaration
[Configuration(0)]
public int InstanceID { get; set; }
Property Value
Type | Description |
---|---|
System.Int32 |
SelfTestType
Gets or sets the self test type.
Declaration
[Configuration(SelfTestType.ExcludingHighPowerPath)]
public SelfTestType SelfTestType { get; set; }
Property Value
Type | Description |
---|---|
SelfTestType |
Methods
AcknowledgeErrors()
Acknowledges the device errors.
Declaration
public State AcknowledgeErrors()
Returns
Type | Description |
---|---|
State | The acknowledged error as State or NoErrors if no error was acknowledged. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
DoFunction(Byte, IEnumerable<Byte>)
Executes a function.
Declaration
protected IEnumerable<byte> DoFunction(byte functionCode, IEnumerable<byte> data = null)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | functionCode | Function code. |
IEnumerable<System.Byte> | data | Data for the function or default. |
Returns
Type | Description |
---|---|
IEnumerable<System.Byte> | The answer data of the function. |
Exit()
De initializes the object.
Declaration
public void Exit()
GetAnalogInput(String)
Gets a analog input value [V] by its device labels.
Declaration
public virtual double GetAnalogInput(string deviceLabel)
Parameters
Type | Name | Description |
---|---|---|
String | deviceLabel | Device label of the analog input. AN02 to AN05. |
Returns
Type | Description |
---|---|
Double | The analog input voltage in volts. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
GetAnalogOutput()
Gets the analog output value [V].
Declaration
public double GetAnalogOutput()
Returns
Type | Description |
---|---|
Double | The analog output voltage in volts. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
GetDigitalInputsDeviceLabels()
Gets the device labels of active digital inputs and the plugged jumpers.
Declaration
public IEnumerable<string> GetDigitalInputsDeviceLabels()
Returns
Type | Description |
---|---|
IEnumerable<String> | Device labels of the active digital inputs. Some of: AN09, AN10, RG12 to RG15, RC1, RC2, JP1_1, JP1_2 and JP1_3. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
GetDigitalOutputDeviceLabels()
Gets the device labels of the set digital outputs.
Declaration
public IEnumerable<string> GetDigitalOutputDeviceLabels()
Returns
Type | Description |
---|---|
IEnumerable<String> | Device labels of the set digital outputs. Some of: RD_9, RD_10. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
GetFirmwareVersion()
Gets the firmware version.
Declaration
public Version GetFirmwareVersion()
Returns
Type | Description |
---|---|
System.Version | The firmware version. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
GetRelayCounter(Byte)
Gets the cycle count of the relay.
Declaration
public uint GetRelayCounter(byte relayNumber)
Parameters
Type | Name | Description |
---|---|---|
System.Byte | relayNumber | Relay number from 1 to 72. |
Returns
Type | Description |
---|---|
System.UInt32 | Cycle count of the relay. |
GetRelayCounter(String)
Gets the cycle count of the relay.
Declaration
public uint GetRelayCounter(string deviceLabel)
Parameters
Type | Name | Description |
---|---|---|
String | deviceLabel | Relay device label. |
Returns
Type | Description |
---|---|
System.UInt32 | Cycle count of the relay. |
Remarks
The device label can be one of: K_A1 to K_A24, K_E1 to K_E24, K_B1 to K_B4, K_B5_6 to K_B23_24 and K_AP1_A, K_AP1_B, K_AP2_A, K_AP2_B, K_EP1_A, K_EP1_B and K_F10, K_S10, A_RES_1, A_RES_2.
GetRelayDeviceLabels()
Gets the device labels of the set relays.
Declaration
public IEnumerable<string> GetRelayDeviceLabels()
Returns
Type | Description |
---|---|
IEnumerable<String> | Device labels of the set relays. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
Initialize()
Initializes the module.
Declaration
public void Initialize()
RunSelftest(CancellationToken)
Runs the self test.
Declaration
public virtual SelftestResult RunSelftest(CancellationToken cancellationToken = default(CancellationToken))
Parameters
Type | Name | Description |
---|---|---|
System.Threading.CancellationToken | cancellationToken | The cancellation token to cancel the self test. |
Returns
Type | Description |
---|---|
SelftestResult | The result of the self test. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
System.OperationCanceledException | Thrown when cancellation requested. |
SetAnalogOutput(Double)
Sets the analog output value [V].
Declaration
public void SetAnalogOutput(double value)
Parameters
Type | Name | Description |
---|---|---|
Double | value | The voltage in volts for the analog output. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
ArgumentOutOfRangeException | Thrown when |
SetDigitalOutputs(IEnumerable<String>)
Sets the digital outputs by its device labels ("RD9" and "RD10" are supported).
Declaration
public void SetDigitalOutputs(IEnumerable<string> deviceLabels)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | deviceLabels | Device labels of the digital outputs to set. Must be "RD9" or "RD10". |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
System.ArgumentException | Thrown when |
SetRelays(IEnumerable<String>)
Sets the relays by its device labels. K_A1 to K_A24, K_E1 to K_E24, K_B1 to K_B4, K_B5_6 to K_B23_24 and K_AP1_A, K_AP1_B, K_AP2_A, K_AP2_B, K_EP1_A, K_EP1_B and K_F10, K_S10, A_RES_1, A_RES_2.
Declaration
public void SetRelays(IEnumerable<string> deviceLabels)
Parameters
Type | Name | Description |
---|---|---|
IEnumerable<String> | deviceLabels | Device labels of the relays to set. |
Exceptions
Type | Condition |
---|---|
System.InvalidOperationException | Thrown when InitializationState is not Initialized or IsInitializing. |
ShowServiceView()
Shows the service window.
Declaration
public void ShowServiceView()