The digital output indexer list. This gets or sets the state of a digital output at the supplied index in the list.
Namespace:
PhidgetsAssembly: Phidget21.NET (in Phidget21.NET.dll) Version: 2.1.9.34
Syntax
C# |
---|
public bool this[ int index ] { get; set; } |
Visual Basic (Declaration) |
---|
Public Default Property Item ( _ index As Integer _ ) As Boolean |
Visual C++ |
---|
public: property bool default[int index] { bool get (int index); void set (int index, bool value); } |
Parameters
- index
- Type: System..::.Int32
Index of the output.
Return Value
State of the output.
Remarks
Depending on the Phidget, this value may be either the value that you last wrote out to the Phidget,
or the value that the Phidget last returned. This is because some Phidgets return their output state and others do not.
This means that with some devices, reading the output state of a pin directly after setting it,
may not return the value that you just set.
Exceptions
Exception | Condition |
---|---|
Phidgets..::.PhidgetException | If this Phidget is not opened and attached, or if the index is out of range. |