Sei sulla pagina 1di 31

Keysight Technologies

Fundamentals of Signal Analysis Series


Understanding Dynamic Signal Analysis

Application Note
Introduction

This application note is a primer for those who are unfamiliar with the class of
analyzers we call dynamic signal analyzers. These instruments are particularly
appropriate for the analysis of signals in the range of a few millihertz to about
a hundred kilohertz.

In this note, we avoid using rigorous mathematics and instead depend on


heuristic arguments. We have found in over a decade of teaching this material
that such arguments lead to a better understanding of the basic processes
involved in dynamic signal analysis. Equally important, this heuristic instruction
leads to better instrument operators who can intelligently use these analyzers
to solve complicated measurement problems with accuracy and ease.*

In the application note, Introduction to Time, Frequency and Modal Domains,


literature number 5998-6765EN we introduced the concepts of the time,
frequency and modal domains and the types of instrumentation available for
making measurements in each domain. We discussed the advantages and
disadvantages of each generic instrument type and noted that the dynamic
signal analyzer has the speed advantages of parallel-ilter analyzers without
their low-resolution limitations. In addition, it is the only type of analyzer that
works in all three domains.

In this application note, we will develop a fuller understanding of dynamic


signal analyzers. We begin by presenting the properties of the Fast Fourier
Transform (FFT), upon which dynamic signal analyzers are based. We then
show how these FFT properties cause some undesirable characteristics in
spectrum analysis like aliasing and leakage. Having demonstrated a potential
dificulty with the FFT, we then show what solutions are used to make
practical dynamic signal analyzers. Developing this basic knowledge of
FFT characteristics makes it simple to get good results with a dynamic
signal analyzer in a wide range of measurement problems.

* A more rigorous mathematical justiication for the


arguments developed in the main text can be found in
Keysight Application Note — The Fourier Transform:
A Mathematical Background (Appendix A in 5952-8898E)
Table of Contents

Introduction . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2
Section 1: FFT Properties . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4
Section 2: Sampling and Digitizing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8
Section 3: Aliasing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 9
Section 4: Band-Selectable Analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 13
Section 5: Windowing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14
Section 6: Network Stimulus . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 20
Section 7: Averaging . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23
Section 8: Real-Time Bandwidth . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 25
Section 9: Overlap Processing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 28
Summary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Bibliography. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 29
Glossary . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 30

3
Section 1: FFT Properties

The Fast Fourier Transform (FFT) is


an algorithm* for transforming data a) Continuous

Amplitude
input
from the time domain to the frequency signal
domain. Since this is exactly what
we want a spectrum analyzer to do,
it would seem easy to implement a
dynamic signal analyzer based on the Time
FFT. However, we will see that there
are many factors that complicate this
b) Samples

Amplitude
seemingly straightforward task. of input
signal
First, because of the many calculations
involved in transforming domains, the
transform must be performed on a Time
computer if the results are to be sufi- Transform to
ciently accurate. Fortunately, with the c) Samples

Amplitude
of the
advent of microprocessors, it is easy
frequency
and inexpensive to incorporate all the domain
needed computing power in a small (called
lines)
instrument package. Note, however,
that we cannot now transform to the Frequency
frequency domain in a continuous
manner, but instead must sample and
Figure 1.1. The FFT samples in both the time and frequency domains
digitize the time domain input. This
means that our algorithm transforms
digitized samples from the time
domain to samples in the frequency
Amplitude

domain as shown in Figure 1.1.**

Because we have sampled, we no


longer have an exact representation
Time
in either domain. However, a sampled
representation can be as close to ideal
as we desire by placing our samples
closer together. Later, we will consider
Figure 1.2. A time record is N equally spaced samples of the input.
what sample spacing is necessary to
guarantee accurate results.

* An algorithm is any special mathematical


method of solving a certain kind of problem;
e.g., the technique you use to balance your
checkbook.
** To reduce confusion about which domain
we are in, samples in the frequency domain
are called lines.

4
Time Records For instance, because the FFT trans- frequency domain. With a dynamic
forms the entire time record block as a signal analyzer we do not get a valid
A time record is deined to be N total, there cannot be valid frequency result until a full time record has been
consecutive, equally spaced samples domain results until a complete time gathered. Then rapid changes in the
of the input. Because it makes our record has been gathered. However, spectra can be seen.
transform algorithm simpler and much once completed, the oldest sample
faster, N is restricted to be a multiple could be discarded, all the samples It should be noted here that a new
of 2, for instance 1024. shifted in the time record, and a new spectrum every sample is usually too
sample added to the end of the time much information, too fast. This would
As shown in Figure 1.3, this time record as in Figure 1.4. Thus, once the often give you thousands of trans-
record is transformed as a complete time record is initially illed, we have a forms per second. In later sections
block into a complete block of fre- new time record at every time domain on real-time bandwidth and overlap
quency lines. All the samples of the sample and therefore could have new processing, we discuss just how fast
time record are needed to compute valid results in the frequency domain a dynamic signal analyzer should
each and every line in the frequency at every time domain sample. transform.
domain. This is in contrast to what one
might expect, namely that a single When a signal is irst applied to a
time domain sample transforms to parallel-ilter analyzer, we must wait
exactly one frequency domain line. for the ilters to respond, then we
Under-standing this block processing can see very rapid changes in the
property of the FFT is crucial to
understanding many of the properties
of the dynamic signal analyzer.
Amplitude
Amplitude

Time Time
Time record of N samples
Amplitude

FFT

Time
Amplitude

Frequency New time record


one sample later

Figure 1.3. The FFT works on blocks of data. Figure 1.4. A new time record every sample after the time record is illed

5
How Many Lines are There?
We stated earlier that the time

Amplitude
record has N equally spaced samples.
Another property of the FFT is that it
transforms these time domain samples

Amplitude
to N/2 equally spaced lines in the
frequency domain. We only get half as Frequency e ncy
Frequ
many lines because each frequency
line actually contains two pieces of
information, amplitude and phase. The
Tim
meaning of this is most easily seen if e

Amplitude
we look again at the relationship
between the time and frequency
domain.

Time
Figure 1.5 shows a three-dimensional
graph of this relationship. Up to now,
we have implied that the amplitude Figure 1.5. The relationship between the time and frequency domains
and frequency of the sine waves
contains all the information necessary
to reconstruct the input. But it should
be obvious that the phase of each of
these sine waves is important too.
For instance, in Figure 1.6, we have
shifted the phase of the higher fre-
quency sine wave components of this
signal. The result is a severe distortion
of the original waveform.

We have not discussed the phase


information contained in the spectrum
of signals until now because none of
the traditional spectrum analyzers
are capable of measuring phase.
Figure 1.6. Phase of frequency domain components is important.
In Keysight Application Note "The
Fundamentals of Signal Analysis" —
Chapter 4: Using Dynamic Signal
Analyzers, you will see that phase
contains valuable information in
determining the cause of performance
problems.

6
What is the Spacing of a) Period of input signal equals time record.
the Lines? Lowest resolvable frequency.

Amplitude
Now that we know that we have N/2
equally spaced lines in the frequency
domain, what is their spacing? The
lowest frequency that we can resolve
with our FFT spectrum analyzer must
Time
be based on the length of the time
record. We can see in Figure 1.7 that
if the period of the input signal is
longer than the time record, we have
no way of determining the period (or Time record
frequency, its reciprocal). Therefore, b) Period of input signal longer than the time record.
the lowest frequency line of the FFT Frequency of the input signal is unknown.
must occur at frequency equal to the
Amplitude

reciprocal of the time record length.

In addition, there is a frequency line


