NI Home > Community > NI Discussion Forums

Signal Conditioning

Showing results for 
Search instead for 
Do you mean 
Reply
Member
Jeff_FSC
Posts: 10
0 Kudos

Windowing and Power Spectrum

Hi,

 

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

Member
JoshY
Posts: 83
0 Kudos

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
Member
Jeff_FSC
Posts: 10
0 Kudos

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.

 

thanks

Jeff

Member
Ian_Ren
Posts: 144
0 Kudos

Re: Windowing and Power Spectrum

You may want to try "FFT Power Spectrum and PSD.vi". 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.

 

Member
djamel-emp
Posts: 6
0 Kudos

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

thanks

Member
dstrandb
Posts: 110
0 Kudos

Re: Windowing and Power Spectrum

Hey djamel-emp,

 

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

http://forums.ni.com/t5/Version-Conversion/bd-p/VersionConversion

 

 

David S.