FFT resolution and frequency spectrum

Have a suggestion for improving DPlot or a question about existing features? Let us know

Moderator: DPlotAdmin

Post Reply
John Sigurdson
Posts: 8
Joined: Thu Mar 03, 2005 2:31 am
Location: San Diego CA

FFT resolution and frequency spectrum

Post by John Sigurdson »

David,

Starting with a pressure waveform in psi with 30 ms of data recorded at 1 MHz (30,000 data points). I lable the X axis as microseconds and Y axis as psi.

When I do an FFT of this signal, it produces a FFT plot of magnitudes from 0 to 500 KHz with one point (magnitude) about every 30 Hz ( n(1) = 16,385 ).

Q: Is there any way to increase the number of points so as to get 1 Hz resolution for waveforms sampled at 1 MHz? That is, n(1) = 500K. That would allow calculation of a standard 1 Hz frequency spectrum and, with added calculations, subsequent energy spectral densities etc. Or, is there a way to finesse that with existing settings?

John Sigurdson
John Sigurdson
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post by DPlotAdmin »

Q: Is there any way to increase the number of points so as to get 1 Hz resolution for waveforms sampled at 1 MHz? That is, n(1) = 500K. That would allow calculation of a standard 1 Hz frequency spectrum and, with added calculations, subsequent energy spectral densities etc. Or, is there a way to finesse that with existing settings?
Only by increasing the number of points in your input. This isn't an arbitrary decision made by DPlot; it's how an FFT works. The frequency interval in the FFT will always be 1/(2*dt*(Nfft-1)), where Nfft = number of points in the FFT, always half the number of points in your input plus 1. For dt=1 microsecond and 30,000 input values, the frequency interval is 1/0.03 Hz = 33.33 Hz.

:oops: And after typing all of that I realized it was an overly complicated way of saying that to get a 1Hz interval, you need 1 second's worth of input. 1/(2 * 1E-6 * 5E+5) = 1.
Visualize Your Data
support@dplot.com
John Sigurdson
Posts: 8
Joined: Thu Mar 03, 2005 2:31 am
Location: San Diego CA

Post by John Sigurdson »

Thanks, again, David

I should have known...
John Sigurdson
Post Reply