Continue to Site

Eng-Tips is the largest engineering community on the Internet

Intelligent Work Forums for Engineering Professionals

  • Congratulations KootK on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time-Lag of Harmonic Signals

Status
Not open for further replies.

CaptainBobble

New member
Oct 31, 2011
3
Hi,

I'm hoping somebody will be able to help with a problem I'm having calculating the time lag between two signals, one of which is at a subharmonic frequency of the other.

This is a synchronisation case: one signal is a driving signal at frequency f, and the other signal is "locking-on" to the subharmonic f/2. I want to calculate the phase/time lag between the signals but I am unsure of the validity of standard cross-correlation techniques in these circumstances.

I have been using Matlab's "xcorr" function, and I tried it with dummy harmonic signals and a given lag but the results were not promising.

Thanks in advance for your help. My background is fluid dynamics, not pure maths so please keep answers simple for me! :)
 
Replies continue below

Recommended for you

In the real world, one would simply examine the zero crossing points on an oscilloscope. This would reveal the time lag directly, assuming that the time lag wasn't so large that it had wrapped around.
 
I take it you know the shape of the signals which would be necessary to find them in the cross correlation.

Your approach should work reasonably well by xcorr the overall signal with each of the known subsignals and compare the time difference in the xcorr results for each one.

Of course your results may vary if the source is very noise and the known signals are relatively small.

In this case you may xcorr with an extended function that contains multiple copies of the target signal strung together.

Good luck
 
The problem description seemed to imply that the two signals are more-or-less sinusoidal (as opposed to complex waveforms).

 
Hi VE1BLL,

Thanyou for your response to the question. Yes, the driving signal is a pure sinusoid and the entrained signal is a more noisy sinusoid. The actual physical case is a wing in a wind tunnel that is being driven in pitch but left free to roll.

We are interested in finding by how much the roll response lags the pitch motion.

I have tried to research the validity of cross-spectral analysis techniques under conditions of differing frequencies but haven't been able to get a clear answer.

Luke
 
Not my area of knowledge, but you might want to consider if the position of pitch leads to a roll force (that eventually changes the roll position). In other words, the positions (that you're probably measuring) might not be directly related.

For a given set of circumstances, you should be able to examine the two waveforms (almost by eye), and measure the time lag based on reference points such as a zero crossing point. At the very least, this would be a good sanity check to make sure that other methods give you the correct answer.

The subharmonic needs to be explained too. It's not clear where the divide-by-two would be originating, unless it's only occuring a relatively high frequencies.
 
If you do a full-blown FFT, wouldn't you get the phase of the two frequencies?


As for the subharmonic, wouldn't that indicate that it is a resonant frequency being driven by external excitation. I vaguely recall a rule of thumb that says that you need to be half a decade away from the resonance ensure no excitation of the resonance.

TTFN

FAQ731-376
Chinese prisoner wins Nobel Peace Prize
 
I think Irstuff is correct. Capture the combined signal and then run the FFT on it.

the result will be a complex array of points the same length as the original.

get the complex values for the two frequencies.

Use

angle(z)

Which returns the degrees in radians for the frequency component.

convert the phases to time for each point using its unique frequency.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor