SwitchOnForDuration Method

Switches on the digital output for the specified duration in seconds.

Definition

Namespace: RoboTx.Api
Assembly: Robo-Tx.Api (in Robo-Tx.Api.dll) Version: 2.0.0+58b061ffe902bd370f7f9a4c58103d8e1f566889
C#
public void OnForDuration(
	float duration
)

Parameters

duration  Single
Duration in seconds. Value must be between 0 and 600 inclusive.

Exceptions

IOExceptionSerial port is in error state or not open.

See Also