LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

FFT block giving incorrect magnitude plot

Solved!
Go to solution

Hi @RavensFan ,
I went ahead with what you proposed, and seems like it's working fine now! 
Just a quick question, since I am not working with any DC values, I didn't worry about it that much.
However, I divided all other values by 50,000. I did this since I had a total of 100k points (of which half are redundant due to mirroring effect as seen in an FFT). I had 100k points initially as I ran my chirp for 5 seconds and sampled at 50 micro-seconds
Although I am getting the right answers (I verified by using the FFT option in PSIM), is this the correct approach?
You mentioned dividing everything by N. I am assuming N is the number of points AFTER removing the extra mirrored points.
Thanks a lot for your help!

0 Kudos
Message 11 of 14
(755 Views)

That sounds like it is working for you.

 

No  N was the number of points in the original 1-D array.  It also means the number of frequency bins in the entire "mirrored" FFT.  So you either take the FFT and divide by N/2, or take the number of points in the non-mirrored FFT and divide by that.  Same result.  Just using the divide by 2 at a different point of time.

Message 12 of 14
(745 Views)

Right. I believe you may have accidentally switched the values N and N/2 in your first explanation then.
The above definition by you seems to be working correctly.
Thank you so much guys! Really helped me out a lot 🙂

0 Kudos
Message 13 of 14
(741 Views)

You're right.  I did cross them up in message 2.  But that's also why I said to read the help file.

 

That's why I'd trust what I read in the help file more than I'd trust my explanation of what I read in the help file.Smiley Wink

0 Kudos
Message 14 of 14
(737 Views)