Get state of the specified analog 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 short GetInput(
	int input
)

Parameters

input
Type: System..::.Int32
Analog input to get state of, [0, Count).

Return Value

Returns state of the requested input measured in milli volts.

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