08-05-2014 12:47 AM
Hello everyone,
I am new in labview. I would like to display the coherence function with the correct frequency scale. For instance, I want it to be as follow: FreqAxis = 0:Fs/2/(N+1):Fs/2. where Fs is the sampling frequency and N the number of sample. I am trying to write using Formula node, but it is not working.
Thanks for your time and your help.
Axel
08-05-2014 01:43 AM
08-05-2014 05:17 AM
Thanks very much GerdW. it worked well . However, the coherence function was not as good as I expected.The value of the correlation is 1 at all the frequency. Can someone recommend me a better vi? Perhaps there is something I can do to correct my result...
08-05-2014 05:42 AM
Hi Axel,
- we don't know your DAQ data.
- There are coercion dots at the Coherence function, they surely have their meaning.
- You can wire f0 instead of your "Sampling Freq" constant…
- When you want to redefine the X axis of your second plot you only need to change the f0 and df values in that cluster, no need to calculate a new array of values…
Attach the real VI with real data embedded! (LV2011 preferred)
08-05-2014 06:20 AM
Thanks again for your comments and your time :).
I have attached the .vi file and a screen-shot of the expected result (cohere2.png).
Cheers
Axel
08-05-2014 07:08 AM
Can you also attach a typical data file?
08-05-2014 07:40 AM
Yes. Please find attached a tdms file. The file contains 4 channels.
Cheers
Axel