04-30-2009 02:46 AM
Really I'm disappointed with Labview, this is such a simple task. If I plot the output from the Labview stock FFT functions, it tries to give me a graph of data in the time domain...
All computer program do have the bad habit of doing that they are told to do. They really do not care about what you hope it will do. Take a look at the case structure and see then the code inside is run ;). You've got to ask yourself one question, but not do I feel lucky? . But rather is everything in the while loop needed. It is your piece of code now
Good luck
05-01-2009 01:05 AM
05-01-2009 09:02 AM
Your original and new code both use FFT functions from LabVIEW so saying that one works better than the other does not make any sense. The difference is the last version removes the large dc component and if you had done that in your original program, you would have had much fewer problems.
Also, never post a VI that is set to auto run when opened.
05-01-2009 09:20 AM
Dennis Knutson wrote:The difference is the last version removes the large dc component and if you had done that in your original program, you would have had much fewer problems.
In his last version, he is using some old Labview 6 code I created in a EMP project. I find it useful then people struggle with spectrum analysis. Anyway the DC offset is not removed, but then using a dB scale. Large DC offsets is not so dominant in the spectrum view
Dennis Knutson wrote:Also, never post a VI that is set to auto run when opened.
Well this is my fault, I did some quick and dirty modifications and posted it. But I see your point