Chapter 2
Device Overview
Example Application That Works Incorrectly (Duplicate Counting)
Example Application That Prevents Duplicate Counting
Gate
Source
80 MHz Timebase
Counter Value
Buffer
NI 660x User Manual
In Figure 2-5, after the first rising edge of Gate, no Source pulses occur.
So the counter does not write the correct data to the buffer.
Gate
Source
Counter Value
6
Buffer
Figure 2-5. Example Application That Works Incorrectly
With duplicate count prevention enabled, the counter synchronizes
both the Source and Gate signals to the maximum onboard timebase.
By synchronizing to the timebase, the counter detects edges on the Gate
even if the Source does not pulse. This enables the correct current count to
be stored in the buffer even if no Source edges occur between Gate signals.
Figure 2-6 shows an example application that prevents duplicate counting.
6
7
0
7
Figure 2-6. Example Application That Prevents Duplicate Counting
7
Counter detects
rising Gate edge.
1
0
7
2-6
No Source edge, so no
value written to buffer.
1
7
Counter value
increments only
one time for each
Source pulse.
ni.com