Signal Conditioning

Showing results for 
Search instead for 
Did you mean: 

Windowing and Power Spectrum

Windowing and Power Spectrum



I have a simple .vi that is attempting to calculate the total PSD over a 500Hz bandwidth.  My question pertains to the Windowing function and

what affect it has on the power calculation.  I have much on windowing etc. in the NI's help but cannot seem to arrive at the value I am simulating to.  I have including my .VI and the associated input file.  (this file represents Pulse Densisty Modulated data output from an ADC)


thanks for any help

0 Kudos
Message 1 of 6

Re: Windowing and Power Spectrum

Hi Jeff,


What exactly is your question here? In general, windows are designed to have a minimal effect on things like power spectrum density measurements. In your VI, you are feeding a digital signal into the window which will basically just characterize the window. Perhaps you need to feed in the analog signal or a quantized digital signal. Also, what value are you trying to simulate? The process in your VI seems to make sense.

Josh Y.
Applications Engineer
National Instruments
0 Kudos
Message 2 of 6

Re: Windowing and Power Spectrum

Hi Josh,


My digital signal is actually Pulse Density Modulated data.  It is the output of my ADC, and represents a DC value with inherent system noise, which in turn is analog.  Because the noise is random,  I am windowing the FFT function to reduce any spectral leakage that may be present.  I found some info in help documents that tells me to divide my window array by the coherent gain of the window,  and then to take the sum of the powers over the frequency band I am interested in and divide it by the Noise Power Bandwidth of the window I am using.  I added these functions to my .vi and it appears to be working correctly now.




0 Kudos
Message 3 of 6

Re: Windowing and Power Spectrum

You may want to try "FFT Power Spectrum and". it takes care of the compensation for the window effect automatically.


Be careful that "Amplitude" compensation is used for Power Spectrum, and "Energy" compensation for PSD. The difference is a scaling factor of 1.5 for Hanning window.


0 Kudos
Message 4 of 6

Re: Windowing and Power Spectrum

I want convert this file attached from 11.1 to 9.1.0 version, please, and I want know if there is a general procedure to do this task


0 Kudos
Message 5 of 6

Re: Windowing and Power Spectrum

Hey djamel-emp,


The best place to go for converting VIs is the Version Conversion Board:



David S.
0 Kudos
Message 6 of 6