Duplicate Count Prevention; Example Application That Works Correctly (No Duplicate Counting) - National Instruments USB-621 Series User Manual

Hide thumbs Also See for USB-621 Series:
Table of Contents

Advertisement

Duplicate Count Prevention

© National Instruments Corporation
Prescaling is not available if the counter Source is one of the internal
timebases (80MHzTimebase, 20MHzTimebase, or 100kHzTimebase).
Duplicate count prevention (or synchronous counting mode) is used when
taking frequency or period measurements on USB-621x devices, which
ensures that a counter returns correct data in applications that use a slow or
non-periodic external source. Duplicate count prevention applies only to
buffered counter applications, such as measuring frequency or period. In
such buffered applications, the counter should store the number of times an
external Source pulses between rising edges on the Gate signal.
Example Application That Works Correctly
(No Duplicate Counting)
Figure 8-33 shows an external buffered signal as the period measurement
Source.
Gate
Source
6
Counter Value
Buffer
Figure 8-33. Duplicate Count Prevention Example
On the first rising edge of Gate, the current count of 7 is stored. On the next
rising edge of Gate, the counter stores a 2 since two Source pulses occurred
after the previous rising edge of Gate.
The counter synchronizes or samples the Gate signal with the Source
signal, so the counter does not detect a rising edge in Gate until the next
Source pulse. In this example, the counter stores the values in the buffer on
7
1
2
7
8-37
Chapter 8
Rising Edge
of Gate
Counter detects rising edge
of Gate on the next rising
edge of Source.
1
2
7
NI USB-621x User Manual
Counters

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Usb-6210Usb-6211Usb-6212Usb-6215Usb-6216Usb-6218

Table of Contents