Example Application That Prevents Duplicate Count - National Instruments PXI-6238 User Manual

Isolated current input/current output devices
Table of Contents

Advertisement

Gate
Source
Counter Value
Buffer

Example Application That Prevents Duplicate Count

With duplicate count prevention enabled, the counter synchronizes both the
Source and Gate signals to the 80 MHz 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, as shown in Figure 7-33.
Gate
Source
80 MHz Timebase
Counter Value
6
Buffer
Even if the Source pulses are long, the counter increments only once for
each Source pulse.
Normally, the counter value and Counter n Internal Output signals change
synchronously to the Source signal. With duplicate count prevention, the
© National Instruments Corporation
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
6
7
Figure 7-32. Duplicate Count Example
Counter detects
rising Gate edge.
7
0
7
Figure 7-33. Duplicate Count Prevention Example
7-37
Chapter 7
No Source edge, so no
value written to buffer.
1
7
Counter value
increments only
one time for each
Source pulse.
1
0
7
NI 6238/6239 User Manual
Counters

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ni 6238Ni 6239Daq m series

Table of Contents