Professional Documents
Culture Documents
Contents
What You Always Wanted to Know About FFT... ______________________________________ 2
FFT Basics _____________________________________________________________________
A Simple Example _____________________________________________________________
FFT under Scrutiny ____________________________________________________________
FFT with Many Interpolation Points ________________________________________________
An Exact Result _______________________________________________________________
Transient Signals ______________________________________________________________
Typical FFT Results ____________________________________________________________
Square Wave ______________________________________________________________
Dirac Delta Function ________________________________________________________
2
3
4
4
5
5
6
6
6
15
15
15
16
16
17
17
17
17
18
18
18
18
19
19
19
20
FFT Basics
The classic FFT algorithm has the name Fast Fourier Transformation, because it
calculates considerably faster than other Fourier Transformations. However the
disadvantage is that the number of values must be a power of 2 (which means 8, 16,
32,..., 1024,..., 65536,... ). DIAdem uses a new FT algorithm that is not only faster
than the classic FFT but can also operate with any number of values.
Because the term FFT has established itself, this Fourier Transformation is also
called FFT.
The FFT transforms time-related measurement data (oscillations) into the frequency
domain. First one needs measurement data of a wave signal that is acquired over a
period of time with a constant sampling rate. From this data the FFT calculates a
frequency response which shows how strongly the various frequencies are contained
in the signal.
For the following calculations it is important to know how the sampling rate, the
measurement duration, the frequency domain, and the resolution are connected.
half-value of the sampling rate itself is not contained in the frequency domain.
In the frequency domain one receives always half as many values as in the
original time channel. However, one receives two results per frequency: Amplitude
and phase.
Example:
If the sampling rate is 1000 Hz with 500 measurement values, one receives a
frequency channel of 0 to nearly 500 Hz (498 Hz to be exact) with 250 values.
Increasing the sampling rate, results in a frequency channel with higher frequencies.
A measurement with 2000 Hz and 500 measurement values results in 250
frequencies of 0 to 1000 Hz-- twice the frequency range as before.
If the measurement duration is increased while the sampling rate is maintained, one
receives a frequency channel with more values. A measurement with 1000 Hz and
1000 values results in 500 frequencies of 0 to 1000 Hz-- twice the frequency
resolution as before.
Consequently several principles determine the frequency analysis.
The frequency domain always ranges from zero to half the sampling rate. The
To inspect high frequencies, the sampling rate must be appropriately fast. For
technical reasons the sampling rate must be at least 2.5 times higher than the
highest frequency in the signal that you want to analyze.
To resolve frequencies accurately the measurement must be accordingly long in
duration. The necessary measurement duration (in seconds) must be equal to or
exceed the inverse of the desired frequency resolution (in Herz).
A Simple Example
0
0
0.05
0.1
0.15
0.2
0.25
Time [s]
Amplitude [V]
-5
Real signal
with 30 Hz and 5V
Amplitude [V]
100
200
300
400
Frequency [Hz]
Real signal
with 30 Hz and 5V
4
3
2
1
0
10
The
20
30
40
50
60
70
Frequency [Hz]
Periodic continuation
as assumed in FFT algorithm
0
0
0.02
0.04
0.06
0.08
0.1
-5
Amplitude [V]
0.12
Time [s]
4
Frequency Amplitude
3
FFT result (8 lines)
2
1
0
-10
10
20
30
40
50
60
70
80
90
100
Frequency [Hz]
Phase
0.0000
0.4629
0.0000
12.5000
1.1955
-10.0751
25.0000
3.8081
-16.6090
37.5000
2.5514
161.0777
50.0000
1.0113
162.0000
62.5000
0.6779
165.0513
75.0000
0.5462
169.4175
87.5000
0.4884
174.5372
0
0
Signal [V]
0.02
0.04
0.06
0.08
0.1
0.12
Time1 [s]
Sum
Phase
0.0000
0.4629
0.0000
12.5000
1.1955
-10.0751
25.0000
3.8081
-16.6090
37.5000
2.5514
161.0777
50.0000
1.0113
162.0000
62.5000
0.6779
165.0513
75.0000
0.5462
169.4175
87.5000
0.4884
174.5372
0
0
0.02
0.04
0.06
0.08
0.1
0.12
Time [s]
-5
Original
Signal [V]
-5
5
2.5
0
0
0.25
0.5
0.75
1
Time [s]
-2.5
4
3
2
1
0
Amplitude [V]
100
200
300
400
Frequency [Hz]
Theoretical Signal
with 30 Hz and 5 V
4
Extract with Line Display
3
2
1
0
15
20
25
30
35
40
45
50
Frequency [Hz]
An Exact Result
One can only obtain an exact result if
one adjusts the sampling rate exactly
to the actual frequency. To do so, the
sampling rate must be an integer
multiple of the oscillation time. The
following example will sample exactly 3
waves which will take exactly 0.1
seconds at 30 Hz. For 16 measurement values this results in a sampling
rate of 160 Hz.
5
2.5
0
0
0.02
0.04
0.06
0.08
Time1 [s]
-2.5
-5
10
10
10
10
10
10
10
10
10
10
10
An exact value at 30 Hz
Frequency
Amplitude
-1
0.0000
0.0000000000
0.0000
-2
10.0000
0.0000000315
90.0000
20.0000
0.0000000000
0.0000
30.0000
5.0000000005
-90.0000
40.0000
0.0000000000
0.0000
50.0000
0.0000000012
-90.0000
60.0000
0.0000000000
0.0000
70.0000
0.0000000309
90.0000
10
Phase
-3
-4
-5
-6
-10
-10
10
20
30
40
50
60
70
80
Frequency [Hz]
Transient Signals
Frequently a good resolution is
required but the signal is only
temporarily available. However, a high
resolution requires a long measurement. One might want to execute a
long measurement in any case.
Signal1 [V]
Amplitude [V]
-5
Amplitude [V]
Signal [V]
Signal [V]
5
2.5
0
0
0.25
0.5
0.75
1
Time [s]
-2.5
Ampl_Peak []
-5
1
0.8
0.6
0.4
0.2
Ampl_Peak []
100
200
300
400
Frequency1 []
0.8
0.6
0.4
0.2
0
25
30
35
40
45
50
Frequency1 []
20
1
0.75
0.5
0.25
0
0
Amplitude
15
0.025
0.05
0.075
0.1
0.125
Time [s]
0.016
0.014
0.012
FFT
0.01
0.008
0.006
0.004
0.002
0
0
Square Wave
Square waves do not contain all
frequencies. They contain the main
frequency and multiples (3, 5, 7, ...) of
this frequency with a decreasing
amplitude.
100
200
300
400
500
Frequency [Hz]
Oscillation
0.2
0.4
0.6
0.8
Time [s]
Amplitude
-5
5
4
3
2
1
0
Amplitude1
100
200
300
400
6
5
500
Frequency [Hz]
4
3
2
1
0
0
100
200
300
400
500
Frequency1 [Hz]
0
-2.5
FFT Application
In practice the actual signal frequency is unknown. Normally the signal is not a pure
sine signal but rather a mix of different signals. These signals are not totally sinusoidal
and not distributed evenly over the measurement period. The fluctuations in the result
of several measurements are usually greater than the system-related fluctuations that
the FFT algorithm causes when it is used correctly.
0
0
0.05
0.1
0.15
0.2
0.25
Time [s]
Amplitude2 [V]
-5
-1
0
0
0.05
0.1
0.15
0.2
0.25
Time [s]
Amplitude [V]
-5
6
Amplitude with window and correction
5
4
3
2
1
0
0
10
20
30
40
50
60
70
80
Frequency [Hz]
Using
the Window Function
0
0
4
Time [s]
-2.5
10
10
10
10
10
10
10
10
10
10
10
-1
-2
Rectangle
10
-1
-3
Hamming
-4
-5
10
-2
Blackman
10
-6
-3
-7
Cos10Proz
-8
10
-9
10
Hanning
-10
-4
-5
Vallee
0
50
100
150
200
250
300
350
10
15
400 450 500
Frequency [Hz]
20
25
30
35
40
45
Frequency [Hz]
2
1.75
1.5
1.25
1
0.75
0.5
0.25
0
0.2
0.4
2000
4000
6000
8000
0.6
10000
2
1.75
1.5
1.25
1
0.75
0.5
0.25
0
0.8
Time [s]
2000
4000
6000
Frequency [Hz]
1.75
1.5
1.25
1
0.75
0.5
0.25
0
100
8000
10000
Frequency1 [Hz]
150
200
250
300
350
400
450
500
550
600
650
700
750
800
Frequency [Hz]
-6
-11
Amplitude1 [-]
10
10
10
Amplitude [-]
Amplitude [V]
-5
10
Time Intervals
Amplitude [-]
Signal [V]
5
2.5
40
30
20
10
0
-10
-20
-30
-40
0.2
0.4
Amplitude1 [-]
260 Hz
8
0.6
0.8
Time [s]
6
4
4
1000
2000
3000
4000
8
7
6
5
4
3
2
500001
0
0
500
1000
1500
2000
2500
3000
Frequency1 [Hz]
Joint-Time-Frequency Analysis
260 Hz
10
7.5
35
30
25
2.5
20
15
10
1000
2000
3000
4000
5000
Third/Octave Analysis
FFT Functions
10
1
0.1
0.01
0.001
1
16
31.5
63
125
250
500
1000
2000
Ampl_Peak
4000 8000
Frequency [Hz]
10
Octave
Third
Linear
0.1
0.01
0.001
50
63
80
100
125
160
200
250
315
400
500
Frequency [Hz]
Ampl_Peak
10
Summary:
Peak amplitude:
RMS amplitude:
Autospectrum:
Power spectrum:
Power spectrum
density:
Why Autospectra?
2 + 2
2 + 2
2
+ 2
2 + 2
2 =
2
2 + 2
=
2
2
0.5
1.5
2.5
Time
-10
10
10
10
10
Section
1
0
-1
10
-2
10
10
10
10
10
-3
10
10
-4
10
1
0
-1
-2
-3
50
55
60
65
70
-5
10
-6
10
200
400
2
600
800
Frequency
120
Sum
100
80
60
40
20
0
50
55
60
65
70
Frequency
11
FFT - 1024
0.015
0.0125
Power Spectrum
0.01
0.0075
0.005
FFT - 4096
0.0025
0
PSD [-]
2500
5000
7500
10000
Frequency [Hz]
FFT - 1024
0.0008
FFT - 4096
0.0006
0.0004
0.0002
0
0
2500
5000
7500
10000
Frequency1 [Hz]
Transfer Function
Two signals are measured for transfer
functions. These two signals are the
stimulation and the response of the
system under test. Both signals must
be acquired simultaneously.
Oscillations usually do not occur on
their own accord. Oscillations must be
triggered by a stimulation. For exact
analyses one must know what
triggered the oscillation.
The stimulation must be suited for the
analysis. Stimulations should trigger a
system evenly in the analysis of the
frequency domain.
Sinusoidal stimulations are usually not
suited because they only contain one
frequency. If a mechanical structure is
stimulated with a single frequency, the
structure will vibrate with exactly this
one frequency.
There are two typical types of
stimulations.
Noise type stimulations contain all
frequencies
nearly
equal.
The
additional advantage is that the
frequencies remain equal for a longer
period of time. However, the technical
preparations for noise stimulations are
very complex.
Abrupt stimulations also contain all
frequencies. In practice, for example, a
hammer executes a short, dry blow on
a structure and the vibration that is
triggered by the blow is measured. The
acceleration on the hammer and on
significant spots on the mechanical
structure is measured. The size of the
12
2000
0.05
Hammer Blow
0.04
1500
0.03
1000
0.02
500
0.01
0
0
0
500
1000
1500
2000
Frequency []
500
1000
1500
2000
Frequency []
0.01 0.02 0.03 0.04 0.05 0.06 0.07 0.08 0.09 0.1 0.11 0.12 0.13 0.14 0.15 0.16 0.17 0.18 0.19 0.2
Time [s]
180
1.5
90
Oscillation
1
0.5
0
-90
-0.5
-1
-180
0.02
0.04
0.06
0.08
0.1
0.12
0.14
0.16
0.18
0.2
Time [s]
0.0001
5E-05
0
0
500
1000
1500
2000
Frequency []
1500
2000
Frequency []
0.035
0.03
FFT Oscillation
0.025
0.02
0.015
0.01
0.005
0
0
500
1000
2000
1500
1000
500
0
0
500
500
1000
1500
2000
Frequency []
1000
1500
2000
Frequency []
1
0.9
0.8
0.7
0.6
0.5
0.4
0.3
0.2
0.1
0
Coherence
Phase
-1.5
13
14
Signal1 [V]
0.5
1.5
2
Time [s]
-0.05
Signal1 [V]
-0.1
0.13
0.12
0.11
0.1
0.09
0.08
0.4
0.42
0.44
0.46
0.48
0.5
0.52
0.54
0.56
0.58
0.6
Time [s]
The
vibration
ranges
from
approximately -0.15 to +0.15 volt. Only
about 60 (approximately 1.5 percent)
of the 4096 different voltages that the
AD convertor can measure are used.
Warning:
The steps always exist for A/D
convertor data but are not always so
obvious.
The voltage steps are especially
conspicuous due to the high sampling
rate. With a lower sampling rate (for
example 10 Hz) the steps would no
In
15
Signal [V]
Original
0
0
0.1
0.2
0.3
0.4
0.5
Time [s]
-5
Sampling rate 35 Hz
0
0
10
20
30
40
50
60
70
Frequency [Hz]
Amplitude [V]
16
Lowpass Filter
To eliminate higher frequencies directly
in the analog signal, lowpass filters are
used. These filters are therefore called
anti-aliasing
filters.
Thereby
all
frequency components above a certain
limit frequency are filtered out quite
well. This method can also cause
problems if different measurement
tasks must be constantly solved with
different frequency ranges. Lowpass
filters which are freely programmable
are quite expensive and not always
available. Therefore one has to resort
to a number of fixed filters and the
related sampling rates.
It is also possible to use signal
recorders that have measurement
amplifiers with integrated lowpass
filters. The device or the respective
manual usually indicate the frequency
domain to use for the calculation. Often
several frequency domains can be
selected. If a vibration recorder has, for
example, a frequency domain of 1 Hz
to 1 KHz, higher frequencies cannot be
measured. However, a sampling rate
of 2 KHz does not incur an aliasing
effect.
Note finally that If the sampling rate is
high enough, aliasing effects are
prevented. It is worth scrutinizing the
frequency domains of recorders and
filters.
Warning:
There is a typical error that should be
avoided. If the recorder provides
frequencies up to 1000 Hz, it is wrong
to measure with a 1000 Hz sampling
rate. The rate must be at least
2500 Hz.
Oversampling
Modern measurement devices, AD
convertors, and computers have so
much capacity that the optimal
sampling rates and exact lowpass
filters can be disregarded. To measure
a vibration at approximately 1 Hz with
a transducer that has a frequency
domain of up to 100 Hz the sampling
rate can be 250 Hz. The signal does
not contain aliasing effects anymore
but a lot of data.
A data reduction leads to the required
result. To do so, one can use a digital
filter. However one can also use a FFT
over all data to extract the required
area from the frequency domain (0
100 Hz).
Determining the
Required Sampling Rate
The necessary sampling rate must be
2.5 times the highest important
frequency. The highest important
frequency might be the monitored
vibration or a frequency in the signal
that might be causing disturbances. If
necessary, one should test whether a
problem has occurred with 50 Hz
disturbances (power network).
Determining
Special Sampling Rates
A large number of all measurements is
carried out with integer sampling rates
(100, 200, 500 1000, ...). As the
number of values for a FFT must be a
power of 2, the measurement duration
is often 'warped'. The FFT frequencies
are then also at the 'warped' values
because the frequency interval is
calculated with one divided by the
measurement duration.
For many evaluations it would be
better to determine integer frequencies
through the FFT. A search function
such as the peak search in DIAdem,
which can search for frequencies at the
greatest amplitude, then provides, for
example, 5 Hz and not 0.46875 Hz. A
sampling rate with a power of 2
17
Example:
An FFT result with a resolution of
0.1 Hz and a maximum signal
frequency of 250 Hz is required. The
signal frequency produces a required
sampling rate of at least 625 Hz (2.5
times signal frequency).
The
measurement
duration
is
measured with 1/0.1 and must be
precisely 10 seconds.
The correct sampling rate must be
determined in order to measure for 10
seconds at a minimum of 625 Hz. 4096
measurement values divided 4096/10
produce a sampling rate of 409.6 Hz.
This is not fast enough. Therefore one
must acquire 8192 values in 10
seconds which corresponds to a
sampling rate of 819.2 Hz.
Unfortunately, such sampling rates are
not possible on every hardware.
Several Channels
Simultaneously
When several channels are measured,
it is not always guaranteed that the
values of the various channels are
acquired simultaneously.
Depending on the hardware there are
substantial differences.
Simple Multiplexer
Many multi-functional boards contain
an A/D convertor that can convert only
one channel at a time. A multiplexer
charges
the
A/D
convertor
consecutively with the voltages of the
required channels that are converted
consecutively.
For example, to measure 4 channels
with 1000 Hz each, the A/D convertor
uses a total sampling rate of 4000 Hz.
The channels are sampled with an
interval of 0.25 milliseconds. This
Sample/hold
To measure all channels simultaneously, boards with a Sample&Hold
function are sometimes used.
Each
board
has
a
special
measurement amplifier integrated
before the multiplexer. Before the scan
acquisition,
these
measurement
amplifiers receive simultaneously a
signal that switches the acquisition to
the track mode. This mode 'freezes'
the current voltage. Then the amplifiers
are switched to the hold mode and
consecutively
sampled
by
the
multiplexer.
In the sample&hold mode the channels
are consecutively converted from
analog to digital, however the voltage
is the same voltage that was acquired
and held in the track mode at the
beginning of the scan.
A/D convertor boards with a
sample&hold function can execute
simultaneous
measurements
of
several channels without phase
shifting. This function is elaborate and
therefore the boards are expensive.
18
19
Example:
In a measurement with 64 measurement values per revolution and 1024
measurement values, one receives
results up to order 16 which are
divided into steps of 0.03125 orders.
To evaluate higher orders, more
measurement values per revolution
must be measured. The number of
measured revolutions affects the
resolution of the orders.
In machines and motors the first order
lies in the range of approximately
3,000 rpm or 50 Hz. Higher orders are
necessary because many resonance,
vibration, or noise problems have
considerably higher frequencies.
In this context the order analysis is an
additional topic. The order analysis
tests rotational speed dependent
vibrations. The aim is to analyze
according to orders machine vibrations
in different states (to power up, to shut
down, different operational states).
20
The audible frequency range of sound lies between 16 and 20,000 Hz.
The audible volume (acoustic pressure) lies between 10-4 and 102 Pascal (N/m2).
To evaluate sound sources one needs a reproducible absolute precision.
Microphones
Calibration
Acoustic Signals
Usually acoustic signals are measured
with a microphone as acoustic
pressure in Pascal (N/m2). The
acoustic signal is an oscillation that
overlays the normal air pressure.
Therefore it does not make sense to
specify the acoustic pressure at a
specific time. The frequency and the
oscillation amplitudes are of interest.
A relatively simple definition of the
acoustic signal is possible without FFT.
The calculation of the root-meansquare of the acoustic pressure
provides the first characteristic value of
the volume of the signal.
First all individual acoustic pressures
are squared in order to determine the
root-mean-square. The square root is
extracted from the mean value of all
squares (sum divided by the number).
The abbreviation RMS stands for rootmean-square. In a pure sine vibration
the rms value is equal to the amplitude
of the vibration divided by the square
root of 2.
It is impractical to specify the acoustic
2
pressure in N/m because the acoustic
pressures occur in different dimensions
depending on the situation. Therefore
a logarithmic scale is used to specify
the acoustic pressure. To receive
21
22