Duplicate Count Prevention; Example Application That Works Correctly (No Duplicate Counting) - National Instruments NI 6221 User Manual

Daq m series
Hide thumbs Also See for NI 6221:
Table of Contents

Advertisement

Duplicate Count Prevention

© National Instruments Corporation
Prescaling is intended to be used for frequency measurement where the
measurement is made on a continuous, repetitive signal. The prescaling
counter cannot be read; therefore, you cannot determine how many edges
have occurred since the previous rollover. Prescaling can be used for event
counting provided it is acceptable to have an error of up to seven (or one).
Prescaling can be used when the counter Source is an external signal.
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) 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 7-30 shows an external buffered signal as the period measurement
Source.
Gate
Source
Counter Value
6
Buffer
Figure 7-30. Duplicate Count Prevention Example
On the first rising edge of the Gate, the current count of 7 is stored. On the
next rising edge of the Gate, the counter stores a 2 since two Source pulses
occurred after the previous rising edge of Gate.
7
1
7
7-35
Chapter 7
Rising Edge
of Gate
Counter detects rising
edge of Gate on the next
rising edge of Source.
2
1
2
7
M Series User Manual
Counters

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents