LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get average between two frequency bins

I am preforming a FFT reading of a signal input. I want to extract the max magnitude of the response or obtain the average magnitude between two bins.   I see it in the graph but not sure how to extract the values . 

any advice on this would be appreciated. 

Thank you 

Download All
0 Kudos
Message 1 of 3
(984 Views)

Looking at the fft png ... looks like the source is a sine frequency ... have you tried tone detection.vi ? (or extrac tone. vi..)

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 2 of 3
(981 Views)

@montcuky wrote:

I am preforming a FFT reading of a signal input. I want to extract the max magnitude of the response or obtain the average magnitude between two bins.


  • What determines the "or"?
  • Obviously, you get peaks that are spread over 1..several bins due to spectral leakage, so you want to sum them, not average them.
  • Do you want to integrate each peak to find the max?
  • Are you talking about the average of two random bins or two adjacent bins?
  • ...

 

Can you take a step back and explain what you are trying to do, not how you are trying to do it?

 

Who wrote this code? There are quite some puzzling constructs, such as the following:

 

altenbach_0-1642614465134.png

 

0 Kudos
Message 3 of 3
(947 Views)