The encoder indexer list. This gets or sets the encoder position according to the provided index.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
C# |
---|
public int this[ int index ] { get; set; } |
Visual Basic (Declaration) |
---|
Public Default Property Item ( _ index As Integer _ ) As Integer |
Visual C++ |
---|
public: property int default[int index] { int get (int index); void set (int index, int value); } |
Parameters
- index
- Type: System..::.Int32
The encoder index.
Remarks
Sets the position of a specific encoder. This resets the internal position count for an encoder. This call in no way actually sends information to the device, as an absolute position is maintained only in the library.
After this call, position changes from the encoder will use the new value to calculate absolute position by using the return from the get property.
Returns the position of an encoder through the get property. This is an absolute position as calcutated since the encoder was plugged in.
Exceptions
Exception | Condition |
---|---|
Phidgets..::.PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. |