Example Application That Works Incorrectly (Duplicate Counting) - National Instruments PXI-6238 User Manual

Isolated current input/current output devices
Table of Contents

Advertisement

Chapter 7
Counters
Gate
Source
Counter Value
Buffer
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.
The counter synchronizes or samples the Gate signal with the Source
signal, so 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
Example Application That Works Incorrectly
(Duplicate Counting)
In Figure 7-32, after the first rising edge of Gate, no Source pulses occur.
So the counter does not write the correct data to the buffer.
NI 6238/6239 User Manual
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
6
7
1
2
7
Figure 7-31. Duplicate Count Prevention Example
section.
7-36
Rising Edge
of Gate
Counter detects rising edge
of Gate on the next rising
edge of Source.
1
2
7
ni.com

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ni 6238Ni 6239Daq m series

Table of Contents