LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

remove DC component of dynamic data from FFT

Lynn,
 
I have Fs=300Hz, was using the collector to collect 512 samples, this should give sample size 1.7seconds, anddf = 0.6Hz.  Am using the hanning window.  Whenthe DC component peaks, it merges with the 1Hz.  As you suggest, this probably is not enough time, and depending on how the window syncs up with the sine wave would change the mean or DC component.  Changing the collector window to 1024 gives separations between DC and the 1Hz spectra and mostly settles the DC.  At 2048, slightly better results, slower convergence.  Good lesson to learn, thanks, but I still do not want to see the DC component, and even at 2048 eliminating FFT(0) is not enough.  Eliminating FFT(0) and (1) does the trick.  At 1024 samples this would eliminate up to 0.6Hz, at 2048 up to 0.3Hz.  We'll see how it goes.  Thanks again.  Bob
0 Kudos
Message 11 of 12
(923 Views)
Bob,

Rapid and low frequency are terms which do not "play nice" together. If you can synchronize your data acquisiton and analysis so that you get exactly an integer number of cycles of the 1 Hz signal, no dc component will be contributed by that signal. (Think of the DC part of 1/2 of a cycle).

If the signal is close to sinusoidal, fitting a sine wave to the data and then extracting the parameters of the fitted sine wave may work better for small sample sets.

Lynn
Message 12 of 12
(921 Views)