© National Instruments Corporation 63 NI cDAQ-9172 User Guide and Specifications
Example Application That Works Correctly (No Duplicate Counting)
Figure 43 shows an external buffered signal as the period measurement
Source.
Figure 43. Duplicate Count Prevention Example
On the first rising edge of the Gate, the current count of seven is stored.
Onthe next rising edge of the Gate, the counter stores a two because
twoSource pu lses occurred after the previous rising edge of Gate.
The counter synchronizes or samples the Gate signal with the Source
signal, which means that the counter does not detect a rising edge in the
Gate until the next Source pulse. In this example, the counter stores the
values in the buffer on the first rising Source edge after the rising edge of
Gate. The details of when exactly the counter synchronizes the Gate signal
vary depending on the synchronization mode. Synchronization modes are
described in the Synchronization Modes section.
Gate
Source
Counter Value
Buffer 2
7
7
67 12 1
Rising Edge
of Gate
Counter detects rising edge
of Gate on the next rising
edge of Source.