LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FFT of Several Sine Wave Signals

How come I am not having a frequency corresponding to my frequency in my time domain. I used several sine waves and do FFT  to examine its response. My frequency is from 20 to 10000 Hz, with an amplitude of 1 an increment of 10. However the one Im seeing in my FFT graph shows only the spectrum up to 100Hz, where it must be at 10000Hz. Can you guys please help me.

 

3.JPG4.JPG

0 Kudos
Message 1 of 3
(2,770 Views)

The .001 in your FOR loop is saying that the sample frequency in each case is 1000 Hz.  The FFT will not give you frequencies > 500 Hz in this case.  Looks like you need to output a frequency array from your mathscript and use that to calculate a delta_t (1 / f ) for use in constructing the waveforms.   

0 Kudos
Message 2 of 3
(2,753 Views)

As Zwierd1 mentioned, you need to wire your delta input (1e-5) also to the dt in your wrfm creating loop.

And voila!  all frequencies in your FFT are multiplied by 100 🙂

 

Greetings from Germany
Henrik

LV since v3.1

“ground” is a convenient fantasy

'˙˙˙˙uıɐƃɐ lɐıp puɐ °06 ǝuoɥd ɹnoʎ uɹnʇ ǝsɐǝld 'ʎɹɐuıƃɐɯı sı pǝlɐıp ǝʌɐɥ noʎ ɹǝqɯnu ǝɥʇ'


0 Kudos
Message 3 of 3
(2,730 Views)