at zero Hertz, dc. This is merely the
average of the input over the time Time
record. It is rarely used in spectrum ? ?

or network analysis. But, we have


now established the spacing between
these two lines and hence every line; Time record
it is the reciprocal of the time record.
Figure 1.7. Lowest frequency resolvable by the FFT

What is the Frequency Range


of the FFT?
We can now quickly determine that the
highest frequency we can measure is:
0 1
___ 2
___ N ___
__ 1
N
( 1
fmax = —— ———————————————————
2 Period of Time Record ) TR TR 2 TR

Figure 1.8. Frequencies of all the spectral lines of the FFT


because we have N/2 lines spaced
by the reciprocal of the time record
starting at zero Hertz.*

Since we would like to adjust the


frequency range of our measurement, Short time record Wide line spacing

we must vary fmax. The number of time


samples N is ixed by the implementa-
tion of the FFT algorithm. Therefore, we
must vary the period of the time record
to vary fmax. To do this, we must vary Long time record Narrow line spacing
the sample rate so that we always have
N samples in our variable time record Figure 1.9. Frequency range of dynamic signal analyzers is determined by
period. This is illustrated in Figure 1.9. sample rate.
Notice that to cover higher frequencies,
we must sample faster. * The usefulness of this frequency range
can be limited by the problem of aliasing.
Aliasing is discussed in Section 3.

7
Section 2:* Sampling and Digitizing

Recall that the input to our dynamic


signal analyzer is a continuous analog
Input Sampler FFT
voltage. This voltage might be from Display
voltage & ADC processor
an electronic circuit or it could be the
output of a transducer and be propor-
tional to current, power, pressure, Figure 2.1. Block diagram of a dynamic signal analyzer
acceleration or any number of other
inputs. Recall also that the FFT
requires digitized samples of the input
for its digital calculations. Therefore,

Amplitude
we need to add a sampler and analog-
to-digital converter (ADC) to our Amplitude accuracy
FFT processor to make a spectrum
analyzer. We show this basic block Timing errors
diagram in Figure 2.1.
Time

For the analyzer to have the high


Figure 2.2. The sampler and ADC must not introduce errors.
accuracy needed for many measure-
ments, the sampler and ADC must be
quite good. The sampler must sample
the input at exactly the correct time A good digital multimeter (DMM) will
and must accurately hold the input typically exceed these speciications,
voltage measured at this time until but the ADC for a dynamic signal ana-
the ADC has inished its conversion. lyzer must be much faster than typical
The ADC must have high resolution and fast DMMs. A fast DMM might take
linearity. For 70 dB of dynamic range a thousand readings per second, but
the ADC must have at least 12 bits in a typical dynamic signal analyzer
of resolution and one half least- the ADC must take at least a hundred
signiicant-bit linearity. thousand readings per second.

* You can skip this section and the next if you


are not interested in the internal operation
of a dynamic signal analyzer. However, if
you specify the purchase of dynamic signal
analyzers, you are especially encouraged to
read these sections. The basic knowledge
you gain from these sections can insure
you specify the best analyzer for your
requirements.

8
Section 3: Aliasing

The reason an FFT spectrum analyzer


needs so many samples per second
is to avoid a problem called aliasing. Thermocouple Digital Printer
voltmeter
Aliasing is a potential problem in any
sampled data system. It is often Reference
junction
overlooked, sometimes with
disastrous results.
Figure 3.1. A simple sampled data system

A Simple Data Logging


Example of Aliasing
Let us look at a simple data logging
Time
example to see what aliasing is and
how it can be avoided. Consider the Time
example for recording temperature
shown in Figure 3.1. A thermocouple is Figure 3.2. Plot of temperature variation of a room

connected to a digital voltmeter that


is in turn connected to a printer. The Actual
system is set up to print the tem- temp
perature every second. What would
we expect for an output? If we were
measuring the temperature of a room Time
that only changes slowly, we would Sampled
expect every reading to be almost the temp
same as the previous one. In fact, we
are sampling much more often than
necessary to determine the tem-
perature of the room with time. If we Printed
results
plotted the results of this “thought
experiment,” we would expect to see
results like Figure 3.2.

Figure 3.3. Plot of temperature variation of a small part


The Case of the Missing
Temperature
If, on the other hand, we were measur-
ing the temperature of a small part
that could heat and cool rapidly, what
would the output be? Suppose that
the temperature of our part cycled
exactly once every second. As shown
in Figure 3.3, our printout says that
the temperature never changes.

What has happened is that we have


sampled at exactly the same point on
our periodic temperature cycle with
every sample. We have not sampled
fast enough to see the temperature
luctuations.

9
Aliasing in the Frequency This minimum sample rate require- It certainly would not be enough to
ment is known as the Nyquist Criterion. give a high-quality time display. Yet
Domain
It is easy to see in the time domain we saw in Figure 3.5 that meeting the
This completely erroneous result is that a sampling frequency exactly Nyquist Criterion of a sample rate
due to a phenomena called aliasing.* twice the input frequency would not greater than twice the maximum input
Aliasing is shown in the frequency always be enough. It is less obvious frequency is suficient to avoid aliasing
domain in Figure 3.4. Two signals are that slightly more than two samples in and preserve all the information in the
said to alias if the difference of their each period is suficient information. input signal.
frequencies falls in the frequency
range of interest. This difference
Range of
frequency is always generated in the analyzer
process of sampling. In Figure 3.4, the
input frequency is slightly higher than
the sampling frequency so a low fre-
quency alias term is generated. If the
input frequency equals the sampling
frequency as in our small part example,
then the alias term falls at DC (zero
Hertz) and we get the constant output fin - fs fs fin Frequency
that we saw above. Alias Sampling Input
frequency frequency frequency
Aliasing is not always bad. It is called
Figure 3.4. The problem of aliasing viewed in the frequency domain
mixing or heterodyning in analog
electronics, and is commonly used for
Range of
tuning household radios and televisions
analyzer
as well as many other communication
products. However, in the case of the
missing temperature variation of our
small part, we deinitely have a prob-
Input Alias
lem. How can we guarantee that we signals signals
will avoid this problem in a
measurement situation?
Frequency
Figure 3.5 shows that if we sample at fmax fs - fmax fs
greater than twice the highest fre-
quency of our input, the alias products Figure 3.5. A frequency domain view of how to avoid aliasing - sample at greater than twice the
highest input frequency
will not fall within the frequency range
of our input. Therefore, a ilter (or our
Amplitude

FFT processor, which acts like a ilter)


after the sampler will remove the alias
products while passing the desired in-
put signals if the sample rate is greater
than twice the highest frequency of the
input. If the sample rate is lower, the
fsample = 2 fmax Time
alias products will fall in the frequency
Amplitude

range of the input and no amount of


iltering will be able to remove them
from the signal.

fsample = 3 fmax

* Aliasing is also known as fold-over or mixing. Figure 3.6. Nyquist Criterion in the time domain

10
The Need for an Anti-Alias a) “Ideal” anti-aliasing filter
Filter
Unfortunately, the real world rarely
restricts the frequency range of
its signals. In the case of the room
temperature, we can be reasonably
sure of the maximum rate at which the
Frequency
temperature could change, but we still
b) Real anti-aliasing filter
can not rule out stray signals. Signals
induced at the power-line frequency Transition band
or even local radio stations could alias
into the desired frequency range. The
only way to be really certain that the
input frequency range is limited is
to add a low pass ilter before the
sampler and ADC. Such a ilter is Frequency
called an anti-alias ilter.
Figure 3.7. Actual anti-alias ilters require higher sampling frequencies.

An ideal anti-alias ilter would look


like Figure 3.7a. It would pass all the The Need for More Each of these ilters must have very
desired input frequencies with no good performance. Their transition
Than One Anti-Alias Filter
loss and completely reject any higher bands should be as narrow as pos-
frequencies which otherwise could You may recall from Section 1 that sible, so that as many lines as possible
alias into the input frequency range. due to the properties of the FFT, we are free from alias products. Addition-
However, it is not even theoretically must vary the sample rate to vary the ally, in a two-channel analyzer, each
possible to build such a ilter, much frequency span of our analyzer. To ilter pair must be well matched for
less practical. Instead, all real ilters reduce the frequency span, we must accurate network analysis measure-
look something like Figure 3.7b with a reduce the sample rate. From our ments. These two points, unfortu-
gradual roll off and inite rejection of considerations of aliasing, we now nately, mean that each of the ilters
undesired signals. Large input signals realize that we must also reduce the is expensive. Taken together they
that are not well attenuated in the anti-alias ilter frequency by the same can add signiicantly to the price of
transition band could still alias into amount. the analyzer. To cut expenses, some
the desired input frequency range. To manufacturers don’t use a low enough
avoid this, the sampling frequency is Since a dynamic signal analyzer is a frequency anti-alias ilter on the
raised to twice the highest frequency very versatile instrument used in a lowest-frequency spans. (The lowest
of the transition band. This guarantees wide range of applications, it is desir- frequency ilters cost the most of all.)
that any signals that could alias are able to have a wide range of frequency But as we have seen, this can lead to
well attentuated by the stop band of spans available. Typical instruments problems like our “case of the missing
the ilter. Typically, this means that the have a minimum span of 1 Hertz and temperature.”
sample rate is now two-and-a-half to a maximum of tens to hundreds of
four times the maximum desired input kilohertz. This four-decade range typi-
frequency. Therefore, a 25 kHz FFT cally needs to be covered with at least
spectrum analyzer can require an three spans per decade. This would
ADC that runs at 100 kHz.* mean at least twelve anti-alias ilters
would be required for each channel.

* Unfortunately, because the spacing of the


FFT lines depends on the sample rate,
increasing the sample rate decreases the
number of lines that are in the desired fre-
quency range. Therefore, to avoid aliasing
problems dynamic signal analyzers have
only .25N to .4N lines instead of N/2 lines.

11
Digital Filtering
LPF
Fortunately, there is an alternative
that is cheaper, and when used in
conjunction with a single analog anti-
LPF ADC FFT
alias ilter, always provides aliasing
protection. It is called “digital iltering,”
because it ilters the input signal after Variable
we have sampled and digitized it. sample rate
To see how this works, let us look at LPF
Figure 3.8.
Digital
In the analog case we already dis- LPF ADC FFT
filter
cussed, we had to use a new ilter
every time we changed the sample
Fixed Variable
rate of the analog-to-digital converter sample rate sample rate
(ADC). For digital iltering, the ADC
sample rate is left constant at the Figure 3.8. Block diagrams of analog and digital iltering
rate needed for the highest-frequency
span of the analyzer. This means we
need not change our anti-alias ilter.
To get the reduced sample rate and
iltering we need for the narrower
frequency spans, we follow the ADC
with a digital ilter.

This digital ilter is known as a


decimating ilter. It not only ilters the
digital representation of the signal to
the desired frequency span, it also
reduces the sample rate at its output
to the rate needed for that frequency
span. Because this ilter is digital,
there are no manufacturing variations,
aging or drift in the ilter. Therefore, in
a two-channel analyzer, the ilters in
each channel are identical. It is easy to
design a single digital ilter to work on
many frequency spans so the need for
multiple ilters per channel is avoided.
All these factors taken together mean
that digital iltering is much less
expensive than analog anti-aliasing
iltering.

12
Section 4: Band-Selectable Analysis

Suppose we need to measure a small


FFT filter spacing
signal that is very close in frequency
to a large one. We might be measuring
the power-line side-bands (50 or 60 Hz)
on a 20 kHz oscillator. Or we might
want to distinguish between the stator
vibration and the shaft imbalance in
the spectrum of a motor.*
0 Hz Fmax
Recall from our discussion of the
Band selectable analysis
properties of the Fast Fourier Transform
that it is equivalent to a set of ilters,
starting at zero Hertz, equally spaced
up to some maximum frequency.
Therefore, our frequency resolution
is limited to the maximum frequency
divided by the number of ilters.

fmin fmax
To just resolve the 60 Hz sidebands
on a 20 kHz oscillator signal would Figure 4.1. High-resolution measurements with band-selectable analysis
require 333 lines (or ilters) of the FFT.
Two or three times more lines would
be required to accurately measure the Anti-alias Sampler Digital
FFT
sidebands. But typical dynamic signal LPF & ADC filter
analyzers only have 200 to 400 lines,
not enough for accurate measure-
Cosine Display
ments. To increase the number of lines (digital)
would greatly increase the cost of the
analyzer. If we chose to pay the extra Figure 4.2. Analyzer block diagram
cost, we would still have trouble see-
ing the results. With a 4-inch (10 cm)
screen, the sidebands would be only spectrum at once with low resolution, The primary difference between the
0.01 inch (.25 mm) from the carrier. as well as the ability to look at what implementation of BSA in dynamic
interests us with much higher signal analyzers and heterodyne
A better way to solve this problem resolution. radios is shown in Figure 4.2. In a
is to concentrate the ilters into the radio, the sine wave used for mixing is
frequency range of interest as in This capability of increased resolution an analog voltage. In a dynamic signal
Figure 4.1. If we select the minimum is called band-selectable analysis analyzer, the mixing is done after the
frequency as well as the maximum fre- (BSA).** It is done by mixing or hetero- input has been digitized, so the “sine
quency of our ilters we can “zoom in” dyning the input signal down into the wave” is a series of digital numbers
for a high resolution close-up shot of range of the FFT span selected. This into a digital multiplier. This means
our frequency spectrum. We now have technique, familiar to electronic engi- that the mixing will be done with a
the capability of looking at the entire neers, is the process by which radios very accurate and stable digital signal
and televisions tune in stations. so our high-resolution display will
likewise be very stable and accurate.

* The shaft of an ac induction motor always


runs at a rate slightly lower than a multiple
of the driven frequency, an effect called
slippage.
** Also sometimes called “zoom.”

13
Section 5: Windowing

The Need for Windowing


a) Actual input
There is another property of the Fast
Fourier Transform that affects its use in
frequency domain analysis. We recall
b) Time record
that the FFT computes the frequency
spectrum from a block of samples
of the input called a time record. In
addition, the FFT algorithm is based c) Assumed input

upon the assumption that this time


record is repeated throughout time,
as illustrated in Figure 5.1.

This does not cause a problem with Figure 5.1. FFT assumption — time record repeated throughout all time

the transient case shown. But what


happens if we are measuring a con- a) Actual input
tinuous signal like a sine wave? If the
time record contains an integral
number of cycles of the input sine
wave, then this assumption exactly
matches the actual input waveform as
b) Time record
shown in Figure 5.2. In this case, the (integral number
input waveform is said to be periodic of cylcles in
time record)
in the time record.

Figure 5.3 demonstrates the dificulty c) Assumed input


(matches actual
with this assumption when the input is
input)
not periodic in the time record. The FFT
algorithm is computed on the basis
of the highly distorted waveform in
Figure 5.3c. We know from Chapter 2
that the actual sine wave input has a Figure 5.2. Input signal periodic in time record
frequency spectrum of single line. The
spectrum of the input assumed by a) Actual input
the FFT in Figure 5.3c should be very
different. Since sharp phenomena
in one domain are spread out in the
other domain, we would expect the
spectrum of our sine wave to be spread b) Time record
out through the frequency domain.

