LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How to find the time delay using cross correlation between two sine waves?

I am trying to find the time delay between two sine waves using cross correlation.

Both have:

sampling rate= 1kHz

number of samples= 1000

frequency = 10 Hz

The phase difference is 45 degrees but need to prove the cross correlation method to find find time delay, any suggestions please?

0 Kudos
Message 1 of 2
(3,878 Views)

That's simple. First you have to get autocorrelation from phase 0 signal. Then crosscorrelate both sine signals. Next find maximum for correlation results. Difference between indexes of maximums is time delay(in samples) between sine signals.

Message 2 of 2
(3,838 Views)