LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

mulitple wave functions

No problem.  Will this do for finding the peak freqs?  (Written in LV 8.2.1)  Inputs are your signal (to the FFT) and a magnitude cutoff.

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 11 of 17
(1,094 Views)
That looks like it might work. I have something similar that I had done yesterday but its hard to test them unless u could graph it. Do you know How would I take those peaks and graph them separate now?
0 Kudos
Message 12 of 17
(1,079 Views)

Well, you couldn't graph them separately yet.  Next thing you need to do is put in the three bandpass filters based on the frequencies that FreqFinder found.  Then you'll get three filtered signals, each with one of the frequencies in it.  If you FFT those and plot it, you should see one peak per plot.

 

Caveats: You have to make the band narrow enough so it doesn't include the other freqs, so you may want to calculate the high and low cutoff frequencies based on the three freqs -- for example, if you have f1, f2, and f3 (in increasing frequency), then the upper cuttoff freq for the f1 filter should be the greater of f1 + (f2-f1)/10 or f1 +100 ... or something like that.

 

Does that help?

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 13 of 17
(1,060 Views)

So... do you still need help or is that enough?

 

-Matt

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 14 of 17
(1,035 Views)

Sorry I was sick for the weekend

 

I'm gonna try that now and I'll get back to you as soon as possible

 

Thanks a lot for your help. I apreciate it

 

Moe

0 Kudos
Message 15 of 17
(1,022 Views)
How do I know that the Freqfinder works. At the moment I have it connected it like this. The VI is attached below
0 Kudos
Message 16 of 17
(1,021 Views)

Hope you are feeling better. 

 

The easiest way is to generate known signals (simulated) and see if it finds them (say at 100, 1K and 2K Hz).  Sorry, I can't look at the code right now (I can only upload new code when I am at work).  One thing you can also try is the express VI Tone -- it will even let you set the frequencies you want to extract.  Unfortunately, you can't do this dynamically (which is what you want), but it would be a good way to check your code using a known simulated signal.

 

-Matt

 

************ kudos always appreciated, but only when deserved **************************

-Matt Bradley

************ kudos always appreciated, but only when deserved **************************




0 Kudos
Message 17 of 17
(1,005 Views)