c) Assumed input

Figure 5.3. Input signal not periodic in time record

14
In Figure 5.4 we see in an actual a) b)
measurement that our expectations are
correct. In Figures 5.4a and b, we see
a sine wave that is periodic in the time
record. Its frequency spectrum is a
single line whose width is determined
only by the resolution of our dynamic
signal analyzer. On the other hand,
Figures 5.4c and d show a sine wave
that is not periodic in the time record.
Its power has been spread throughout
a) and b) Sine wave periodic in time record
the spectrum as we predicted.

This smearing of energy through-out c) d)


the frequency domains is a phenomena
known as leakage. We are seeing en-
ergy leak out of one resolution line of
the FFT into all the other lines.

It is important to realize that leakage


is due to the fact that we have taken
a inite time record. For a sine wave
to have a single line spectrum, it must
exist for all time, from minus ininity
c) and d) Sine wave not periodic in time record
to plus ininity. If we were to have an
ininite time record, the FFT would Figure 5.4. Actual FFT results
compute the correct single line spec-
trum exactly. However, since we are
not willing to wait forever to measure
its spectrum, we only look at a inite
time record of the sine wave. This can
cause leakage if the continuous input
is not periodic in the time record.

It is obvious from Figure 5.4 that the


problem of leakage is severe enough
to entirely mask small signals close
to our sine waves. As such, the FFT
would not be a very useful spectrum
analyzer. The solution to this problem
is known as windowing. The problems
of leakage and how to solve them with
windowing can be the most confusing
concepts of dynamic signal analysis.
Therefore, we will now carefully
develop the problem and its solution
in several representative cases.

15
What is Windowing?
a) Actual input
In Figure 5.5 we have again reproduced
the assumed input wave form of a
sine wave that is not periodic in the
time record. Notice that most of the
problem seems to be at the edges of
the time record; the center is a good Time
sine wave. If the FFT could be made record
b) Assumed input
to ignore the ends and concentrate
on the middle of the time record, we
would expect to get much closer to
the correct single-line spectrum in the
frequency domain.

If we multiply our time record by a


c) Windowed function
function that is zero at the ends of the
time record and large in the middle,
we would concentrate the FFT on the
middle of the time record. One such d) Windowed input
function is shown in Figure 5.5c. Such
functions are called window functions
because they force us to look at data
through a narrow window.

Figure 5.6 shows us the vast improve-


ment we get by windowing data that Figure 5.5. The effect of windowing in the time domain
is not periodic in the time record.
However, it is important to realize that
we have tampered with the input data
and cannot expect perfect results.
The FFT assumes the input looks like
Figure 5.5d, something like an ampli-
tude-modulated sine wave. This has a
frequency spectrum which is closer to
the correct single line of the input sine
wave than Figure 5.5b, but it still is not
correct. Figure 5.7 demonstrates that
the windowed data does not have as a) Sine wave not periodic in time record b) FFT results with no window function
narrow a spectrum as an unwindowed
function which is periodic in the time
record.

c) FFT results with a window function


Figure 5.6. Leakage reduction with windowing

16
The Hanning Window
Any number of functions can be used
to window the data, but the most
common one is called Hanning. We
actually used the Hanning window in
Figure 5.6 as our example of leakage
reduction with windowing. The
Hanning window is also commonly
used when measuring random noise.
a) Leakage-free measurement — input periodic b) Windowed measurement — input not periodic
The Uniform Window* in time record in time record

Figure 5.7. Windowing reduces leakage but does not eliminate it.
We have seen that the Hanning window
does an acceptably good job on our
sine wave examples, both periodic and a) Transient input
non-periodic in the time record. If this
is true, why should we want any other
windows?
Time
Suppose that instead of wanting the record
frequency spectrum of a continuous
signal, we would like the spectrum of
a transient event. A typical transient is b) Hanning window
shown in Figure 5.8a. If we multiplied
it by the window function in Figure
5.8b we would get the highly distorted
signal shown in Figure 5.8c. The c) Windowed transient
frequency spectrum of an actual tran-
sient with and without the Hanning
window is shown in Figure 5.9. The
Figure 5.8. Windowing loses information from transient events.
Hanning window has taken our
transient, which naturally has energy
spread widely through the frequency
domain and made it look more like a
sine wave.

Therefore, we can see that for


transients we do not want to use the
Hanning window. We would like to use
all the data in the time record equally
or uniformly. Hence we will use a
uniform window which weights all a) Unwindowed transients b) Hanning windowed transients
of the time record uniformly.
Figure 5.9. Spectrums of transients

The case we made for the uniform


window by looking at transients can windowing to force the input to be because it occurs completely within
be generalized. Notice that our tran- zero at the ends of the time record. the time record is called a self-
sient has the property that it is zero In this case, there is no need for windowing function. Self-windowing
at the beginning and end of the time windowing the input. Any function like functions generate no leakage in the
record. Remember that we introduced this which does not require a window FFT and so need no window.

* The uniform window is sometimes referred


to as a “rectangular window.”

17
There are many examples of self- The Flat-top Window Otherwise, the ilter shape will
windowing functions, some of which attenuate the component by up to
are shown in Figure 5.10. Impacts, We have shown that we need a 1.5 dB (16 percent) when it falls
impulses, shock responses, sine uniform window for analyzing self- midway between the ilters.
bursts, noise bursts, chirp bursts and windowing functions like transients.
pseudo-random noise can all be made In addition, we need a Hanning This error is unacceptably large if we
to be self-windowing. Self-windowing window for measuring noise and are trying to measure a signal’s am-
functions are often used as the ex- periodic signals like sine waves. plitude accurately. The solution is to
citation in measuring the frequency choose a window function which gives
response of networks, particularly We now need to introduce a third the ilter a latter passband. Such a
if the network has lightly-damped window function, the flat-top window, lat-top passband shape is shown in
resonances (high Q). This is because to avoid a subtle effect of the Hanning Figure 5.12. The amplitude error from
the self-windowing functions gener- window. To understand this effect, we this window function does not exceed
ate no leakage in the FFT. Recall that need to look at the Hanning window 0.1 dB (1%), a 1.4 dB improvement.
even with the Hanning window, some in the frequency domain. We recall
leakage was present when the signal that the FFT acts like a set of parallel The accuracy improvement does
was not periodic in the time record. ilters. Figure 5.11 shows the shape of not come without its price, however.
This means that without a self-win- those ilters when the Hanning Figure 5.13 shows that we have lat-
dowing excitation, energy could leak window is used. Notice that the tened the top of the passband at the
from a lightly damped resonance into Hanning function gives the ilter a very expense of widening the skirts of the
adjacent lines (ilters). The resulting rounded top. If a component of the ilter. We therefore lose some ability
spectrum would show greater input signal is centered in the ilter it to resolve a small component, closely
damping than actually exists.* will be measured accurately.**

Impulse Shock response

1.5 dB

Sine burst Chip burst

Figure 5.11. Hanning passband shapes

0.1 dB

Noise burst

Figure 5.10. Self-windowing function examples Figure 5.12. Flat-top passband shapes

Flat top

Hanning

* There is another way to avoid this problem


using band-selectable analysis. We illustrate
this in Keysight Application Note 1405-3.
** It will, in fact, be periodic in the time record. Figure 5.13. Reduced resolution of the lat-top window

