7-10
|
ni.com
Chapter 7
Counters
Figure 7-12 illustrates this method. Another option is to measure the width of a known period
instead of a known pulse.
Figure 7-12.
High Frequency with Two Counters
Large Range of Frequencies with Two Counters
By using two counters, you can accurately measure a signal that might be high or low frequency.
This technique is called reciprocal frequency measurement. In this method, you generate a long
pulse using the signal to measure. You then measure the long pulse with a known timebase. The
M Series device can measure this long pulse more accurately than the faster input signal.
You can route the signal to measure to the Source input of Counter 0, as shown in Figure 7-13.
Assume this signal to measure has frequency F1. Configure Counter 0 to generate a single pulse
that is the width of
N
periods of the source input signal.
Figure 7-13.
Large Range of Frequencies with Two Counters
P
u
l
s
e
F1
P
u
l
s
e
F1
G
a
te
S
o
u
rce
1
2
…
N
P
u
l
s
e-Width
Me
asu
rement
T =
N
F1
Fre
qu
ency of F1 =
T
Width of
P
u
l
s
e
N
Width of P
u
l
s
e (T)
S
OURCE
OUT
COUNTER 0
S
OURCE
GATE
OUT
COUNTER 1
S
ign
a
l to
Me
asu
re (F1)
S
ign
a
l of Known
Fre
qu
ency (F2)
CTR_0_
S
OURCE
(
S
ign
a
l to Me
asu
re)
CTR_0_OUT
(CTR_1_GATE)
CTR_1_
S
OURCE
Interv
a
l
to Me
asu
re
0
1
2
3
…
N
Summary of Contents for PXI-6289
Page 1: ...PXI 6289...