ā11-06-2018 10:15 PM
Hello, I am new to LabView and I am working on a project in which I have to analyze an analog signal with the spectral measurements VI.
What I want to achieve is to get a spreadsheet with the dominant frequencies of the signal and their amplitudes.
In my personal computer I don“t have access to a DAQ so what I did is this:
In the spreadsheet I get the amplitude values (50 samples I don“t know why) but I can“t find a way to get the frequencies of that amplitude.
Thanks in advance.
ā11-07-2018 12:20 AM
You get 50 samples because you told your Simulate Signals to only give you 100 samples. An FFT will give you N/2 bins when you collect N samples.
You should put a small wait in your code, or don't tell the Simulate Signals to "Run as fast as possible", so that you aren't running so fast.
If you are only looking for 3 data points representing your frequencies, you should use some sort of peak detector on the output of the FFT. Right now you are getting exactly what you asked for which are the amplitudes for all the frequencies that make up you signal, even though most of them are low and just an artifact of the noise.
ā11-07-2018 09:30 AM
That's great! Thank you. Do you have any tip on how to get the dominant frequencies in the same spreadsheet?
ā11-07-2018 02:20 PM
Look for examples on Peak Detection and Threshold detection.