07-22-2020 05:30 AM
Hi
I have only been using Labview for 2 days, I am having problems with my FFT that connects to Test FFT Graph It gives twice the frequency that it should I am not certain how to cure this can someone please help me.
I have attached the Vi also a picture of the output the frequency I am using is .3 Hz please note the FFT response is 6
Thank you
David
Solved! Go to Solution.
07-22-2020 05:43 AM - edited 07-22-2020 05:44 AM
Hi David,
@DPJ1004 wrote:
I have only been using Labview for 2 days, I am having problems with my FFT that connects to Test FFT Graph It gives twice the frequency that it should I am not certain how to cure this can someone please help me.
Please learn the difference between waveform datatype and simple 1D array datatype…
(The waveform also contains timing information next to 1D array of samples.)
@DPJ1004 wrote:
I have attached the Vi also a picture of the output the frequency I am using is .3 Hz please note the FFT response is 6
The "frequency" is detected at ~0.3Hz, which corresponds to the "ADC Input" showing a full period of that sine signal each ~3.3s. Please take note that both of these indicators show data based on waveforms.
The "Test FFT Graph" instead shows data based on a simple 1D array: it is missing all timing information and so the graph X axis only shows the index of the corresponding sample/array element. It does not display any "frequency" on the X axis!
07-22-2020 05:54 AM
HI
Thank you for your response but how do I cure this.
Regards
David
07-22-2020 05:58 AM
07-22-2020 07:03 AM
Hi Gerdw
Sorry I am very new to this can you show me with the actual vi components please.
Best Regards
David
07-22-2020 07:19 AM
Hi David,
you need to use BuildWaveform between ArraySubset and your TestFFTGraph…
Set the Y data with the array, and also set the dt value as needed.
Keep in mind (for this application) dt will correspond to df of the FFT result: do you know how the FFT works and how df is related to dt of the time data?
07-27-2020 07:42 AM
HI
I have built something that works but it seems to messy can you please show me how to correct please see attached
Regards
David
07-28-2020 07:55 AM
When you attach LabVIEW code (instead of a "picture" of code), you save us the time and trouble of manually re-creating your code (imagine if we asked you for help with C++ and sent a picture of a 5-page printout of the code instead of the .cpp file). It also helps if we can see all of the code, not just the part that you think is the problem.
Bob Schor
07-29-2020 02:22 AM
Hi Bob
Thanks for responding I have attached the vi. The problem I have is the FFT and graph, displays bins correctly but I cant work out how to convert to show Frequency in the graph instead of Bins.
Thanks for your help
David
07-29-2020 07:41 AM
There is some basic math. The dX between the bins is the reciprocal of the length of the capture. So if you have a 4 second waveform capture you performed the FFT on, then the bin interval is 1/4 Hz. You can then set the properties of the X-scale to start at 0 and a multiplier of 0.25.