Controller.DigitalInName
Property indicates the name of the specified digital input.
Version History
Introduced in MPX 2.0.
Type
String (read only)
Index
|
Index Type |
Description |
UInt32 |
The name of the digital input to return. |
|
Common Exceptions
|
Error |
Occurs when... |
Argument |
An invalid argument is specified. The specified digital input does not exist on the controller. |
|
Visual Basic
Syntax
Property DigitalInName(index As UInt32) As String
Sample Code
|
If controller.DigitalInAvailable(2) Then Dim input2State As Boolean = controller.DigitalInBit(2) Dim input2Name As String = controller.DigitalInName(2) Console.WriteLine("Digital Input #2 Name: {0}, State: {1}", _ input2Name, _ input2State) End If
|
Sample Application
C#
Syntax
string DigitalInName[];
Sample Code
|
if (controller.DigitalInAvailable[2]) { bool input2State = controller.DigitalInBit[2]; string input2Name = controller.DigitalInName[2]; Console.WriteLine("Digital Input #2 Name: {0}, State: {1}", input2Name, input2State); }
|
See Also
|