Figure 7-32. duplicate count example, Example application that prevents duplicate count, Figure 7-33. duplicate count prevention example – National Instruments NI 6232 User Manual

Page 110

Advertising
background image

Chapter 7

Counters

© National Instruments Corporation

7-37

NI 6232/6233 User Manual

Figure 7-32. Duplicate Count Example

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.

Figure 7-33. Duplicate Count Prevention Example

Even if the Source pulses are long, the counter increments only once for
each Source pulse.

Gate

Source

Counter Value

Buffer

7

6

7

1

No Source edge, so no
value written to buffer.

Gate

Source

80 MHz Timebase

Counter Value

Buffer

0
7

7

6

7

0

1

Counter detects
rising Gate edge.

Counter value
increments only
one time for each
Source pulse.

Advertising
This manual is related to the following products: