| |||||||||||||||||||||||||||||||||||
| |||||||||||||||||||||||||||||||||||
The Fast Fourier Transform (FFT) can be incredibly useful in identifying key frequencies of a signal. If the signal is periodic and data is sampled over a complete period or multiple complete periods as seen in Figure 1, the FFT algorithm provides clear results. ![]() All figures courtesy of Siemens Simcenter, “Windows and Spectral Leakage,” August 29 2019. In practice, this is not likely to happen, so the recreated signal will contain discontinuities: ![]() The discontinuities cause a phenomenon known as leakage, or a “smearing” of results, making it look like energy from one frequency band is leaking into other frequency bands. Leakage can show up as high frequency components that aren’t really in the original signal. In order to reduce the sharp transient in the recreated signal as much as possible, apply a mathematical function called a window to the data. Window functions usually start and end at zero, thereby eliminating discontinuities. Multiply the signal by the window to get a signal with no discontinuities. ![]() ![]() ![]() The captured signal won’t be perfectly replicated, but the leakage is now confined over a smaller frequency range. There still may be leakage from the primary data bin into other bins. In other words, to make the FFT algorithm work, window functions create slightly modified signals. These modifications mean that some operations performed on the resulting data will lead to minor errors. A consequence of this is that adding up the energy of all of the bins does not give a result that matches the actual total energy level. (This type of summing of levels can be done when looking at Octave Band data, but not when looking at FFT data.) For more information on window correction factors for amplitude and energy, see the article from Siemens, Window Correction Factors.
To determine the best window function to use for the application, estimate the frequency content of the signal and/or compare the performance of the different window functions.
Sources: | |||||||||||||||||||||||||||||||||||