LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FFT data txt

I have this data txt (text3.txt) , I'd like plot the chart and plot the second chart with FFT :
 
It's Ok (plot data)
 
 
 
It's not ok FFT of data
 
 
How can plot correct FFT?
 
Thank
Michele
 
 

Message Edited by micman2 on 09-24-2007 12:46 PM

Download All
0 Kudos
Message 1 of 9
(4,135 Views)
Hi Michele
 
can you try to be more clear when you say that "data FFT is not ok"? What do you mean? Do you expect different results? Which results do you expect?
 
Why do you ask how can you plot correct FFT?
 
Is it an FFT computation problem or is it a problem of data visualization?
 
Thanks for yours clarifications.
0 Kudos
Message 2 of 9
(4,091 Views)
Your data has a huge DC component, which of course dominates the FFT. If you are more interested in the higher frequencies, you could e.g. subtract the mean from your y data.
 
Could you please be more specific on what you expect. 🙂
0 Kudos
Message 3 of 9
(4,084 Views)
Thanks for your answers,
my problem this is, I have an historical series of data (example in y = price, in x = Time) plot the historical series and end is here ok, from this historical series I would want separated to all the frequencies that compose this historical series this make it with FFT, once that I know the frequencies, select only the frequency that has an amplitude greater (predominant cycle) and with a FIR ,   filter only that interested frequency
 
 
0 Kudos
Message 4 of 9
(4,064 Views)
Hi Michele,
   You already have components at varius frequences, only, I suppose, you get "normalized" frequency, where 0 is DC, and 0.5 is half the sampling rate.  Don't know if I understood right...

   If you prefer, try to post also in italian... Smiley Wink

   Have a nice day!

graziano
0 Kudos
Message 5 of 9
(4,061 Views)
just a note... from FFT graph it is not clear what is the scale of y axis... maybe the problem is, as Altenbach said, the DC component! I think you'd better subtract it....
0 Kudos
Message 6 of 9
(4,058 Views)

Ciao Grazioano grazie per avermi risposto, in italiano riesco a spiegarmi meglio Smiley Happy

In pratica ho una serie storica , la vedo come se fosse più sinusoidi sommate insieme, per separare queste sinusoidi applico FFT da qui in pratica vorrei trovarmi un grafico che mette in relazione ampiezza(sinusoide) / frequenza (classico analizzatore di spettro), con il maker seleziono la frequenza che ha maggiore ampiezza, quella frequenza la considero la frequenza dominante e da questo periodo posso tarare filtri FIR e studi vari poi il resto le considero armoniche e via dicendo rumore.

 

0 Kudos
Message 7 of 9
(4,048 Views)
Hi Michele,
    For first, I'll answer in english: this way everyone can help us.

   So, you'd like to find the dominant frequency, and you want to filter with a band-pass FIR filter around it, right?

   If so, as also Altenbach said, you've to subtract mean value from data, or, if you prefer, do High pass filtering.  Then, you find the amplitude peak.  To get the frequency, if you have to convert from normalized frequency to real-world frequency, but this can be done after filtering, it depends upon your needs...

   What I don't understand is if you're going to MANUALLY scroll the graph to find the amplitude peak, and then you use this frequency to build filter....

   Anyway, please clearify if you have problems with normalized frequency (x-axis, to say it clear...).

   Have a nice day!

graziano

Ciao Michele,
   Come detto sopra, siccome questa è una comunità internzaionale, preferisco rispondere in inglese.  Così ci possono aiutare molte più persone, a quanto pare la comunità italiana non è numerosissma (e forse alcuni "vivono" su ILVG.... Smiley Happy).

   Come detto, vorrei capire se hai problemi con il valore che trovi sull'asse x, ossia quella che credo sia la frequenza normalizzata.  Di solito, questa va da 0 a Pi-greco (ma dov'è il simbolo Pi-greco.....), dove Pi-greco è la frequenza di Nyquist, ossia la metà della frequenza di campionamento.  In realtà, stiamo parlando di pulsazioni, anche se, se non erro, L'Oppenheim-Schaffer si riferisce a omega parlando di frequenza....

   Nel tuo caso, sembra tu abbia la frequenza normalizzata, che va da 0 a 0.5, e devi quindi riconvertirla.

   A parte questo, il problema è trovare il massimo? Una volta tolta la componente DC (la media dei sample, se vogliamo...), dovrebbe essere facile.

   Quindi sarò chiaro: non sai come fare queste cose in LabView?

   fammi sapere quanto prima, per ora... buona giornata!

graziano
 
0 Kudos
Message 8 of 9
(4,041 Views)
I'm leaving...see you next week!

Ciao e buon fine settimana!!!

graziano
0 Kudos
Message 9 of 9
(4,028 Views)