Understanding FFTs
and Windowing
Overview
Learn about the time and frequency domain, fast Fourier transforms (FFTs), and windowing as well as how you can use them to improve your understanding of a signal. This tutorial is part of the Instrument Fundamentals series.
Contents
w Understanding the Time Domain, Frequency Domain, and FFT
w
a. All Signals Are the Sum of Sines
b. Deconstructing Signals Using the FFT
w Windowing
w
a. What Is Windowing
b. Windowing Functions
w Summary
w
Understanding the Time Domain, Frequency Domain, and FFT
The Fourier transform can be powerful in understanding everyday signals and troubleshooting
errors in signals. Although the Fourier transform is a complicated mathematical function, it
isn’t a complicated concept to understand and relate to your measured signals. Essentially, it
takes a signal and breaks it down into sine waves of different amplitudes and
frequencies. Let’s take a deeper look at what this means and why it is useful.
a.  All Signals Are the Sum of Sines
When looking at real-world signals, you usually view them as a voltage changing over time.
This is referred to as the time domain. Fourier’s theorem states that any waveform in the
time domain can be represented by the weighted sum of sines and cosines. For example,
take two sine waves, where one is three times as fast as the other–or the frequency is 1/3
the first signal. When you add them, you can see you get a different signal.
truncated file
Figure 1. When you add two signals, you get a new signal.
Now imagine if that second wave was also 1/3 the amplitude. This time, just the peaks
are affected.
Figure 2. Adjusting the amplitude when adding signals affects the peaks.
Imagine you added a third signal that was 1/5 the amplitude and frequency of the original signal. If you continued in this fashion until you hit the noise floor, you might recognize the resulting waveform.
Figure 3. A square wave is the sum of sines.
Y ou have now created a square wave. In this way, all signals in the time domain can be
represented by a series of sines.
Although it is pretty neat that you can construct signals in this fashion, why do you actually
care? Because if you can construct a signal using sines, you can also deconstruct signals into sines. Once a signal is deconstructed, you can then see and analyze the different frequencies that are present in the original signal. Take a look at a few examples where being able to
deconstruct a signal has proven useful:
If you deconstruct radio waves, you can choose which particular frequency–or station–you
want to listen to.
If you deconstruct audio waves into different frequencies such as bass and treble, you can
alter the tones or frequencies to boost certain sounds to remove unwanted noise.
If you deconstruct earthquake vibrations of varying speeds and strengths, you can optimize building designs to avoid the strongest vibrations.
If you deconstruct computer data, you can ignore the least important frequencies and lead
to more compact representations in memory, otherwise known as file compression.
b.  Deconstructing Signals Using the FFT
The Fourier transform deconstructs a time domain representation of a signal into the
frequency domain representation. The frequency domain shows the voltages present at
varying frequencies. It is a different way to look at the same signal.
A digitizer samples a waveform and transforms it into discrete values. Because of this
transformation, the Fourier transform will not work on this data. Instead, the discrete Fourier transform (DFT) is used, which produces as its result the frequency domain components in discrete values, or bins. The fast Fourier (FFT) is an optimized implementation of a DFT that takes less computation to perform but essentially just deconstructs a signal.
Take a look at the signal from Figure 1 above. There are two signals at two different
frequencies; in this case, the signal has two spikes in the frequency domain–one at each of the two frequencies of the sines that composed the signal in the first place.
Figure 4. When two sine waves of equal amplitude are added, they result in two
spikes in the frequency domain.
The amplitude of the original signal is represented on the vertical axis. If you look at the signal from Figure 2 above where there are two different signals at different amplitudes, you can see that the most prominent spike corresponds to the frequency of the highest voltage sine signal. Looking at a signal in the time domain, you can get a good idea of the original signal by knowing at what frequencies the largest voltage signals occur.
Figure 5. The highest spike is the frequency of the largest amplitude.

版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系QQ:729038198,我们将在24小时内删除。