From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
05-22-2017 03:14 PM
My assignment is to generate two sine waves of differing amplitudes and frequencies, add the sine waves together, and perform the fourier transform on the added sine waves. When using the the FFT Power Sprectrum and PSD vi on my added sine waves, I am then supposed to be able to look at my waveform graph and locate the amplitude of the first sine wave at its specific frequency and do the same with the second sine wave. My problem is, when completing this operation I am getting max values at my two specified frequencies but the amplitudes do not match to their corresponding values. Does anyone know what i am doing incorrectly? Please let me know. Thanks
Solved! Go to Solution.
05-22-2017 03:24 PM - edited 05-22-2017 03:27 PM
Read the help for the function.
A power spectrum does not give amplitude. It gives an RMS value and is units^2/Hz.
It gives the square of the amplitude divided by 2.
05-23-2017 09:16 AM
Thank you, is there a VI that would output the amplitude rather than the RMS value?
05-23-2017 09:30 AM
There are several FFT functions scattered throughout.
One I found is called Amplitude and Phase Spectrum. It puts out amplitude as RMS, but you can multiply that by square root of 2.
05-23-2017 02:12 PM - edited 05-23-2017 02:13 PM
Nice assignment 😉 you can learn a lot on DFT.
while monitoring your DFT results, play around with the frequencies and the number points used by the DFT. ... and be surprised by the effects of windowing 😄