TriggerRunPattern Method

Runs a repeating pattern of digital pulses.

Definition

Namespace: RoboTx.Api
Assembly: RoboTx.Api (in RoboTx.Api.dll) Version: 1.0.0
C#
public void RunPattern(
	int onPeriod,
	int offPeriod,
	int cycles,
	int loopCycles = 1,
	int loopDelayPeriod = 0
)

Parameters

onPeriod  Int32
On for specified milliseconds.
offPeriod  Int32
Off for specified milliseconds.
cycles  Int32
Repeat the pulse/off cycle for specified number of times.
loopCycles  Int32  (Optional)
The number of times to loop (repeat) the pulse/off/cycle. 0=indefinite.
loopDelayPeriod  Int32  (Optional)
Interval between loops in millisecionds.

Exceptions

IOExceptionSerial port is in error state or not open.

See Also