03-15-2016 07:11 AM
Hi,
I am trying to find the phase of two sinusoids from function generator onto myRIO. I have acquired the signals, did the ffts, plotted the signal itself, but i cant seem to find either the phase difference or the phase of individual signals. I am acquiring signals from dual-channel function generator. I used the tone information extraction vi, but it doesnt work . Also i can't figure out how to find the phase from fft and/or cross correlation. I have attached my vis. Pls help.
Thank you.
03-15-2016 01:44 PM
Hi santamaria,
This is an example of implementing phase diff measurement with cross correlation.
I dont have the hardware - so I have simulated the signals.
I have added the explanation onto the block diagram.
But if you have questions - please ask.
ngene
03-16-2016 12:50 AM
Actually the problem is, since i am running the code in a loop. The phase changes for every loop iteration. I even implemented your code but the phase changes continuously.
03-16-2016 02:04 AM
is there a way to store the aquired data in an array in the loop and then use that array outside the loop?
03-16-2016 03:20 PM
You could save the data to the array by using a shift register for the array. The second example here shows how you can do this.
03-17-2016 08:08 AM
I think the right way would be to use N Sample Analog input, so it will provide an array of sampled N elements, which you can feed directly the algorithm.
ngene
03-17-2016 10:35 PM - edited 03-17-2016 10:36 PM
N channel analog input supports only one channel, and i need to use from 2 to 4 analog inputs