18
spaced to a large one. Some dynamic the analyzer. To guarantee that the Passband Shapes or Window
signal analyzers offer both Hanning response does go to zero by the end
Functions?
and lat-top window functions so that of the time record, an exponential-
the operator can choose between weighted window called a response In the proceeding discussion we
increased accuracy or improved window is sometimes added. Figure sometimes talked about window
frequency resolution. 5.14 shows a response window acting functions in the time domain. At other
on the response of a lightly damped times we talked about the ilter pass-
Other Window Functions structure which did not fully decay band shape in the frequency domain
by the end of the time record. Notice caused by these windows. We change
Many other window functions are that unlike the Hanning window, the our perspective freely to whichever
possible but the three listed above are response window is not zero at both domain yields the simplest explana-
by far the most common for general ends of the time record. We know tion. Likewise, some dynamic signal
measurements. For special measure- that the response of the structure will analyzers call the uniform, Hanning
ment situations other groups of win- be zero at the beginning of the time and lat-top functions “windows” and
dow functions may be useful. We record (before the hammer blow) so other analyzers call those functions
will discuss two windows that are there is no need for the window func- “pass-band shapes.” Use whichever
particularly useful when doing tion to be zero there. In addition, most terminology is easier for the problem
network analysis on mechanical of the information about the structural at hand, as they are completely
structures by impact testing. response is contained at the beginning interchangeable, just as the time and
of the time record so we make sure frequency domains are completely
The Force and Response that this is weighted most heavily by equivalent.
Windows our response window function.

A hammer equipped with a force The time record of the exciting force
transducer is commonly used to should be just the impact with the
stimulate a structure for response structure. However, movement of the
measurements. Typically the force hammer before and after hitting the
input is connected to one channel of structure can cause stray signals in
the analyzer and the response of the the time record. One way to avoid
structure from another transducer this is to use a force window shown
is connected to the second channel. in Figure 5.15. The force window is
This force impact is obviously a self- unity where the impact data is valid
windowing function. The response of and zero everywhere else so that the
the structure is also self-windowing analyzer does not measure any stray
if it dies out within the time record of noise that might be present.

a) Transient does not a) Impact time record


die out in time record with stray signals

b) Force window
b) Response window
(exponential)
c) Windowed impact
(stray signals
eliminated)

c) Windowed response Figure 5.15. Using the force window


dies out in time record

Figure 5.14. Using the response window

19
Section 6: Network Stimulus

We can measure the frequency


response at one frequency by stimu-
lating the network with a single sine Stimulus
wave and measuring the gain and
phase shift at that frequency. The
frequency of the stimulus is then
changed and the measurement Frequency
repeated until all desired frequencies
have been measured. Every time the
frequency is changed, the network re- Analyzer
sponse must settle to its steady-state
value before a new measurement can
be taken, making this measurement
process a slow task.
Frequency
Many network analyzers operate in
this manner and we can make the Figure 6.1. Frequency response measurements with a sine wave stimulus
measurement this way with a two-
channel dynamic signal analyzer. We
set the sine wave source to the center
Noise as a Stimulus From the names used for this source it
is apparent that it acts somewhat like
of the irst ilter as in Figure 6.1. The A single sine wave stimulus does not a true noise generator, except that it
analyzer then measures the gain and take advantage of the possible speed has periodicity. If we add together a
phase of the network at this frequency the parallel ilters of a dynamic signal large number of sine waves, the result
while the rest of the analyzer’s ilters analyzer provide. If we had a source is very much like white noise. A good
measure only noise. We then increase that put out multiple sine waves, each analogy is the sound of rain. A single
the source frequency to the next ilter one centered in a ilter, then we could drop of water makes a quite distinc-
center, wait for the network to settle measure the frequency response at tive splashing sound, but a rain storm
and then measure the gain and phase. all frequencies at one time. Such a sounds like white noise. However, if
We continue this procedure until we source, shown in Figure 6.2, acts like we add together a large number of
have measured the gain and phase of hundreds of sine wave generators con- sine waves, our noise-like signal will
the network at all the frequencies of nected together. Although this sounds periodically repeat its sequence.
the ilters in our analyzer. very expensive, just such a source Hence, the name periodic random
can be easily generated digitally. It noise (PRN) source.
This procedure would, within experi- is called a pseudo-random noise or
mental error, give us the same results periodic random noise source.
as we would get with any of the
network analyzers described in
Keysight Application Note, with any
network, linear or nonlinear. Stimulus

Frequency

Analyzer

Frequency

Figure 6.2. Pseudo-random noise as a stimulus

20
a) Intermodulation distortion (IM)

Stimulus ∆f

f1 - ∆f f1 f2 f2 - ∆f

Frequency
∆f PRN
stimulus

b) IM with Distortion
Analyzer periodic noise products

Non-linear
output

Frequency
Figure 6.3. Random noise as a stimulus Figure 6.4. Pseudo-random noise distortion

A truly random noise source has a


spectrum shown in Figure 6.3. It is
apparent that a random noise source
would also stimulate all the ilters at
one time and so could be used as a
network stimulus. Which is a better
stimulus? The answer depends upon
the measurement situation.

Linear Network Analysis


If the network is reasonably linear, a) Pseudo-random noise stimulus b) Random noise stimulus

PRN and random noise both give the Figure 6.5. Nonlinear transfer function
same results as the swept-sine test
of other analyzers. But PRN gives the Non-Linear Network Analysis every time record, this noisy-looking
frequency response much faster. PRN trace never changes and will not
If the network is severely non-linear, average to the desired frequency
can be used to measure the frequency
the situation is quite different. In this response.
response in a single time record. Be-
case, PRN is a very poor test signal
cause the random source is true noise,
and random noise is much better. To With random noise, the distortion
it must be averaged for several time
see why, let us look at just two of the components are also random and will
records before an accurate frequency
sine waves that compose the PRN average out. Therefore, the frequency
response can be determined. There-
source. We see in Figure 6.4 that if response does not include the distor-
fore, PRN is the best stimulus to use
two sine waves are put through a non- tion and we get the more reasonable
with fairly linear networks because it
linear network, distortion products will results shown in Figure 6.5b.
gives the fastest results.*
be generated equally spaced from the
signals.** Unfortunately, these prod- This points out a fundamental problem
ucts will fall exactly on the frequencies with measuring non-linear networks;
of the other sine waves in the PRN. the frequency response is not a property
* There is another reason why PRN is a
So the distortion products add to the of the network alone, it also depends on
better test signal than random or linear output and therefore interfere with the stimulus. Each stimulus, swept-sine,
networks. Recall from the last section the measurement of the frequency
that PRN is self-windowing. This means PRN and random noise will, in general,
that unlike random noise, pseudo-random
response. Figure 6.5a shows the give a different result. Also, if the
noise has no leakage. Therefore, with PRN, jagged response of a nonlinear net- amplitude of the stimulus is changed,
we can measure lightly damped (high Q) work measured with PRN. Because
resonances more easily than with random you will get a different result.
noise.
the PRN source repeats itself exactly
** This distortion is called intermodulation
distortion.

21
To illustrate this, consider the mass-
spring system with stops that we

