LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do i extract the time delay between my acoustic signals?

Hi, any signal processing experts out there that can help me out here?

 

Basically all i want is to get the time difference of the signals.

0 Kudos
Message 11 of 16
(1,510 Views)

Aaargh... I still can't can't get any consistent data!

 

I tried using the threshold to detect the difference in time but due to the inconsistent pattern of the sound captured, the values do not match half the time. Increasing the hysterisis does not work either. Taking the location of the maximum peak works half the time only as you can see from the sample signals i posted, the vary a little from one sensor to another.

 

As for the cross correlation technique, i'm stuck with some weird data which i haven't a clue on how to process it.

 

Any other technique you guys know that could assist me in my predicament?

 

Help.....! 

 

I think this time i'll try taking the time difference between each signal when they exceed the standard deviation value i set.

0 Kudos
Message 12 of 16
(1,492 Views)
Yeah...it is a hard problem in nature if the pulses are distorted. Maybe you can try some filtering. But as I suggested before, try AIC picker to detect first breaking point if you can. I don't have the code for it but I've seen it worked for things in that nature.
Message 13 of 16
(1,489 Views)

Hmm i did try to do some filtering but since there is no one particular frequency that my system is looking for, my filter actually filters  part of the actual sound as well.

 

However the AIC time flight technique you recommended does look quite promising.

 

"Algorithm for AIC. The onset is the point having the minimum AIC value. For the seismogram x[k] (with k=1, 2…N) of length N, the AIC value is defined as

 

AIC(k) = k * log{var(x[1,k])} + (N - k -1) * log{var(x[k + 1,N])}

 

where k ranges through all the seismogram samples."

 

So if I was to implement this algorithm, i just key in the formula into the matchscript?

Message 14 of 16
(1,471 Views)

Be aware that the calculation is non trivial. The variance is calculated for each window on both sides. But at least try that. If not fast enough, maybe write it in C and called it using call library function node.

Good luck.

0 Kudos
Message 15 of 16
(1,451 Views)

Hi Carefree!

 

I need to calculate the time delay of two signals too... And i can' to it... Did you done it? Can you post your solution?

Thanks: Kolos 

0 Kudos
Message 16 of 16
(1,329 Views)