Sine and Sine Sweep Measurements: Jens Hee
Sine and Sine Sweep Measurements: Jens Hee
by
Jens Hee
http://jenshee.dk
December 2018
Change log
1. Document started.
i
Contents
1 Introduction 2
2 Heterodyne method 4
2.1 Fixed frequency analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2 Sine sweep analysis . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 5
2.2.1 Linear sweep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 6
2.2.2 Exponential sweep . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 7
3 Appendix A 10
4 Appendix B 11
1
Chapter 1
Introduction
The frequency response of a system can be measured at a single frequency by applying a sine
wave with a known amplitude to the system and recording the amplitude and phase of the output
relative to the input as shown in Figure 1.1.
Phase meter
If the frequency of the generator is slowly changed, it is possible to obtain the frequency response
over a frequency range. However, if the frequency of the generator is changed too fast the frequency
response becomes incorrect. Figure 1.2, 1.3 and 1.4 shows the effect of sweeping a sine wave
through a resonance at different sweep rates. As a rule of thumb the sweep rate S must be limited
by:
S < (∆f )2
where ∆f is the bandwidth of the resonance.
Even if the sweep rate is low, the measurement becomes incorrect in situations where the S/N
ratio is relatively poor. Therefore the heterodyne principle is often used as described in the next
chapter.
Another widely used approach is the dual channel FFT method. However, the heterodyne method
gives the possibility for overlapping data collection and signal processing and requires considerably
less memory than pure FFT analysis.
2
Figure 1.2: fc = 3 kHz, ∆f = 10 Hz, S= 25 Hz/s
3
Chapter 2
Heterodyne method
One of the advantages of the heterodyne method is its capability of improving the S/N ratio by
the use of a tracking filter as shown in Figure 2.1. The method can be used for fixed frequency as
well as for sine sweep analysis.
Sine generator System under test Mixer Tracking filter Post processing
In the mixer the output from the system under test is split into two signals where one is multiplied
by a cosine version of the generator signal and the other by a sine version, see Figure 2.2.
sin(φ(t))
MR (t)
MI (t)
cos(φ(t))
4
2.1 Fixed frequency analysis
If the generator signal is a sine wave of frequency ω0 , then the output of the SUT is also a sine
wave of frequency ω0 , but with a different amplitude an phase:
TR = 0.5|H(ω0 )|cos(φ0 )
TI = 0.5|H(ω0 )|sin(φ0 )
The magnitude and phase of H(ω0 ) is then given by:
q
|H(ω0 )| = 2 TR2 + TI2
TI
φ0 = tan−1 (
)
TR
Apart from removing the component at the double frequency the low-pass filter also removes noise
and thereby improves the S/N ratio of H. Moreover the low-pass filter may also remove distortion
in case of non linear systems.
5
2.2.1 Linear sweep
In this case the generator frequency is increasing proportionally with time:
2. Removing noise.
4. Removing distortion.
If the sweep rate is low no further processing is necessary, but for higher sweep rates the frequency
response so far obtained is incorrect. Appendix A gives the details of the required processing. It
can be summarized as follows:
1. Apply an IFFT to the false frequency response setting the negative frequencies to zero.
2. Multiply the result (the false impulse response) by a complex sine sweep in order to obtain
the correct impulse response (real part).
3. Apply an FFT to the impulse response in order to obtain the correct frequency response.
Note that the size of the IFFT and FFT is much smaller than the sweep time due to the sampling
reduction.
Example
Figure 2.3 shows the response of a system having three resonances at 1 kHz, 2.5 kHz and 4 kHz
(B = 10 Hz), the sweep rate being 1 kHz/s.
6
Figure 2.4: Contour plot of the false impulse response
Calculating the false impulse response and analysing it using short time FFT, a contour plot can
be obtained showing the effect of the high sweep rate on the impulse response, Figure 2.4.
Note that the contour plot contains three parallel strait lines. Intuitively it makes sense that the
impulse response can be corrected by multiplying by a sweep, since such an operation will shift the
frequencies in the false impulse response linearly with time and thereby transforming the contour
plot into Figure 2.5.
7
S(f ) = βf
ωst βt
φ(t) = (e − 1)
β
where ωst is the start frequency.
In situations where a log frequency axis is desired, ∆f usually increase with frequency and the
condition:
S
< fcut
∆f
or
βf
< fcut
∆f
can be fulfilled even though it is required that fcut < 2fst for a tracking filter having a fixed cut-off
frequency. The tracking filter is in this situation usually implemented similar to the one used for
linear sweep.
If the main purpose of using an exponential sweep is to improve the S/N ratio at lower frequencies
and a linear frequency axis is desired, then a tracking filter with a cut-off frequency increasing
proportionally with frequency can be used, including a conversion from log frequency axis to linear
frequency axis.
Since S is proportional to the frequency (βf ), the tracking filter bandwidth must also be propor-
tional to the frequency.
The frequency difference df between two consecutive zero crossings is constant and independent
of the frequency. This means that if the output of the signal from the mixer is integrated over
df
2
for each period of the double frequency, then the double frequency is canceled completely and
the axis is converted to a linear axis at the same time. An integer number of periods can be used
if less resolution is desired. In practice the integration may be combined with a hanning window
(or another suitable window).
If the sweep rate is low no further processing is necessary, but for higher sweep rates the frequency
response so far obtained is incorrect. Appendix B gives the details of the required processing. It
can be summarized as follows:
1. Apply an IFFT to the false frequency response.
2. Stretch the result (the false impulse response) acording to 1b (1 − e−tb ) followed by a damping
e−tb in order to obtain the correct impulse response.
3. Apply an FFT to the impulse response in order to obtain the correct frequency response.
Note that the size of the FFT is much smaller than the sweep time due to the sampling reduction.
Example
Figure 2.6 shows the response of a system having three resonances at 1 kHz, 2.5 kHz and 4 kHz
(B = 10 Hz). The generator signal is an exponential sweep with f = 500e0.5t :
Calculating the false impulse response and analysing it using short time FFT, a contour plot can
be obtained showing the effect of the high sweep rate on the impulse response, Figure 2.7.
Note that the contour plot contains three non parallel curved lines. As a consequence the procedure
used for linear sweep is not possible, but following the procedure given in Appendix B, the result
in Figure 2.8 is obtained.
8
Figure 2.6: Exponential sweep response
9
Chapter 3
Appendix A
where:
φ(t) = πSt2
the output response can now be written:
Z ∞
2
y(t) = h(τ )ejπS(t−τ ) dτ
−∞
10
Chapter 4
Appendix B
y =h∗x
where:
x is the excitation signal.
h is the impulse response of the system.
where:
2πfst βt
φ(t) = e
β
Using the substitutions:
1 f
t =log( )
β fst
1
τ = − log(1 − βs)
β
1
dτ = ds
1 − βs
11
or 1 1
Z
β 1 1 −j2πf s
Z
β
z(f ) = h(− ln(1 − βs))e ds = g(s)e−j2πf s ds
−∞ 1 − βs β −∞
For a physical system it is not possible to use a complex excitation signal, but if a real valued
sweep is used the result above can be obtained by using a tracking filter for removing the mirror
frequency. It is seen that g(s) can be obtained by an inverse Fourier transform of z(f ) (g(s) = 0
for β1 < s < ∞) and h(t) can then be derived from g(t):
1 1
g(s) = h(− ln(1 − βs))
1 − βs β
and finally:
1
h(t) = e−tβ g( (1 − e−tβ ))
β
12