You are on page 1of 3

A Refresher throughout time.

If the repeated
time records actually look like the
original signal, no leakage will
after a fellow named Hann, in case
youre curious) looks much like a
bell-shaped curve, varying from
Course on occur. If, on the other hand, they
do not look the same, leakage will
zero on the ends to unity in the
center. Figure 3 illustrates the
Windowing occur. Applying a window function
to the data can help decrease the
effect of the Hann window.
Compare these traces to the same
effects of leakage in the frequency signal shown unwindowed in
and domain. figure 2.

Measurements If the time record contains an


integral number of cycles of a
The Hann windows good fre-
quency resolution comes at the
continuous waveform, such as a cost of poor amplitude accuracy,
In these days of digital instrumenta- sine wave, the waveform is said to however. Because the FFT acts
tion and PCs, it is easy to forget that be periodic in the time record. The like a set of parallel filters, signals
physical phenomena are analog and value of the signal at the beginning not at the center of the bandpass
that windows are not always operating of the time record is equal to the filters see some attenuation. When
systems. Windowing and digitization value at the end of the time record. you use
meet in the process of dynamic signal When the time records are placed the Hann window, a frequency
analysis. This article explains the need end to end, the start and finish falling midway between the filters
for windowing and describes the points align exactly. The time center frequency is attenuated by
advantages of common windows used record is indeed repeated over and up to 1.5 dB.
by FFT-based analyzers. over, and the Fourier integral can
be computed accurately. No The flattop window
What happens if you leakage occurs.
If accurate measurement of
dont do windows Figure 1 shows a signal that is
amplitude is important, use the
FFT analyzers transform data from periodic in the time record. flattop window (figure 4). The
the time domain to the frequency flattop provides excellent ampli-
domain by computing the fast Now, if a continuous waveform is
tude accuracy, with amplitude
Fourier transform. It+is based on the not periodic in the time record, variations reduced to less than 0.1
Fourier integral (- x(t)e-j2pft), but leakage will occur. When time
dB. But, again, youll face a
is a form that can be computed records are placed end to end, the
tradeoff. The flattop window gives
numerically. The integral requires start and finish points dont align. you excellent amplitude accuracy
that a continuous signal be integrated This is like adding an instantaneous
but gives up some frequency
over infinite time. Out here in the real step to the waveform. Because an
resolution. The skirts of the filters
world, of course, we want our results instantaneous step contains an are so wide that you lose some
in finite time. And because computers infinite number of frequencies,
ability to resolve small frequency
work with numbers, we need to these added frequencies contami-
components spaced near large
digitize the waveform, which makes it nate the computed result. The components.
discrete in time. Both of these power from the instantaneous step
changes to the signal result in errors is spread across the spectrum,
The uniform window
in the computed frequency spectrum. resulting in the leakage shown in
figure 2. The uniform window is really no
Sampling the signal at discrete times
window at all. It is sometimes
can cause aliasing (which can show
FFT analyzers use windowing to called the boxcar function
up as phantom signals on the
reduce the effect of leakage, because it looks like a boxcar, a
display). Changing the limits of
thereby improving the results in the pulse that is unity for all values of
integration from infinity to a finite
frequency domain. The various time. The uniform window
length can cause an error known as
window functions have different provides the best frequency
leakage (which appears as energy
advantages, resolution and amplitude accu-
from a particular point in the
and its important to choose the racy, but can only be used if the
spectrum being smeared up and
correct one for each measurement. measured signal is periodic in the
down across the spectrum).
The most common are the Hann, time record. This condition is
flattop, uniform, and force/response rarely met with naturally occur-
Since its impossible to measure a
windows. ring signals, but can be met in
signal for an infinite time, the
controlled testing. Because the
analyzer changes the limits of
The Hann window frequency of any applied signal
integration to the length of time it
can be known, it is possible to
takes to collect a block of samples. Use the Hann window to identify make sure that the signal is
This block of samples is called a time closely spaced frequency compo- periodic in the time record and
record. The FFT requires that the nents or to measure broadband
the frequency is centered in one
signal within the time record be noise. of the FFTs bandpass filters.
repeated over and over again The Hann function (its named Because the signal is periodic in

Realtime Update / Fall 1995 Winter 1996 / Hewlett-Packard 1


the time record, there is no leakage.
And because it is centered in the
bandpass filter, no amplitude
inaccuracy is caused by attenuation.
(The measurements in figures 1 and 2
were made with the uniform win-
dow.)

The force and


response windows
Force and response windows are
used for a specific application
computing the transfer function
of a mechanical structure using an
impulsive force excitation (see
figure 5). A hammer or other impact
device equipped with a force trans-
ducer is used to strike the structure
and an accelerometer measures the
structures response vibration.
The force transducer is connected
to one input channel of the analyzer
and the response accelerometer is
connected to the second channel
(in a simple single-input, single-output Figure 1: Signal
measurement). periodic in the
time record
The time record for the force should
include only the impact with the The sine wave in
structure. The movement of the the top trace is
periodic in the
hammer before and after striking the time record, so
structure can cause stray signals in no window (the
the time record. The force window uniform window,
(applied to the signal from the actually) is
hammer) is unity where the impact needed. The
signal is valid and zero everywhere lower trace
shows the clean
else to eliminate noise. frequency domain
representation of
The response window is applied to this signal, with
the accelerometer signal from the no noticeable
structure. This window ensures that leakage. Com-
pare this with the
the response signal decays to zero by signal in figure 2.
the end of the time record. In fact,
its sometimes called the exponential
window. Figure 2: Signal
not periodic in
Do windowsand the time record
do them right
In this case, the
Even in these quick examples, you sine wave is not
can see the effect windows have on periodic, and the
your measurements, and how bottom trace
shows what hap-
important it is to select windows that pens if no win-
match your application and your test dow is used in
goals. So take a second or two before the measure-
each measurement and think about ment. The energy
what youre trying to accomplish. spread across
the spectrum is
Selecting the right window will help called leakage.
you get the best answers possible.

2 Realtime Update / Fall 1995 Winter 1996 / Hewlett-Packard


Figure 3:
Applying the
Hann window

Here s the effect


the Hann window
has on the
nonperiodic sig-
nal from figure 2.
The window re-
duced the leak-
age considerably
and offers good
frequency resolu-
tion, at the ex-
pense of some
amplitude
accuracy.

Figure 4: Apply-
ing the flattop
window

The flattop offers


better amplitude
accuracy, but
you can see it
isn t as good as
the Hann window
at resolving
closely spaced
frequencies.

Figure 5: Apply-
ing the force and
response win-
dows

The top trace


shows the effect
of the force win-
dow; everything
after the impact
is set to zero.
The bottom trace
shows the effect
of the response
window, which
forces the signal
to decay expo-
nentially until it
reaches zero.

Realtime Update / Fall 1995 Winter 1996 / Hewlett-Packard 3

You might also like