Get state of the specified digital input.
Namespace:
AForge.Robotics.TeRKAssembly: AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)
Syntax
Parameters
- input
- Type: System..::.Int32
Digital input to get state of, [0, Count).
Return Value
Returns state of the requested input as boolean values - active/inactive.
Remarks
In the case if multiply inputs should be queried, it is much preferred to use GetInputs()()() method, which retrieves state of all inputs at once.
Exceptions
Exception | Condition |
---|---|
System..::.ArgumentOutOfRangeException | Invalid input is specified. |
AForge..::.ConnectionLostException | Connestion to Qwerk is lost. |