Non-Cumulative Buffered Edge Counting; Controlling The Direction Of Counting - National Instruments PXI-6238 User Manual

Isolated current input/current output devices
Table of Contents

Advertisement

Non-Cumulative Buffered Edge Counting

Non-cumulative edge counting is similar to buffered (sample clock) edge
counting. However, the counter resets after each active edge of the Sample
Clock. You can route the Sample Clock to the Gate input of the counter.
Figure 7-5 shows an example of non-cumulative buffered edge counting.
Sample Clock
(Sample on Rising Edge)
Counter Value
Notice that the first count interval begins when the counter is armed, which
occurs before the first active edge on Gate.
Notice that if you are using an external signal as the Source, at least one
Source pulse should occur between each active edge of the Gate signal.
This condition ensures that correct values are returned by the counter. If this
condition is not met, consider using duplicate count prevention.

Controlling the Direction of Counting

In edge counting applications, the counter can count up or down. You can
configure the counter to do the following.
For information on connecting counter signals, refer to the
Terminals
© National Instruments Corporation
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
Counter
Armed
SOURCE
0
1
2
1
2
Buffer
Figure 7-5. Non-Cumulative Buffered Edge Counting
Always count up
Always count down
Count up when the Counter n B input is high; count down when it is
low
section.
7-5
Chapter 7
2
3
1
2
3
1
2
2
3
3
3
Default Counter
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