3-12
|
ni.com
Chapter 3
Counters
Figure 3-14.
Frequency Measurement Using Periods
Trade-offs
Consider the following trade-offs when determining the method of measuring frequency:
•
Accuracy vs. Update Rate
Increasing measurement duration increases the accuracy of the measurement.
Decreasing measurement duration allows the counter to update the measurement more
often. If the input frequency changes often, it may be better to take many less-accurate
measurements than a few more accurate ones.
•
Sample Clock vs. Implicit Timing
If you use a sample clock, the device returns one frequency measurement for each
sample clock.
If you use implicit timing and specify a measurement time, the device returns the
measurement after that amount of time.
If you use implicit timing and specify a number of periods to measure, the device returns
the measurement after that number of periods of the input signal. Note that the time to
return a measurement depends on the (unknown) frequency of the input signal. If the input
signal is at a low frequency, the device will take a long time to return a measurement.
•
Number of Counters
Some methods use two of the eight counters on the NI 6612; other methods use one of the
eight counters.
Frequency Measurement Methods
This section describes the frequency measurement methods supported by the NI 6612.
Sample Clock (with Averaging)
With this method, for each sample clock the counter counts the number of full periods (
T1
) of
the signal-to-measure since the previous sample clock. It also measures the duration of these full
periods by counting the number of cycles (
T2)
of the timebase.
Co
u
nt
S
ign
a
l to Me
asu
re
Co
u
nter Time
bas
e
(100 MHz)
me
asu
rement d
u
r
a
tion
=
3
period
s
1
4
3
5
6
2