PulseCounterEnable Method
Initializes and enables the pulse counter. Used for measuring pulses applied to a designated input pin defined. Max pulse frequency 500hz.
Inputs on A2 will not be registered as events whilst pulse counting is enabled.
Namespace: RoboTx.ApiAssembly: RoboTx.Api (in RoboTx.Api.dll) Version: 2.0.0
public void Enable(
int timeoutMs,
int triggerEdge
)
Public Sub Enable (
timeoutMs As Integer,
triggerEdge As Integer
)
member Enable :
timeoutMs : int *
triggerEdge : int -> unit
Parameters
- timeoutMs Int32
- The number of milliseconds to wait for a pulse before resetting pulse period to 0.
Must be between 250 and 10000 inclusive.
- triggerEdge Int32
- Trigger counter on either rising (1) or falling (0) edge of pulse signal.