Gain
a) Linear
used in Keysight Application Note response
Introduction to Time, Frequency and
Modal Domains. If the mass does not b) Noninear
response
hit the stops, the system is linear and M
the frequency response is given by
Frequency
Figure 6.6a.
Figure 6.6. Nonlinear system
If the mass does hit the stops, the
output is clipped and a large number
of distortion components are gener- Band-Limited Noise
ated. As the output approaches a But many other test signals can be
square wave, the fundamental com- used with dynamic signal analyzers Before leaving the subject of network
ponent becomes constant. Therefore, and are “best” (optimum) in other stimulus, it is appropriate to discuss
as we increase the input amplitude, senses. As explained in the beginning the need to band limit the stimulus.
the gain of the network drops. We get of this section, sine waves can be used We want all the power of the stimulus
a frequency response like Figure 6.6b, to give the same results as other types to be concentrated in the frequency
where the gain is dependent on the of network analyzers although the region we are analyzing. Any power
input signal amplitude. speed advantage of the dynamic signal outside this region does not contrib-
analyzer is lost. A fast sine sweep ute to the measurement and could
So, as we have seen, the frequency (chirp) will give very similar results excite non-linearities. This can be
response of a nonlinear network is with all the speed of dynamic signal a particularly severe problem when
not well deined, i.e., it depends on analysis, and so is a better test signal. testing with random noise since it
the stimulus. Yet it is often used in An impulse is a good test signal for theoretically has the same power at all
spite of this. The frequency response acoustical testing if the network is frequencies (white noise). To eliminate
of linear networks has proven to be linear. It is good for acoustics because this problem, dynamic signal analyz-
a very powerful too, and so naturally relections from surfaces at different ers often limit the frequency range
people have tried to extend it to non- distances can easily be isolated or of their built-in noise stimulus to the
linear analysis, particularly since other eliminated if desired. For instance, by frequency span selected. This could
nonlinear analysis tools have proved using the “force” window described be done with an external noise source
intractable. earlier, it is easy to get the free ield and ilters, but every time the analyzer
response of a speaker by eliminating span changed, the noise power and
If every stimulus yields a different the room relections from the ilter would have to be readjusted. This
frequency response, which one should windowed time record. is done automatically with a built-in
we use? The “best” stimulus could be noise source so transfer function
considered to be one that approxi- measurements are easier and faster.
mates the kind of signals you would
expect to have as normal inputs to the
network. Since any large collection
of signals begins to look like noise,
noise is a good test signal.* As we
have already explained, noise is also a
good test signal because it speeds the
analysis by exciting all the ilters of our
analyzer simultaneously.

* This is a consequence of the central limit


theorem. As an example, the telephone
companies have found that when many
conversations are transmitted together, the
result is like white noise. The same effect
is found more commonly at a crowded
cocktail party.

22
Section 7: Averaging

To make it as easy as possible to The standard technique in statistics for determining the average power in
develop an understanding of dynamic to improve the estimates of a value is any of the ilters of our dynamic signal
signal analyzers we have almost to average. When we watch a noisy analyzers. The more averages we take,
exclusively used examples with deter- reading on a dynamic signal analyzer, the better our estimate of the power
ministic signals, i.e., signals with no we can guess the average value. But level.
noise. However, the real world is rarely because the dynamic signal analyzer
so obliging. The desired signal often contains digital computation capabil- In Figure 7.1, we show RMS averaged
must be measured in the presence of ity, we can have it compute this aver- spectra of random noise, digital data
signiicant noise. At other times the age value for us. Two kinds of averag- and human voices. Each of these
“signals” we are trying to measure are ing are available, RMS (or “power” examples is a fairly random process,
more like noise themselves. Common averaging) and linear averaging. but when averaged we can see the
examples that are somewhat noise- basic properties of its spectrum.
like include speech, music, digital RMS Averaging
data, seismic data and mechanical If we want to measure a small signal in
vibrations. Because of these two When we watch the magnitude of the the presence of noise, RMS averaging
common conditions, we must develop spectrum and attempt to guess the will give us a good estimate of the
techniques both to measure signals in average value of the spectrum com- signal plus noise. We can not improve
the presence of noise and to measure ponent, we are doing a crude RMS* the signal-to-noise ratio with RMS
the noise itself. average. We are trying to determine averaging; we can only make more
the average magnitude of the signal, accurate estimates of the total
ignoring any phase difference that signal-plus-noise power.
may exist between the spectra. This
averaging technique is very valuable

a) Random noise b) Digital data c) Voices. Traces were separated 30 dB for clarity
Figure 7.1. RMS averaged spectra Upper trace: female speaker
Lower trace: male speaker

* RMS stands for “root-mean-square” and


is calculated by squaring all the values,
adding the squares together, dividing by
the number of measurements (mean) and
taking the square root of the result.

23
Linear Averaging Since the periodic signal will have time record of a square wave buried
repeated itself exactly in each time in noise. The resulting time record
However, there is a technique for im- record, it will average to its exact after 128 averages shows a marked
proving the signal-to-noise ratio of a value. But since the noise is different improvement in the signal to noise
measurement, called linear averaging. in each time record, it will tend to av- ratio. Transforming both results to the
It can be used if a trigger signal is erage to zero. The more averages we frequency domain shows how many of
available that is synchronous with take, the closer the noise comes the harmonics can now be accurately
the periodic part of the spectrum. Of to zero and we continue to improve measured because of the reduced
course, the need for a synchronizing the signal-to-noise ratio of our noise loor.
signal is somewhat restrictive, al- measurement. Figure 7.2 shows a
though there are numerous situations
in which one is available. In network
analysis problems, the stimulus
signal itself can often be used as
a synchronizing signal.

Linear averaging can be implemented


many ways, but perhaps the easiest
to understand is where the averag-
ing is done in the time domain. In this
case, the synchronizing signal is used
to trigger the start of a time record.
Therefore, the periodic part of the in- a) Single record, no averaging b) Single record, no averaging
put will always be exactly the same in
each time record we take, whereas the
noise will, of course, vary. If we add
together a series of these triggered
time records and divide by the number
of records we have taken, we will
compute what we call a linear average.

c) 128 linear averages d) 128 linear averages

Figure 7.2. Linear averaging

24
Section 8: Real-Time Bandwidth

Until now we have ignored the fact To see what this means, let us look at Real-Time Bandwidth
that it will take a inite time to com- the case where the FFT computation
Requirements
pute the FFT of our time record. In takes longer than the time to ill the
fact, if we could compute the trans- time record. The case is illustrated in How wide a real-time bandwidth is
form in less time than our sampling Figure 8.4. Although the buffer is full, needed in a dynamic signal analyzer?
period we could continue to ignore we have not inished the last trans- Let us examine a few typical
this computational time. Figure 8.1 form, so we will have to stop taking measurements to get a feeling for
shows that under this condition we data. When the transform is inished, the considerations involved.
could get a new frequency spectrum we can transfer the time record to the
with every sample. As we have seen FFT and begin to take another time Adjusting Devices
from the section on aliasing, this record. This means that we missed
could result in far more spectrums some input data and so we are said to If we are measuring the spectrum or
every second than we could possibly be not operating in real time. frequency response of a device that
comprehend. Worse, because of the we are adjusting, we need to watch
complexity of the FFT algorithm, it Recall that the time record is not con- the spectrum change in what might be
would take a very fast and very expen- stant but deliberately varied to change called psychological real time. A new
sive computer to generate spectrums the frequency span of the analyzer. spectrum every few tenths of a second
this rapidly. For wide frequency spans, the time is suficiently fast to allow an opera-
record is shorter. Therefore, as we tor to watch adjustments in what he
or she would consider to be real time.
A reasonable alternative is to add a increase the frequency span of the
time record buffer to the block dia- analyzer, we eventually reach a span However, if the response time of the
gram of our analyzer (Figure 8.2). In where the time record is equal to the device under test is long, the speed
Figure 8.3 we can see that this allows FFT computation time. This frequency of the analyzer is immaterial. We will
us to compute the frequency spec- span is called the real-time bandwidth. have to wait for the device to respond
trum of the previous time record while For frequency spans at and below the to the changes before the spectrum
gathering the current time record. If real-time bandwidth, the analyzer will be valid, no matter how many
spectrums we generate in that time.
we can compute the transform before does not miss any data.
the time record buffer ills, then we This is what makes adjusting lightly
are said to be operating in real time. damped (high Q) resonances tedious.
Amplitude

