Table of Contents

Class DryveD1DigitalOutputModule

Namespace
Loehnert.Lisrt.Drive.Igus
Assembly
Loehnert.Lisrt.Drive.Igus.dll

Represents a digital output of the DryveD1Module.

public class DryveD1DigitalOutputModule : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IDigitalOutput, IHasKey, IHasDescription, IHasServiceView
Inheritance
PropertyChangedBase
DryveD1DigitalOutputModule
Implements
INotifyPropertyChangedEx
Inherited Members
PropertyChangedBase.Refresh()
PropertyChangedBase.IsNotifying
PropertyChangedBase.PropertyChanged

Properties

Description

Gets the translatable description.

public ITranslation Description { get; }

Property Value

ITranslation

Enabled

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

public bool Enabled { get; set; }

Property Value

bool

Icon

Gets the icon from the module.

public Uri Icon { get; }

Property Value

Uri

IsReadOnly

Gets or sets a value indicating whether the output is read-only. Default is true.

[Configuration(DefaultValue = true)]
public bool IsReadOnly { get; set; }

Property Value

bool

Key

Gets the full module name as unique key.

public string Key { get; }

Property Value

string

Name

Gets or sets the name.

public string Name { get; set; }

Property Value

string

Parent

Gets or sets the parent module.

public ILisrtModule Parent { get; set; }

Property Value

ILisrtModule

TreeItem

Gets the view model for the module.

public ITreeItem TreeItem { get; }

Property Value

ITreeItem

Value

Gets or sets a value indicating whether the output is high.

public bool Value { get; set; }

Property Value

bool

Remarks

Awaits the change of the output live value while setting (takes about 100ms).

Methods

GetValue()

Gets the value of the output.

public bool GetValue()

Returns

bool

Output value.

SetValue(bool)

Sets the value of the output and awaits the change of the output live value (takes about 100ms).

public void SetValue(bool value)

Parameters

value bool

Output value.

Exceptions

InvalidOperationException

Thrown if IsReadOnly is true or writing outputs with DryveD1Module fails, for example if the hardware was never enabled.

TimeoutException

Thrown if drive does not change its live value to value.

ShowServiceView()

Shows the service window.

public void ShowServiceView()