Academic Company Events NI Developer Zone Support Solutions Products & Services Contact NI MyNI

Document Type: Tutorial
NI Supported: Yes
Publish Date: Sep 6, 2006


Feedback


Yes No

Related Categories

Related Links - Developer Zone

Related Links - Products and Services

Types of Windows for Spectral Leakage Treatment

6 ratings | 4.17 out of 5
Print
Applying a window to--or windowing--a signal in the time domain requires multiplying the signal by the window function. Because multiplication in the time domain is equivalent to convolution in the frequency domain, the spectrum of the windowed signal is a convolution of the spectrum of the original signal with the spectrum of the window. Thus, windowing changes the shape of the signal in the time domain, as well as affecting the spectrum that you see.

What type of window should you use? The answer depends on the type of signal you have and what you are looking for. Choosing the correct window requires some prior knowledge of the signal that you are analyzing. The following table shows the different types of windows and the signal types they are appropriate for.


Window
Signal Type and Description
Applications
Rectangular (no window)Transient signals that are shorter than the length of the window; truncates a window to within a finite time interval.Order tracking, system analysis (frequency response measurements) with pseudorandom excitation, separation of two tones with frequencies very close to each other, but with almost equal amplitudes
HanningTransient signals that are longer than the length of the windowGeneral-purpose applications, system analysis (frequency response measurements) with random excitation
HammingTransient signals that are longer than the length of the window; a modified version of the Hanning window that is discontinuous at the edgesOften used in speech signal processing
TriangleWindow that is the shape of a triangleNo special applications
BlackmanTransient signals; similar to Hanning and Hamming windows but adds one additional cosine term to reduce ripple
Flat TopHas the best amplitude accuracy of all the windows but comes at the expense of frequency selectivityAccurate single tone amplitude measurements when there are no nearby frequency components

Note In many cases, you might not have sufficient prior knowledge of the signal, so you need to experiment with different windows to find the best one.


6 ratings | 4.17 out of 5
Print

Reader Comments | Submit a comment »

 

Legal
This tutorial (this "tutorial") was developed by National Instruments ("NI"). Although technical support of this tutorial may be made available by National Instruments, the content in this tutorial may not be completely tested and verified, and NI does not guarantee its quality in any way or that NI will continue to support this content with each new revision of related products and drivers. THIS TUTORIAL IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND AND SUBJECT TO CERTAIN RESTRICTIONS AS MORE SPECIFICALLY SET FORTH IN NI.COM'S TERMS OF USE (http://ni.com/legal/termsofuse/unitedstates/us/).