04-23-2015 02:10 PM
I have an input signal (sine wave) of a couple hundred MHz, and I want to get the frequency components using AutoPowerSpectrum. My issue is that when plotting the result of AutoPowerSpectrum, I cannot get the correct frequency using the default parameters. So I use df as xincrement and I get closer to the correct value but still off by a factor of 1000 (and some change). So I guess my question is how can I use xInitial and xIncrement to get the correct frequency values when using AutoPowerSpectrum function.
Thanks.
04-24-2015 12:54 AM
Why do you use the default parameters? Of which function, PlotWaveform or AutoPowerSpectrum? Did you try dt = 1.0 / sampling_rate?
Could you just show the relevant lines of code?
You may also want to have a look at the example programs, e.g., thd.cws (samples/analysis)