Professional Documents
Culture Documents
2
2
2
2
y
u
x
u
k
t
u
-2.5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
-4
-3
-2
-1
0
1
2
3
4
Any signal can be described as a
combination of sine waves of different
frequencies
Useful by-product
9 copyright LMS International - 2013
Fourier transform
To go from time to frequency domain and back
Fourier integral:
Supported by modern signal analysers
Spectrum analysers
Basic function in all our software
( ) [ ] ( ) X t x F =
( ) [ ] ( ) t x X F =
1
( ) ( )
( ) ( )
=
=
+
+
d e X t x
dt e t x X
t j
t j
2
1
For mathematicians
For humans
-2.5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
-4
-3
-2
-1
0
1
2
3
4
f [Hz]
10 20 40
Detect sine waves in signal Draw line at frequency of sine wave
10 copyright LMS International - 2013
Some definitions
t [s]
f [Hz]
[rad/s]
T
0
f
0
0
Time domain
Frequency domain
Period: T
0
[s]
Frequency: f
0
= 1/T
0
[Hz]
Pulsation / circular frequency:
0
= 2f
0
= 2/T
0
[rad/s]
1 rad
2
11 copyright LMS International - 2013
Frequency spectrum Time history
Selection of domain, depending on the application aims
Equivalence of time and frequency domain: no loss of information
Time Time Frequency Frequency
f
f
f
f
f
f t
t
t
t
t
t
12 copyright LMS International - 2013
Examples Fourier transform
13 copyright LMS International - 2013
Bridge Vibrations
t
t
f
t
Traffic
Shaker
Drop
weight
Time domain Frequency domain
14 copyright LMS International - 2013
There exist more domains
Representation of signals for analysis
t
A
f
A
2
/f
A
P
f
A
2
/f
A
P
t
A
Time domain:
The time history x(t)
Frequency domain:
The signal spectrum X( )
Amplitude domain:
The probability distribution P(A)
Gaussian
distribution
Uniform
distribution
15 copyright LMS International - 2013
Nice theory but we must do it on a computer
Sampled signals
Discrete time history
Discrete frequency spectrum
Finite signal segments
Limited number time samples
Limited number of frequency lines
Numerical representation
Discrete number of possible amplitude
values
( ) [ ] ( ) X t x F =
( ) [ ] ( ) t x X F =
1
( ) ( )
( ) ( )
=
=
+
+
d e X t x
dt e t x X
t j
t j
2
1
0
0.1
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
-1.5
-1
-0.5
0
0.5
1
1.5
Consequences ?
16 copyright LMS International - 2013
Discretisation Effects:
Aliasing and Leakage
Two most frequently occurring problems using discretisation:
does not meet Shannons Theorem
Remedy
Use band-limited signals
Use low-pass filtering
The sampled function is not transient and not periodic
Remedy
Use periodic signals
Apply windowing (errors remain!)
( )
max
2 f f
s
s
f
ALIASING
LEAKAGE
17 copyright LMS International - 2013
Sampling
Sine wave of 10 Hz, sampled at 100 Hz
Digital representation looks like a perfect sine
Following slides:
Reducing sampling frequency
0.2 0.4 0.6 0.8 1
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 1000 Hz
10 Hz harmonic function
T=N
t
100 Hz
18 copyright LMS International - 2013
0 2 4 6 8 10
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 100 Hz
10 Hz harmonic function
4 4.2 4.4 4.6 4.8 5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 100 Hz.
4 4.2 4.4 4.6 4.8 5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 100 Hz.
t N T =
19 copyright LMS International - 2013
0 5 10 15 20 25
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 40 Hz.
10 Hz harmonic function
10 10.2 10.4 10.6 10.8 11
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 40 Hz.
10 10.2 10.4 10.6 10.8 11
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 40 Hz.
T N t =
20 copyright LMS International - 2013
0 10 20 30 40 50
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 20 Hz.
10 Hz harmonic function
T N t =
20 20.2 20.4 20.6 20.8 21
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 20 Hz.
20 20.2 20.4 20.6 20.8 21
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
time - seconds
a
m
p
l
i
t
u
d
e
sampling frequency = 20 Hz.
21 copyright LMS International - 2013
Sampling: exploring the limits
Sampling frequency = sine wave
frequency
f
s
= f
sine
Observed frequency = 0 Hz (DC)
Sampling frequency = 2 x sine wave
frequency
f
s
= 2 x f
sine
Observed frequency is correct, but it is
borderline (sampling frequency cannot be
lowered)
22 copyright LMS International - 2013
Sampling = only look from time to time
Different interpretations possible ???
-1.5
-1
-0.5
0
0.5
1
1.5
t
t
f
s
=
1
t
t
f
s
=
1
23 copyright LMS International - 2013
Sampling Potential source of trouble
20 Hz signal, sampled at 21.3 Hz, shows up as a 1.3 Hz signal Aliasing
f
s
2f
s
3f
s
f
s
/2 0
True
frequencies
Sampled
frequencies
f
s
/2
-1.5
-1
-0.5
0
0.5
1
1.5
-1.5
-1
-0.5
0
0.5
1
1.5
ff
ff
Correct
Observed
20
20 1.3
24 copyright LMS International - 2013
Aliasing Protection
Low-Pass Filter
Make sure the signal does not contain
frequencies above half the sample frequency fs
Do this by applying a sufficient performing low-
pass filter
Be aware that the amplitude of the last portion
of the spectrum is attenuated by the filter
Alias-free
Automatically done in good data acquisition hardware
25 copyright LMS International - 2013
Example
Alias-free
Frequency range
suffering from aliasing
26 copyright LMS International - 2013
Aliasing sometimes positive
Something strange?
Glass vibrates at 608
Hz, while we see it
vibrating at 2 Hz!
Sampling by
stroboscope at 101 Hz
(Operating range is 0
120 Hz)
6 x 101 Hz = 606 Hz
For the human eye: 101
Hz = analog (we dont
see the samples)
27 copyright LMS International - 2013
Discretisation Effects:
Aliasing and Leakage
Two most frequently occurring problems using discretisation:
does not meet Shannons Theorem
Remedy
Use band-limited signals
Use low-pass filtering
The sampled function is not transient and not periodic
Remedy
Use periodic signals
Apply windowing (errors remain!)
( )
max
2 f f
s
s
f
ALIASING
LEAKAGE
28 copyright LMS International - 2013
Finite Observation Length
Limited observation
Discrete Spectrum Periodicity Assumed
Complete original signal
We are NOT analysing
the original signal !!
29 copyright LMS International - 2013
Finite Observation Side Effect
Adverse effects
Wrong amplitudes
Smearing of the
spectrum
-2.5
-2
-1.5
-1
-0.5
0
0.5
1
1.5
2
2.5
Leakage
0.00 100.00 Hz
0.00
1.00
A
m
p
l
i
t
u
d
e
(
m
/
s
2
)
0.00 100.00 Hz
0.00
1.00
A
m
p
l
i
t
u
d
e
(
m
/
s
2
)
0.00 100.00 Hz
-60.00
0.00
d
B
(
m
/
s
2
)
0.00 100.00 Hz
-60.00
0.00
d
B
(
m
/
s
2
)
Linear scale
Log scale
Linear scale
Log scale
Expected spectrum of a
pure sine wave
30 copyright LMS International - 2013
Leakage Amplitude Uncertainty
Periodic observation
100% of amplitude
A-periodic observation
63% of amplitude
Boss, this 100.000$ system is giving me
something between 6 and 10g
31 copyright LMS International - 2013
Reducing Leakage by Applying Time Windows
Leakage originates from finite observation
(discontinuity-error at edges)
Original signal properties are best
represented in the middle of the observation
period : enhance information
Practical implementation : multiplication
by window-function (time domain) to reduce
discontinuities
Effects :
Improved amplitude estimate (flatten
central lobe)
Reduce frequency range of smearing
(lower side lobes)
Local smearing of spectral energy due
to wider central lobe effective
spectral resolution decreases
32 copyright LMS International - 2013
Window Types Specific Characteristics
T
i
m
e
d
o
m
a
i
n
F
r
e
q
.
d
o
m
a
i
n
Rectangular, uniform Hanning Flat top
33 copyright LMS International - 2013
Windowing Use Cases
Uniform (rectangular)
Only in leakage-free conditions
Hanning
Most commonly used for unknown signals
Compromise: amplitude relatively correct good frequency precision
High side lobes may mask neighbouring frequencies with low amplitude
Kaiser-Bessel
Good selectivity (low side lobes): measure close frequencies with large amplitude
differences
Flat top
Calibration: accurate amplitude measurement
Very bad effective frequency resolution
Impact testing windows
Exponential (response)
Force-window (input signal)
34 copyright LMS International - 2013
Example 1
Periodically observed sine
Rectangular window
Hanning window
Non-periodically observed sine
Rectangular window
Hanning window
0.00 100.00 Hz
-100.00
0.00
d
B
(
m
/
s
2
)
AutoPower_Per_Hann
AutoPower_Per_Rect
0.00 100.00 Hz
-100.00
0.00
d
B
(
m
/
s
2
)
AutoPower_Nonper_Hann
AutoPower_Nonper_Rect
35 copyright LMS International - 2013
Example 2
2 sines which are non-periodic within the measurement period. The amplitude of
the second sine is 100 lower than the amplitude of the dominant sine.
Alternatively: measure longer!
Rectangular
Flat top
Hanning
Kaiser-
Bessel
36 copyright LMS International - 2013
Discretisation Effects:
Aliasing and Leakage
Two most frequently occurring problems using discretisation:
does not meet Shannons Theorem
Remedy
Use band-limited signals
Use low-pass filtering
The sampled function is not transient and not periodic
Remedy
Use periodic signals
Apply windowing (errors remain!)
And perhaps a 3
rd
one:
Amplitude discretisation (e.g. 16/24 bit ADC)
( )
max
2 f f
s
s
f
ALIASING
LEAKAGE
37 copyright LMS International - 2013
Amplitude discretisation problem
Small variations are not
detected
Amplitudes are
approximated
Small signals look bad
6
7
5
4
3
2
1
0
38 copyright LMS International - 2013
Amplitude discretisation solution
Amplify signal to cover optimally
available input range
Many bits in ADC to provide many
possible values
So we can describe accurately
small variations
Currently 24 bit ADC
6
7
5
4
3
2
1
0
MAXIMUM VOLTAGE
MINIMUM VOLTAGE
39 copyright LMS International - 2013
So we need assistance for
Filtering
Several possible sample frequencies
Windowing
Amplification
Sufficient possible amplitude values
40 copyright LMS International - 2013
8