Sampling Example in Fourier Space

advertisement
20.309, Measurement and Instrumentation II
10/06/2006
Sampling Example in Fourier Space
Suppose we have a signal in continuous time.
xc(t)
t
It has the following frequency response:
xc(Ω)
A
- Ω max
Ω max
Ω
Suppose we want to sample the continuous time signal into discrete time using a frequency
f =
1
. The following block diagram illustrates what we would like to do.
T
s(t)
xc(t)
conversion from
continuous to
discrete time
⊗
xs(t)
xc(t)
x(n)
xs(t)
s(t)
⊗
t
=
-3T -2T -T
xc(t) = continuous time signal
T
2T
∞
s (t ) = ∑ δ (t − nT )
3T
t
-4T -3T -2T -T
T
2T
3T
4T
xs(t) = sampled continuous signal
−∞
“impulse train”
Note: When you multiply a continuous time signal with an “impulse train,” the result is
another “impulse train” that has the amplitude of the continuous time signal at every n·T,
1
t
where n is some integer from (-∞,∞) and T is the sampling period or the spacing between
delta functions in the impulse train.
s (t ) =
∞
∑ δ (t − nT ) ←⎯→ s(Ω) =
ℑ
n = −∞
2π
T
∞
∑ δ (Ω − k
n = −∞
2π
)
T
The Fourier Transform of an impulse train in time is also an impulse train in frequency.
s(Ω)
...
...
4π
−
T
2π
−
T
2π
T
Ω
4π
T
A multiplication of s(t) ⊗ x(t) is a convolution in frequency s(Ω) x(Ω). Therefore,
x(Ω)
s(Ω)
A
*
- Ω max
...
Ω
Ω max
−
A/T
...
4π 2π
−
T
T
2π
T
4π
T
xs(Ω)
...
...
−
4π
T
Note: Ωmax <
to avoid).
Ω
π
T
−
3π
T
−
2π
T
−
π - Ω max Ω max π
T
T
2π
T
3π
T
4π
T
Ω
, or else the signal will “alias” or superimpose at the edges (which we want
2
If Ωmax >
π
distortion of signal
xs(Ω)
T
A/T
...
−
4π
T
−
3π
T
−
2π
T
−
π
π
T
T
2π
T
3π
T
Ω
4π
T
1
. Now we define sampling rate as
T
Ωs
Ωs
2π
. Therefore, Ω max <
for aliasing to be prevented.
is then known as
Ω s = 2πf =
2
2
T
Ωs
is known as a “band-limited” signal.
the Nyquist frequency. Any signal whose Ω max <
2
Previously, we defined sampling frequency as f =
The original signal from the first page can then be recovered by an ideal low pass filter.
xs(Ω)
H(Ω)
A/T
T
⊗
...
...
Ω
− s
2
- Ω max
Ω max
Ω
Ωs
2
Ω
− s
2
Ωs
2
Ω
“Ideal low pass” filter
xc(Ω)
T
=
- Ω max
Ω max
Ω
For those of you who are curious about the difference between “continuous time” and
“discrete time,” feel free to read on.
3
Now we want to go from continuous time to discrete time. This just means turning a
dimensionalized time into a non-dimensionalized unit of time.
Xs(t)
-2T
-T
Xs(t)
T
2T
In time we multiply by
3T
4T
t
-2
-1
1
2
3
4
t
1
to change dimensionalized time to “non-dimensionalized” time.
T
In frequency we multiply by
1
, or T, to reflect this change.
f
Xs(Ω)
A/T
...
...
−
2π
T
−
π - Ω max Ω max π
T
T
Ω
4π
T
2π
T
Xs(ω)
A/T
− 2π
−π
- Ω max T
π
Ω max T
2π
4π
ω
This is an important point, because if you leave out the sampling frequency parameter in
pwelch you will notice that your frequency is given in radians. This is because the frequency
is given in “discrete time” if you leave out the sampling frequency parameter.
4
Download