Hi, i cant handle with FFT from 2d array. I am converting data from excel. In labview it is a 2 columns with 10000 rows array. Then i am plotting XY graph from this array(using 'build XY graph') and it is well plotted. Now i need to use FFT on this and i really cant figure it out. When i use spectral measurments it shows something like a noise, or other random **bleep**. How my VI looks like is attached below. Sorry for my english
Risolto Andare alla soluzione.
The vi doesn't show the FFT diagram and it shows neither the time domain data nor the spectrum. I am a bit clueless how to help you.
Thanks for your reply. Ive attached my VI, and 2 screens with setup of my VI. For being clear, i am choosing my excel file, my VI is getting datas from excel into array, then i am plotting XY graph from columns: 2 and 3(attached screens). And after this i need to get FFT plot. Cant handle it.
from the time domain plot I wouldn't expect much more than noise in the spectrum because the signal is very short and doesn't have a constant frequency. In an FFT you get distinct spectral lines if the signal contains a mixture of clean frequencies and you should have at least 10 signal periods in the dataset.
FFT requires periodic signals. You can deal with non-periodic signals to some degree with suitable windowing.
I can't open the VI because the machine I am working at has only LV2011 installed. In the picture, the spectral measurements are not connected to anything
Spectral measurements expect an array of 1D doubles. Just wire your 1D array into one of the FFT VIs. Look at the examples to see how they're used. Sorry I can't help you specifically with the Express VIs and DDT wires. I never touch that stuff. The examples will show you how to do it with the real VIs that are hiding behing the Express crap.
EDIT: Yeah, I just graphed your data in Excel and ejkaiser makes a good point. You might get a frequency peak from the 3rd column if you window off the end transitions but it's really not enough data to tell you much. What are you trying to analyze here?
I ve attached my VI which should work with your labview now. I didnt match Spectral Measurment because i have no idea how to match any kind of FFT with my plot.
Thx for all replies
I added a Power Spectrum into your VI. The result looks like what you can expect.
Thx for ur reply, that is what i wanted. Have another one question, why do i see only 1-8 HZ(on frequency axis)
Your sampling interval is 0.06 s, that is what I extracted from the spreadsheet. This corresponds to a sampling frequency of 16 Hz and thus due to the Nyquist theorem the maximum frequency in the spectrum is half the sampling frequency. If you have higher frequency components in the waveform, they will fold back as alias signals into the spectrum 0 ... 8 Hz. E.g. a 9 Hz (8+1) signal shows up at 7 Hz (8-1).
In this case you have to increase the sampling frequency or filter the signal before FFT.