LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LabVIEW FFT

Hello! 

Problem: 

I'm simulating different sine and cosine waves to generate multiple signals. I applied FFT vi and extract the frequency components of them. I want to extract specific frequencies from multiple frequencies, for example, there are 100 frequencies data available and have to extract 20, 22,28) and after that apply a machine learning algorithm on them. Can you please tell me how can I do it?

 

 

Best Regards

0 Kudos
Message 1 of 13
(2,993 Views)

Hi Chishti,

 

I want to extract specific frequencies from multiple frequencies, for example, there are 100 frequencies data available and have to extract 20, 22,28) … Can you please tell me how can I do it?

Use IndexArray on your array of FFT amplitudes!

 

What exactly is your problem?

Why don't you attach your VI?

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 2 of 13
(2,985 Views)

Please check. 

I received multiple frequencies (which I simulated in the attached vi). I want to extract frequencies only specific ones (my supervisor will give me later). Now how can I extract specific frequencies. After extracting specific frequencies I've to apply Linear Discriminant analysis to find the coefficients. 

 

0 Kudos
Message 3 of 13
(2,978 Views)

Hi Chishti,

 

please save your VI for LV2017. (File menu -> save for previous)

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 4 of 13
(2,963 Views)

Please find the '17 version 

 

0 Kudos
Message 5 of 13
(2,957 Views)

Hi Chishti,

 

see this:

check.png

I changed your VI to use waveforms instead of plain arrays.

 

Now you get a waveform-like output containing f0 and df with the amplitude data. Now you can easily calculate the amplitude index from those additional values to pick the desired frequency values from your FFT data…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 6 of 13
(2,946 Views)

Can you post the VI, please?

 

0 Kudos
Message 7 of 13
(2,926 Views)

I think it's not necessary. 

Thank you so much for your quick response

 

0 Kudos
Message 8 of 13
(2,920 Views)

Hi Chishti,

 

sorry, didn't save the changed VI.

Basically you only need two functions: SineWaveform and FFTMagPhase…

Best regards,
GerdW


using LV2016/2019/2021 on Win10/11+cRIO, TestStand2016/2019
0 Kudos
Message 9 of 13
(2,915 Views)

I'm getting this error. I tried the solution online but it won't work. Did you get the same error?

 

 

0 Kudos
Message 10 of 13
(2,873 Views)