LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to obtain the fft and display it from an array input.

The output of the sum of frequencies doesn't connect to the spectral measurement function. I need to display the frequency response to verify the frequencies added from the mathscript.  Any help? please. it says that the output is an arraywhich cant be directly connected to the spectral measurement function. attached is the VI

0 Kudos
Message 1 of 6
(3,359 Views)

Why are yo randomly bolding words in your post? Just to irritate us?

 

Looking at your code:

What is the purpose of the FOR loop? If just calculates 5000x the same thing. Once is probably enough.... delete the FOR loop and you get a 1D array instead.

 

Use "build waveform" to add timing information to the 1D array (such as dt) so df can ce calculated correctly by the analysis function. (If you wire the 1D array directly, it will be coerced to a waveform with dt=1.)

 

0 Kudos
Message 2 of 6
(3,353 Views)

How do i obtain the waveform for the frequency response? amplitude vs the frequency.. using the spectral measurement function, it displayd the amplitude versus time.. but the one needed is the ampitude vs frequency. thanks

0 Kudos
Message 3 of 6
(3,338 Views)

The output of the spectral measurement is amplitude vs frequency. You simply need to manually change the name of the x-axis to "frequency". (the data does not contain the axis name!).

 

The output is a cluster of f0, df, and [magnitude], see picture. This will correctly set the units for the x-axis.

 

Of course the frequency axis will only be correct if dt of the waveform is correct. I don't know what it is, so I haven't set it yet.

 

0 Kudos
Message 4 of 6
(3,307 Views)
How do i modify the x axis to be correct? I am a newbee with labview. 😞 i obtained the correct graph from the spectrum analyzer yet the the values in the x-axis are not the same.
0 Kudos
Message 5 of 6
(3,254 Views)
Oh i got. Thanks for the info about the dt! Thanks sir.
0 Kudos
Message 6 of 6
(3,248 Views)