Digital Time
FFT
filter buffer
FFT FFT FFT FFT
Time

Figure 8.1. A new transform every sample Figure 8.2. Time buffer added to block diagram

Time Time Time Time Time Time


record 1 record 2 record 3 record 1 record 2 record 3
FFT 1 FFT 2
FFT 1 FFT 2

Figure 8.3. Real-time operation Figure 8.4. Non-real-time operation

25
RMS Averaging
A second case of interest in determin- Time Time Time Time Time
record 1 record 2 record 3 record 4 record N
ing real-time bandwidth requirements
is measurements that require RMS
FFT 1 FFT 2 FFT 3 FFT N
averaging. We might be interested in
determining the spectrum distribu- Time = N x FFT computation time
tion of the noise itself or in reducing
the variation of a signal contaminated Figure 8.5. RMS averaging time
by noise. There is no requirement in
averaging that the records must be
consecutive with no gaps. Therefore, Transients However, if a transient event contains
a small real-time bandwidth will not high-frequency energy and lasts lon-
The last case of interest in determin- ger than the time record necessary to
affect the accuracy of the results.
ing the needed real-time bandwidth measure the high-frequency energy,
is the analysis of transient events. If then the processing speed of the
However, the real time bandwidth will
the entire transient its within the time analyzer is critical. As shown in
affect the speed with which an RMS
record, the FFT computation time is Figure 8.6b, some of the transient will
averaged measurement can be made.
of little interest. The analyzer can be not be analyzed if the computation
Figure 8.5 shows that for frequency
triggered by the transient and the time exceeds the time record length.
spans above the real-time bandwidth,
event stored in the time record buffer.
the time to complete the average of N
The time to compute its spectrum is
records is dependent only on the time
not important.
to compute the N transforms. Rather
than continually reducing the time to
compute the RMS average as we
increase our span, we reach a ixed a) Transient fits in time record
time to compute N averages.

Therefore, a small real-time band-


width is only a problem in RMS aver-
aging when large spans are used with Time record
a large number of averages. Under
FFT
these conditions we must wait longer
for the answer. Since wider real-time a) Transient longer than one time record
bandwidths require faster computa-
tions and therefore a more expensive
processor, there is a straight-forward
trade-off of time versus money. In the
case of RMS averaging, higher real-
time bandwidth gives you somewhat
faster measurements at increased Time Time Time Time Time
record 1 record 2 record 3 record 4 record 5
analyzer cost.

FFT 1 FFT 2 FFT 3 FFT 4

Figure 8.6. Transient analysis

26
In the case of transients longer than So we see that there is no clear-cut
the time record, it is also impera- answer to what real-time bandwidth
tive that there is some way to rapidly is necessary in a dynamic signal
record the spectrum. Otherwise, the analyzer. Except in analyzing long
information will be lost as the analyzer transient events, the added expense of
updates the display with the spectrum a wide real-time bandwidth gives little
of the latest time record. A special advantage. It is possible to analyze
display which can show more than long transient events with a narrow
one spectrum (“waterfall” display), real-time bandwidth analyzer, but
mass memory, a high-speed link to a it does require the recording of the
computer or a high-speed facsimile input signal. This method is slow and
recorder is needed. The output device requires some operator care, but you
must be able to record a spectrum can avoid purchasing an expensive
every time record or information will analyzer and fast spectrum recorder.
be lost. Fortunately, there is an easy It is a clear case of speed of analysis
way to avoid the need for an expensive versus dollars of capital equipment.
wide real-time bandwidth analyzer
and an expensive, fast spectrum re-
corder. One-time transient events like
explosions and pass-by noise are usu-
ally digitally recorded for later analysis
because of the expense of repeating
the test. Continuously sampled time
data can be recorded into a large
time-capture memory or a high-speed
through-put disk. This allows you to
analyze the data later with no
information loss.

27
Section 9: Overlap Processing

In Section 8 we considered the case


where the computation of the FFT a) Non-overlapped processing is performed only on
completely new data (time records).
took longer than the time it took to
collect the time record. In this section Time record 1 Time record 2 Time record 3 Data gathering
we will look at a technique, overlap
FFT 1 FFT 2 FFT 3 FFT computaion
processing, which can be used when
the FFT computation takes less time Time
than gathering the time record.
b) Overlapped processing is performed on data that combines
To understand overlap processing, let old and new. The time between FFT’s represents display processing.
us look at Figure 9.1a. We see a low- Time record 1
frequency analysis where gathering Time record 2
the time record takes much longer
Time record 3
than the FFT computation time. Our
FFT processor is sitting idle much of FFT 1 FFT 2 FFT 3 FFT computaion
the time. If instead of waiting for an
entirely new time record we over-
Figure 9.1. Understanding overlap processing
lapped the new time record with some
of the old data, we would get a new
spectrum as often as we computed Nonetheless, by indicating the direc- is used twice, more averages must be
the FFT. This overlap processing is tion and magnitude of the changes taken to get a given variance than in
illustrated in Figure 9.1b. To under- every few tenths of a second, overlap the non-overlapped case. Figure 9.2
stand the beneits of overlap process- processing does help in the adjust- shows the improvements that can be
ing, let us look at the same cases we ment of devices. expected by overlapping.
used in the last section.
RMS Averaging Transients
Adjusting Devices
Overlap processing can give dramatic For transients shorter than the time
We saw in the last section that we reductions in the time to compute record, overlap processing is useless.
need a new spectrum every few tenths RMS averages with a given variance. For transients longer than the time
of a second when adjusting devices. Recall that window functions reduce record, the real-time bandwidth of
Without overlap processing this limits the effects of leakage by weighting the the analyzer and spectrum recorder is
our resolution to a few Hertz. With ends of the time record to zero. Over- usually a limitation. If it is not, overlap
overlap processing our resolution lapping eliminates most or all of the processing allows more spectra to be
is unlimited. But we are not getting time that would be wasted taking this generated from the transient, usually
something for nothing. Because our data. Because some overlapped data improving resolution of resulting plots.
overlapped time record contains old
data from before the device adjust-
ment, it is not completely correct. It
does indicate the direction and the
Flat-top window
amount of change, but we must wait T
90% overlap
Data gathering time

a full time record after the change for


the new spectrum to be accurately
displayed.
T_ Overlap Non-overlapped
4

Relative error

Figure 9.2. RMS averaging speed improvements with overlap processing

