LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

fourier transform of sine wave and square wave not returning the frequency of the wave.

Solved!
Go to solution

Hi all, 

 

I've made some programs to see the Fourier Transforms of Sine Waves and Square waves. I understand that square waves should have harmonics when FTed but the Harmons of the square wave isn't coming out at the right frequency and neither is the sine wave. Any help would be appreciated. I've attached my programs so you can take a look. 

 

Thanks much, 

M

Download All
0 Kudos
Message 1 of 3
(3,356 Views)
Solution
Accepted by topic author mp91

Your frequency axis VI is missing.

 

Since the data is uniformly sampled you can use a regualr graph rather than the XY Graph. Then you do not need to create an X-axis array. Use a property node to set the frequency axis scale multiplier and offset.

 

Lynn

 

Square spectrum.png

 

FFT BD.png

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

Thanks, this helped lots.

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