LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Center of gravity of FFT shape

Hello I have following question. I have incoming signal and I want to compute the most important frequency. Extract Single Tone Information.vi extracts only the highest frequency from FFT and I want to compute something like center of gravity of the FFT shape.

Thx for any help

Message Edited by ceties on 02-12-2007 07:08 AM

LV 2011, Win7
0 Kudos
Message 1 of 6
(4,166 Views)
Ceties:

Are you trying to calculate the center frequency as described here? If so, how would you determine the lower and upper cutoff frequencies? Please let me know if I misunderstood your question.

Rudi N.
0 Kudos
Message 2 of 6
(4,138 Views)
Hello Rudi,

We are estimating frequency from incoming signal. It isn't worth to take the maximum frequency itself but better is to set neighbourhood around this max frequency
and compute average of surrounding frequencies. I was wondering if there is some function in LabView but finally I haven't found anything so I wrote my own function.

It works following. Wipes off DC part of the signal. Than finds the maximum frequency and checks how many points are on the left side and right side. If it is less than
neighbourhood entered by user it takes the smallest possible neighbourhood. Then it calculates something like centroid.

thx
LV 2011, Win7
Download All
0 Kudos
Message 3 of 6
(4,115 Views)
ceties:
 
I looked at the attached VI and it seems like you were indeed able to achieve what you were trying to do. Please let me know if I can help further.
 
Regards,
 
Rudi N.
0 Kudos
Message 4 of 6
(4,095 Views)
It works perfect. I posted it just in case somebody would face same problem.
LV 2011, Win7
0 Kudos
Message 5 of 6
(4,091 Views)
Thank you very much !!!
0 Kudos
Message 6 of 6
(4,073 Views)