28
Summary Bibliography Related Keysight
In this application note, we have Bendat, Julius S. and Piersol, Allan G.,
Literature
developed the basic properties of Random Data: Analysis and
Keysight Application Note —
dynamic signal analyzers. We found Measurement Procedures, Wiley-
Introduction to Time, Frequency and
that many properties could be under- Interscience, New York, 1971.
Modal Domains, pub. no. 1405-1
stood by considering what happens
when we transform a inite, sampled Bendat, Julius S. and Piersol, Allan G.,
Engineering Applications of Keysight Application Note —
time record. The length of this record
Correlation and Spectral Analysis, The Fundamentals of Signal Analysis
determines how closely our ilters can
Wiley-lnterscience, New York, 1980. — Chapter 4: Using Dynamic Signal
be spaced in the frequency domain
Analyzers, pub. no. 5952-8898E
and the number of samples deter-
Bracewell, R., The Fourier Transform
mines the number of ilters in the
and its Applications, McGraw-Hill, 1965. Keysight Application Note —
frequency domain. We also found that
The Fourier Transform: A Mathematical
unless we iltered the input we could Cooley, J.W. and Tukey, J.W., Background (Appendix A in 5952-8898E)
have errors due to aliasing, and that An Algorithm for the Machine
inite time records could cause a prob- Calculation of Complex Fourier Series,
Product Overview —
lem called leakage that we minimized Mathematics of Computation, Vol. 19, Keysight 35670A Dynamic Signal Ana-
by windowing. We then added several No. 90, p. 297, April 1965. lyzer, pub. no. 5966-3063E
features to our basic dynamic signal
analyzer to enhance its capabilities. McKinney, W., Band Selectable Fourier
Analysis, Hewlett-Packard Journal, Product Overview —
Band-selectable analysis allows us to
April 1975, pp. 20-24. Keysight E1432/33/34 VXI Digitizers/
make high-resolution measurements
Source, pub. no. 5968-7086E
even at high frequencies. Averaging
Otnes, R.K. and Enochson, L., Digital
gives more accurate measurements
Time Series Analysis, John Wiley, 1972. Product Overview —
when noise is present and even allows
Keysight E9801B Data Recorder/
us to improve the signal-to-noise ratio Potter, R. and Lortscher, J., What Logger, pub. no. 5968-6132E
when we can use linear averaging. in the World is Overlap Processing ,
Finally, we incorporated a noise source Hewlett-Packard Santa Clara DSA/
in our analyzer to act as a stimulus for Laser Division “Update,” Sept. 1978.
transfer function measurements.
Ramse , K.A., Effective Measurements
for Structural Dynamics Testing , Part 1,
Sound and Vibration Magazine,
November 1975, pp. 24-35.

Roth, P., Effective Measurements Using


Digital Signal Analysis, IEEE Spectrum,
April 1971, pp. 62-70.

Roth, P., Digital Fourier Analysis,


Hewlett-Packard Journal, June 1970.

Welch, Peter D., The Use of Fast Fourier


Transform for the Estimation of Power
Spectra: A Method Based on Time
Averaging Over Short, Modified
Periodograms, IEEE Transactions on
Audio and Electro-acoustics, Vol.
AU-15, No. 2, June 1967, pp. 70-73.

29
Glossary Hanning window — a windowing Rectangular window — another term
function used to reduce leakage for uniform window
Aliasing — a phenomenon that can when measuring noise and periodic
Response window — an exponential-
occur when a signal is not sampled signals like sine waves
weighted window that guarantees
at greater than twice the maximum Leakage — the spreading of energy that the response dies out (goes to
frequency component; high- throughout the frequency domain; zero) within the time record; used in
frequency signals appear as low- energy leaks out of one resolution impact test to avoid leakage error;
frequency components; avoided by line of an FFT into other lines, also called “exponential window”
iltering out signals greater than sometimes masking small signals
1/2 the sample rate RMS averaging — a technique for
close to a sine wave. This happens
measuring small signals in the
Anti-alias ilter — a low pass ilter when the signal is not periodic
presence of noise. RMS averaging
installed before the sampler and within a time record. Applying an
is useful for processing stationary
analog-to-digital converter to appropriate window function will
signals. Each data block can be
limit the input frequency range of a minimize the amplitude error due
overlapped to achieve the maximum
signal to prevent aliasing; designed to the leakage.
number of averages. RMS averaging
to ilter out frequencies greater Linear averaging — a technique for produces amplitude information
than 1/2 the sample rate (typically improving the signal-to-noise ratio only. You lose phase information.
1/2.56 to allow for ilter rolloff) of a measurement; can be used if
Self-windowing functions — a function
Band-selectable analysis — an a trigger signal is available that is
that does not require a window
analysis capability that allows you synchronous with the periodic part
because it occurs completely within
to “zoom in” for a high-resolution of the spectrum
the time record or its period is
close-up shot of the frequency Lines — To reduce confusion about matched to time-record length
spectrum by concentrating ilters in which domain we are in, samples (it generates no leakage in the FFT)
the frequency range of interest. in the frequency domain are called
Time record — a block of N consecu-
Digital ilter — a decimating ilter lines.
tive, equally spaced samples of the
that ilters the digital representa- Nyquist Criterion — the minimum input; this block is the basic unit
tion of the input signal (after it theoretical sample rate for a transformed by an FFT.
has been sampled and digitized) baseband signal to be reproduced
to the desired frequency span. It Transfer function — a ratio of the
in sampled form, equal to twice
also reduces the sample rate at its output over the input, both in the
the highest frequency of the input
output to the rate needed for that Laplace domain; sometimes used
signal. In most cases, you will want
frequency span. interchangeably with “frequency
to use a higher sample rate to
response function”
Fast Fourier Transform (FFT) — an represent the signal accurately.
algorithm used in computers and Uniform window — a windowing
Periodic random noise (PRN) — a
DSAs to compute discrete frequency function that weights all of the time
kind of pseudo-random noise that
components from sampled time record uniformly; used for transient
periodically repeats its sequence;
data; invented by Cooley and Tukey signals
the best stimulus for testing linear
Flat-top window — a windowing networks. Windowing — a way to reduce leak-
function that minimizes amplitude age by forcing an FFT to look at
Pseudo-random noise — a math-
error for off-center input-signal data through a narrow window
ematically generated random noise
components where the input is zero at both ends
whose period is matched to time
of the time record. Many different
Force window — a windowing function record length, thus eliminating
functions can be used to window
that eliminates stray signals; used leakage
the data, depending on the type of
for the excitation signal in impact Random noise — true noise measurement you are making.
test to improve signal-to-noise
ratio Real time — If we can compute the Zoom — another term for band-
transform (FFT) before the time selectable analysis
record buffer ills, we are said to
be operating in real time.

30
31 | Fundamentals of Signal Analysis Series Understanding Dynamic Signal Analysis - Application Note

myKeysight For more information on Keysight


Technologies’ products, applications or
www.keysight.com/find/mykeysight
services, please contact your local Keysight
A personalized view into the information most relevant to you.
office. The complete list is available at:
www.keysight.com/find/contactus

www.keysight.com/find/signalanalyzer
Americas
Canada (877) 894 4414
Brazil 55 11 3351 7010
Mexico 001 800 254 2440
United States (800) 829 4444

Asia Paciic
Australia 1 800 629 485
China 800 810 0189
Hong Kong 800 938 693
India 1 800 112 929
Japan 0120 (421) 345
Korea 080 769 0800
Malaysia 1 800 888 848
Singapore 1 800 375 8100
Taiwan 0800 047 866
Other AP Countries (65) 6375 8100

Europe & Middle East


Austria 0800 001122
Belgium 0800 58580
Finland 0800 523252
France 0805 980333
Germany 0800 6270999
Ireland 1800 832700
Israel 1 809 343051
Italy 800 599100
Luxembourg +32 800 58580
Netherlands 0800 0233200
Russia 8800 5009286
Spain 0800 000154
Sweden 0200 882255
Switzerland 0800 805353
Opt. 1 (DE)
Opt. 2 (FR)
Opt. 3 (IT)
United Kingdom 0800 0260637

For other unlisted countries:


www.keysight.com/find/contactus
(BP-06-09-14)

This document was formerly known as


application note 1405-2.

This information is subject to change without notice.


© Keysight Technologies, 1994, 1995, 1999,
2000, 2002, 2014
Published in the USA July 31, 2014
5988-6774EN
www.keysight.com

Potrebbero piacerti anche