The digital input indexer list. This gets the state of a digital input at the supplied index in the list.

Namespace:  Phidgets
Assembly:  Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34

Syntax

C#
public bool this[
	int index
] { get; }
Visual Basic (Declaration)
Public ReadOnly Default Property Item ( _
	index As Integer _
) As Boolean
Visual C++
public:
property bool default[int index] {
	bool get (int index);
}

Parameters

index
Type: System..::.Int32
index of the input

Return Value

state of the input

Remarks

On the mechanical encoder this refers to the pushbutton. The high speed encoder does not have any digital inputs. A value of true means that the input is active(the button is pushed).

Exceptions

ExceptionCondition
Phidgets..::.PhidgetExceptionIf this Phidget is not opened and attached, or if the index is out of range.

See Also