
Chapter 9 | Counters |
In
You can route an internal or external periodic clock signal (with a known period) to the Source input of the counter. The counter counts the number of rising (or falling) edges occurring on the Source input between two edges of the Gate signal.
You can calculate the
Single
Single
Buffered
In buffered
The counter begins counting on the first active edge of the Gate after it is armed. The arm usually occurs between edges on the Gate input. The counter does not store a value for this incomplete
Figure
Counter Armed |
|
|
|
|
GATE |
|
|
|
|
SOURCE |
|
|
|
|
Counter Value 0 | 1 2 3 | 1 1 | 2 | 1 |
Buffer | 3 3 | 1 3 | 2 | 3 |
| 1 |
| 1 | |
|
|
|
| 2 |
Figure
Note that if you are using an external signal as the Source, at least one
Source pulse should occur between each active edge of the Gate signal.
© National Instruments Corporation |