Get state of the specified digital input.

Namespace:  AForge.Robotics.TeRK
Assembly:  AForge.Robotics.TeRK (in AForge.Robotics.TeRK.dll) Version: 2.2.5.0 (2.2.5.0)

Syntax

C#
public bool GetInput(
	int input
)

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

ExceptionCondition
System..::.ArgumentOutOfRangeExceptionInvalid input is specified.
AForge..::.ConnectionLostExceptionConnestion to Qwerk is lost.

See Also