National Instruments PXI-6238 User Manual page 81

Isolated current input/current output devices
Table of Contents

Advertisement

Task
Actual Frequency to Measure
Timebase Frequency
Actual Number of Timebase
Periods
Worst Case Measured Number of
Timebase Periods
Measured Frequency
Error
Error %
Table 7-2 summarizes some of the differences in methods of measuring
frequency.
© National Instruments Corporation
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com
80 MHz Timebase. Your measurement may return 1600 ±1 cycles
depending on the phase of the signal with respect to the timebase. As
your frequency becomes larger, this error of ±1 cycle becomes more
significant; Table 7-1 illustrates this point.
Table 7-1. Frequency Measurement Method 1
Equation
F1
Ft
Ft/F1
(Ft/F1) – 1
Ft F1/(Ft – F1)
[Ft F1/(Ft – F1)] – F1
[Ft/(Ft – F1)] – 1
Method 1b (measuring K periods of F1) improves the accuracy of the
measurement. A disadvantage of Method 1b is that you have to take
K + 1 measurements. These measurements take more time and
consume some of the available PCI or PXI bandwidth.
Method 2 is accurate for high frequency signals. However, the
accuracy decreases as the frequency of the signal to measure
decreases. At very low frequencies, Method 2 may be too inaccurate
for your application. Another disadvantage of Method 2 is that it
requires two counters (if you cannot provide an external signal of
known width). An advantage of Method 2 is that the measurement
completes in a known amount of time.
Method 3 measures high and low frequency signals accurately.
However, it requires two counters.
7-15
Chapter 7
Counters
Example 1
Example 2
50 kHz
5 MHz
80 MHz
80 MHz
1600
16
1599
15
50.125 kHz
5.33 MHz
125 kHz
333 kHz
0.06%
6.67%
NI 6238/6239 User Manual

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ni 6238Ni 6239Daq m series

Table of Contents