FFT Windows
FFT Windows
AN014
Understanding
FFT Windows
Introduction The Fast Fourier Transform (FFT) is the Fourier
FFT based measurements are subject to errors from Transform of a block of time data points. It repre-
an effect known as leakage. This effect occurs when sents the frequency composition of the time signal.
the FFT is computed from of a block of data which is Figure 2 shows a 10 Hz sine waveform (top) and the
not periodic. To correct this problem appropriate win- FFT of the sine waveform (bottom). A sine wave is
dowing functions must be applied. The user must composed of one pure tone indicated by the single dis-
choose the appropriate window function for the specif- crete peak in the FFT with height of 1.0 at 10 Hz.
ic application. When windowing is not applied correct-
ly, then errors may be introduced in the FFT ampli-
tude, frequency or overall shape of the spectrum. This
application note describes the phenomenon of leak-
age, the various windowing functions and their
strengths and weaknesses, and examples are given
for various applications.
FFT Background
Most dynamic signal analyzers (Figure 1) compute
time and frequency measurements. Time measure-
ments include capturing time traces of measured sig-
2
Figure 5 shows the Hanning windowing function and Figure 8 shows a frequency response function of a beam
its FFT. The highest side lobe is -32 dB. Compare measured with an impact hammer and accelerometer
this with the Flat Top windowing function in Figure 6. with and without a window. In this case, leakage drasti-
The highest side lobe is much lower (-74), but the cally affects the overall shape of the spectrum. The
main lobe bandwidth is significantly wider. unwindowed spectrum totally obscures the first anti-res-
onance and it also caused some aplitude errors in the
spectrum peaks that correspond to the structure’s res-
onances.
3
The most common windows and their features are given below. This table can be used to
choose the best windowing function for each application.
Window Best for these Frequency Spectral Amplitude
Signal Types Resolution Leakage Accuracy
Barlett Random Good Fair Fair
Blackman Random or Poor Best Good
mixed
Flat top Sinusoids Poor Good Best
Hanning Random Good Good Fair
Hamming Random Good Fair Fair
Kaiser-Bessel Random Fair Good Good
None (boxcar) Transient & Best Poor Poor
Synchronous
Sampling
Tukey Random Good Poor Poor
Welch Random Good Good Fair
Flat Top Highest side lobe: -93dB Tukey Highest side lobe: -13 dB
4
Overlap Processing Windowing for Impact Measurements
One of the disadvantages of windowing functions is that Another type of windowing, developed especially for modal
the beginning and end of the signal is attenuated in the analysis using an impact hammer, is the exponential win-
calculation of the spectrum. This means that more aver- dow. This window function, shown in Figure 10, has two
ages must be taken to get a good statistical representa- parts, the pre-window at the beginning of the time frame,
tion of the spectrum, increasing the time to complete the and the exponential window. The pre-window includes a
measurement. Overlap processing is a feature that is hold-off period that eliminates any noise before the
available in most signal analyzers that can recover the impact. The length of this hold-off period can be specified
lost data and reduce the measurement time. This pro- by the user to coincide with the pre-trigger time reducing
cessing reduces the total measurement time by recover- the effects of noise. The exponential window applies an
ing a portion of each previous frame that otherwise is lost exponential decay that forces the response data to zero
due to the effect of the windowing function as shown in by the end of the frame resulting in a guaranteed period-
Figure 9. The top pane shows the original continuous ic signal. It should be noted that this will result in an over
input signal. Below the Input Signal are shown the over- estimate of the damping of the structure because the
lapping windowed frames. Next are the unaveraged FFTs windowing function artificially damps the signal in a short-
from each frame, and finally at the bottom is the average er time.
of the FFTs. Overlap processing is particularly effective at
reducing the measurement time for low frequency tests
(generally under 50 Hz) for which the frame acquisition
times are very long.
5
Examples Case 3. A measurement is performed on a lightly
The following examples describe three applications and damped structure using an impact hammer. A few test
the outline the typical decision making process on select- impacts show that the structure continues to vibrate
ing the appropriate windowing function. after the impact for a time of approximately 1.1 seconds.
The time record on the signal analyzer is set to 800 mil-
Case 1. A structure is excited with a mechanical shaker liseconds and therefore an exponential window is used.
using broadband random noise and an accelerometer is Figure 13 shows the time response of the structure with-
placed on the structure to identify the resonant frequen- out the window in the top frame. Note that the vibration
cies as accurately as possible. According to Table 1, has not died out at the end of the time record. The bot-
Hanning, Hamming, Tukey and Welch produce good fre- tom frame shows the results with the window applied.
quency resolution. Hanning is the most commonly used The vibrations are forced to zero at the end of the time
window function for random signals because it provides record by the exponential window.
good frequency resolution and leakage protection with
fair amplitude accuracy. Figure 11 shows a comparison
of the spectrum with and without a window. The window
reduces the leakage and provides more accurate ampli-
tude measurements for the resonant frequencies.
6
Conclusions
All FFT based measurements assume that the signal is
periodic in the time frame. When the measured signal is
not periodic then leakage occurs. Leakage results in mis-
leading information about the spectral amplitude and fre-
quency. An FFT window can be applied to reduce the
effects of leakage. There are many windows to choose
from, each with advantages for specific applications. You
must understand the effects of leakage and know the
tradeoffs and advantages of the various windowing func-
tions to accurately interpret frequency domain measure-
ments.
References
Hartmann, William M., "Signals, Sound, and Sensation,"
American Institute of Physics, New York, 1997.
www.lds-group.com