Class DigitalOutputModule
- Namespace
- Loehnert.Lisrt.AutomationController
- Assembly
- Loehnert.Lisrt.AutomationController.dll
Represents a digital output for the AutomationControllerModule.
public class DigitalOutputModule : PropertyChangedBase, INotifyPropertyChangedEx, ILisrtModule, INotifyPropertyChanged, IDigitalOutput, IHasKey, IHasDescription, IHasServiceView, IHasDeviceLabel
- Inheritance
-
PropertyChangedBaseDigitalOutputModule
- Implements
-
INotifyPropertyChangedEx
- Inherited Members
-
PropertyChangedBase.Refresh()PropertyChangedBase.IsNotifyingPropertyChangedBase.PropertyChanged
Properties
Description
Gets the translatable description.
public ITranslation Description { get; }
Property Value
- ITranslation
DeviceLabel
Gets or sets the label for the device.
[Configuration("")]
public string DeviceLabel { get; set; }
Property Value
Enabled
Gets or sets a value indicating whether the module is enabled.
public bool Enabled { get; set; }
Property Value
Icon
Gets the icon from the module.
public Uri Icon { get; }
Property Value
InstanceID
Gets or sets the ID for this instance.
public int InstanceID { get; set; }
Property Value
IsReadOnly
Gets or sets a value indicating whether the output is read-only.
[Configuration(DefaultValue = false)]
public bool IsReadOnly { get; set; }
Property Value
Key
Gets the full module name as unique key.
public string Key { get; }
Property Value
Name
Gets or sets the name.
public string Name { get; set; }
Property Value
Parent
Gets or sets the parent module.
public ILisrtModule Parent { get; set; }
Property Value
TreeItem
Gets the view model for the module.
public ITreeItem TreeItem { get; }
Property Value
Value
Gets or sets a value indicating whether the output is high.
public bool Value { get; set; }
Property Value
Methods
GetValue()
Gets the value of the output.
public bool GetValue()
Returns
- bool
Output value.
SetValue(bool)
Sets the value of the output.
public void SetValue(bool value)
Parameters
value
boolOutput value.
Exceptions
- InvalidOperationException
Thrown if IsReadOnly is true or writing outputs with AutomationControllerModule fails.
ShowServiceView()
Shows the service window.
public void ShowServiceView()