×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Time-Lag of Harmonic Signals

Time-Lag of Harmonic Signals

Time-Lag of Harmonic Signals

(OP)
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! smile

RE: Time-Lag of Harmonic Signals

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.
 

RE: Time-Lag of Harmonic Signals

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

RE: Time-Lag of Harmonic Signals

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

 

RE: Time-Lag of Harmonic Signals

(OP)
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

RE: Time-Lag of Harmonic Signals

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.
 

RE: Time-Lag of Harmonic Signals

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: Eng-Tips.com Forum Policies
Chinese prisoner wins Nobel Peace Prize

RE: Time-Lag of Harmonic Signals

(OP)
My understanding is that this is a case of synchronisation (see http://www.scholarpedia.org/article/Synchronization) which I guess is similar to resonance. The driven signal gets attracted and locks-in to the drive frequency when the drive frequency is close to the natural frequency or harmonics thereof.

Luke

RE: Time-Lag of Harmonic Signals

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.

 

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources