Frequency, Acceleration, and Pulse Width

In addition to returning a count value for the counter channel, extended counters measure and return the following for the counter channel:
  • Instantaneous and average frequency
  • Instantaneous and average pulse width
  • Instantaneous and average acceleration
Count/Direction and Quadrature mode counters measure frequency, acceleration, and pulse width based on pulses on Input A.
Up/Down Pulses mode counters measure frequency, acceleration, and pulse width based on pulses on Input A. If there are no pulses on Input A, the counter measures frequency, acceleration, and pulse width based on pulses on Input B.
If the entire period of a pulse is detected on Input B while Input A is off, the measurements are measured on input B on the rising edge of the next pulse detected on Input B.
If the measurements are performed on input B, the measurements start being performed on Input A as soon as the leading edge of a pulse on Input A is detected.
Measured frequency and pulse width are always positive numbers. The direction of the counter, however, is determined by the direction bit.
All frequency, acceleration, and pulse width measurements are measured based on the input signal. The measurements continue even if the following occur when the measurement is taken:
  • Rollover
  • Rollunder
  • Reset
  • Load

Average Frequency, Acceleration, and Pulse Width

The calculation of average frequency, acceleration, and pulse width is configured in Module Properties → Counter → Average Over.
Calculation of Average Over Pulses and Average Over Time
Average Over
Description
Pulses
A new average value is calculated when the specified number of pulses is detected.
The number of pulses is configured in Module Properties → Counter → Pulses to Average Over.
Time
A new average value is calculated when the sampling time has elapsed and at least a pulse is detected.
The sampling time is configured in Module Properties → Counter → Time to Average Over.
TIP:
For average acceleration, use Average Over Time to help achieve a less noisy measurement value.
Average Over Pulses
Average Over Time
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal