AnalogSetSampleRate Method

Sets the rate at which the analog pins are sampled.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void SetSampleRate(
	int sampleRateHz
)

Parameters

sampleRateHz  Int32
Sample rate in hertz in the range of 1 to 50.

Exceptions

IOExceptionSerial port is in error state or not open.
ArgumentOutOfRangeExceptionsampleRateHz has value less than 1 or greater than 50.

See Also