0% found this document useful (0 votes)
48 views14 pages

Sine and Sine Sweep Measurements: Jens Hee

This document discusses sine and sine sweep measurements for determining the frequency response of a system. It describes the heterodyne method, which uses a mixer and tracking filter to improve the signal-to-noise ratio. For fixed frequency analysis, the output is mixed with sine and cosine versions of the input signal. For sine sweeps, additional processing is required if the sweep rate is high, including applying an inverse FFT, multiplying by a complex sweep, and applying a forward FFT to obtain the correct frequency response. Both linear and exponential sweeps are discussed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
48 views14 pages

Sine and Sine Sweep Measurements: Jens Hee

This document discusses sine and sine sweep measurements for determining the frequency response of a system. It describes the heterodyne method, which uses a mixer and tracking filter to improve the signal-to-noise ratio. For fixed frequency analysis, the output is mixed with sine and cosine versions of the input signal. For sine sweeps, additional processing is required if the sweep rate is high, including applying an inverse FFT, multiplying by a complex sweep, and applying a forward FFT to obtain the correct frequency response. Both linear and exponential sweeps are discussed.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 14

Sine and Sine Sweep measurements

by

Jens Hee
http://jenshee.dk

December 2018
Change log

16. December 2018

1. Document started.

13. March 2020

1. Meta data added.

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.

Sine generator System under test Voltmeter

Phase meter

Figure 1.1: Basic frequency response measurement set-up

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

Figure 1.3: fc = 3 kHz, ∆f = 10 Hz, S= 100 Hz/s

Figure 1.4: fc = 3 kHz, ∆f = 10 Hz, S= 400 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

Figure 2.1: Heterodyne measurement set-up

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)

Output from the system under test

MI (t)

cos(φ(t))

Figure 2.2: Heterodyne mixer. The generator signal is sin(φ(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:

vsut (t) = |H(ω0 )|sin(ω0 t + φ0 ), φ0 = 6 H(ω0 )

The output of the mixer is:

MR (t) = |H(ω0 )|sin(ω0 t + φ0 )sin(ω0 t) = 0.5|H(ω0 )|(cos(φ0 ) − cos(2ω0 t + φ0 ))

MI (t) = |H(ω0 )|sin(ω0 t + φ0 )cos(ω0 t) = 0.5|H(ω0 )|(sin(φ0 ) + sin(2ω0 t + φ0 ))


The tracking filter consists of two low-pass filters each removing the component at the double
frequency. The output of the tracking filter is:

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.

2.2 Sine sweep analysis


If the sweep rate is low (in the sense explained in Chapter 1) then the scheme outlined in the
previous section can be used directly for sweep measurements, with ω0 changing with time. Note
that the low-pass filter cut-off frequency must be less than 2ω for all ω during the sweep. However,
using a too low cut-off frequency will deteriorate the frequency response. As a rule of thumb the
cut-off frequency fcut is limited by:
S
fcut > ≈ ST
∆f
where ∆f is the bandwidth of the narrowest resonance in the frequency response and T is the
length of the impulse response.
If the sweep rate is high the output of the system under test is not given by the vsut (t) above.
The next sections describes how to overcome this problem.

5
2.2.1 Linear sweep
In this case the generator frequency is increasing proportionally with time:

ω(t) = 2πSt + ωst

φ(t) = πSt2 + ωst t


where ωst is the start frequency.
The tracking filter can be implemented as a FIR filter with a fixed fcut and has four functions:

1. Removing the frequency component at the double frequency.

2. Removing noise.

3. Acting as an anti-aliasing filter enabling sampling reduction.

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.

Figure 2.3: Linear sweep response

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.

Figure 2.5: Contour plot of the corrected impulse response

2.2.2 Exponential sweep


Exponential sweep is traditionally called logarithmic sweep since it can be used for measuring
the frequency response on a logarithmic frequency axis, but the generator frequency is increasing
exponentially with time and is thus better described as an exponential sweep:
ω(t) = ωst eβt

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

Figure 2.7: Contour plot of the false impulse response

Figure 2.8: Contour plot of the corrected impulse response

9
Chapter 3

Appendix A

The response of a linear time invariant system is given by:


y =h∗x
where:
x is the excitation signal.
h is the impulse response of the system.

If x is a complex linear sweep the relation can be written as:


Z ∞
y(t) = h(τ )ejφ(t−τ ) dτ
−∞

where:

φ(t) = πSt2
the output response can now be written:
Z ∞
2
y(t) = h(τ )ejπS(t−τ ) dτ
−∞

If the output is multiplied by the complex conjugate of the sweep then:


Z ∞ Z ∞
−jπSt2 jπS(t−τ )2 2
z(t) = e h(τ )e dτ = ejπSτ h(τ )e−j2πStτ dτ =
−∞ −∞
or Z ∞ Z ∞
2
z(f ) = ejπSτ h(τ )e−j2πf τ dτ = g(s)e−j2πf s dτ
−∞ −∞
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 ) and h(t) can then be
derived from g(s):
2
g(s) = ejπSs h(s)
and finally:
2
h(t) = e−jπSt g(t)

10
Chapter 4

Appendix B

The response of a linear time invariant system is given by:

y =h∗x

where:
x is the excitation signal.
h is the impulse response of the system.

If x is a complex exponential sweep the relation can be written as:


Z ∞
y(t) = h(τ )ejφ(t−τ ) dτ
−∞

where:
2πfst βt
φ(t) = e
β
Using the substitutions:
1 f
t =log( )
β fst
1
τ = − log(1 − βs)
β
1
dτ = ds
1 − βs

the output response can be written:


1
1 f Z
β 1 1 1
y( ln( )) = h(− ln(1 − βs))ej2πf ( β −s) ds
β fst −∞ 1 − βs β
If the output is multiplied by the complex conjugate of the sweep one obtains:
1
−j 2π
Z
β 1 1 1
z(f ) = e β
f
h(− ln(1 − βs))ej2πf ( β −s) 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

You might also like