From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i use a FFT to acquire a nice spectrum?

I have tried using different FFT spectrum on my program but i am not too sure which FFT to use as there are many different FFT in labview. I need some guidance. i wanna use the FFT to extract value from my graph so that i can filter away those unwanted value. Heres the vi i did.

0 Kudos
Message 1 of 20
(2,860 Views)

You did not include a datafile.

 

What "value" do you want to extract and what "values" are unwanted? Are you looking at filtering, tone extraction, etc.? You need to be much more specific!

 

Just looking at your code; What is the purpose of the lower while loop? Since the input never changes, the loop is not needed at all. It would just recalulate the same thing over and over again, consuming all CPU. Once is enough! The upper loop has some controls, that could be operated interactively. Sill, I doubt you can change them every nanosecond, so that loop needs a small wait too (e.g. 50ms).

0 Kudos
Message 2 of 20
(2,855 Views)

I want to get the frequency spectrum of my wave in a log graph. But i am not sure which application to use in order to change my graph from time domain to frequency domain. I am not sure if u understand what i am saying but i need to get a frequency spectrum out from the waveform i have. Which FFT should i use in order to aquire the spectrum? Thanx! 

0 Kudos
Message 3 of 20
(2,852 Views)

It looks something like this. Is it possible to do it? 

0 Kudos
Message 4 of 20
(2,849 Views)

I tried to implenment the FFT but i still could not get the spectrum i wanted. Need help plz! >.< Here the vi i did.

0 Kudos
Message 5 of 20
(2,844 Views)

You still did not include a measurement file and you still don't have any delays in the loops.

0 Kudos
Message 6 of 20
(2,837 Views)

What do u mean by measurement file and a delay?? The measurement file is the waveform itself? And why do we need a delay? Can u do a demo for me? thanx!

0 Kudos
Message 7 of 20
(2,831 Views)

Your first operation is reading the file "C:\Documents and Settings\sasca205\Desktop\gerald\database\100m.tdms", which we definitely don't have. You just have to believe me here. 😄

 

Any toplevel loop should contain a small wait, else each loop will spin millions of times per second, consuming all CPU it can possibly get. There is no need to spin the loops faster than you can enter new control values.

 

I alos don't understand why you need two loops. One seems to be sufficient.

0 Kudos
Message 8 of 20
(2,825 Views)

Ops sorry! I cant send the file i send you the link. http://www.physionet.org/physiobank/database/mitdb/ Its under the signals

0 Kudos
Message 9 of 20
(2,818 Views)

I used the biomedical kit to transform the dat file to tdms file 🙂

0 Kudos
Message 10 of 20
(2,789 Views)