
Chapter 9 | Counters |
The counter increments on each rising edge of channel A. The counter decrements on each rising edge of channel B, as shown in Figure
Ch A
Ch B
Counter Value 2 | 3 | 4 | 5 | 4 | 3 | 4 |
Figure
For information about connecting counter signals, refer to the Default
Counter/Timer Pinouts section.
After the counter has been armed and an active edge occurs on the Aux input, the counter counts the number of rising (or falling) edges on the Source. The counter ignores additional edges on the Aux input.
The counter stops counting upon receiving an active edge on the Gate input.
The counter stores the count in a hardware save register.
You can configure the rising or falling edge of the Aux input to be the active edge. You can configure the rising or falling edge of the Gate input to be the active edge.
Use this type of measurement to count events or measure the time that occurs between edges on two signals. This type of measurement is sometimes referred to as start/stop trigger measurement, second gate measurement, or
Single
With single
ni.com |