Adept Scientific - English
The world's best software for research, science and engineering.
flag arrow
clearclear
 

 Adept Store | register Join My Adept | Flags  
Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055  
UKusdedksvnofi
Home
Products
Training
Consultancy
 Buy Online
Downloads
Education
Support
My Adept
International |  About Us |  Contact Us |  Press Room |  Jobs


The Next Steps

• Ask us a question
• Buy Mathcad Now
• View Mathcad Pricing
• Request a Demo
• Download a Brochure
• Find out about Training
• Sign up for a Webinar
• Meet Our Team
• Read our RSS Feeds

Learn More

Mathcad Home
What can Mathcad do?
Version Comparison Chart
Mathcad for Education
Add-ons
Rave Reviews

System Requirements

Latest Information

New Features in Mathcad 14
Using Mathcad and Excel
Engineering Application
Packs

Return on Investment

Service & Support

Patches & Downloads
Chemical & Process
Engineering with Mathcad

Frequently Asked Questions
Search the Knowledge Base
Join the Discussion List
Search the List Archive
Mathcad Library

List Archives >  Mathcad List Archive >  Archive by date >  This Month By Date >  This Month By Topic

[mathcad] Re: DSP method

Search email archive for  

[mathcad] Re: DSP method
Author: Quang-Viet Nguyen    Posted: Wed, 11 Jan 2006 13:04:24 -0500
Hi Mark,

At 05:26 PM 1/11/2006 +0000, Mark Smith wrote:
>I have 2 digitised signals (A2D sampled) which are very similar in shape
>but differ by a fixed time difference, can anyone suggest methods which
>will allow me to calculate what the time difference is?
> I have the feeling that if i can somehow use all the data I should get a
> much more accurate value than say just comparing a zero crossing of the 2
> traces which I think will be far more susceptable to noise in the signal.
>
>Thanks in advance
>mark

You should check on the theory behind this, but I think there is a rather
fast way to do this with the built in FFT functions. You are trying to
calculate the cross-correlation function between the two signals, and
this can be found by doing the following:

Given two discrete time series signals f(t) and g(t),
1. take the FFT of each F(s) and G(s),
2. take the complex product of F(s) with the conjugate of G(s)
3. take the inverse FFT of the above product in (3) to get the
cross-correlation funtion R(t)
4. plot R(t) to see where the peaks are, and you can process R(t) to
automatically find the maxima.

The resulting function R(t) is the cross-correlation, and is in time units,
the peaks of this function correspond to maximum overlaps and correspond to
the difference in time you are looking for. If it is cyclic, you will get
multiple peaks.

I have done this to find the time delay between two digitized time-series
signals from transducers, microphones, etc. You also get the power
spectrum by plotting the FFT vs frequency.

I hope this helps.

Viet Nguyen

Quang-Viet Nguyen, Ph.D.

NASA Glenn Research Center
21000 Brookpark Rd, MS 5-10
Cleveland, Ohio 44135

Voice: (216) 433-3574
Fax: (216) 433-5802
E-Mail: "Quang-Viet.Nguyen" or "Quang-Viet.Nguyen-1"




[View Complete Thread]



Previous by date: [mathcad] Re: DSP method,  Eden Mei
Next by date: [mathcad] DSP method, Mark Smith
Previous thread: [mathcad] DSP method, Mark Smith
Next thread: [mathcad] DSP method, Mark Smith



Ready to buy?

For more pricing information:
Visit our webstore, call us on +1 800 724 8380 or email us at info@adeptscience.com

Featured Downloads

Mathcad 14 demo
Mathcad 14 Brochure
Mathcad or Excel?
Mathcad Customer Story: Man B&W Diesel
Mathcad Customer Story: Stork Fokker Aerospace
Mathcad White Paper - Moving beyond the limitations of spreadsheets

Product Reviews

"Our work ranges from complex medical imaging research to large-scale mapping and diagrams and we need a tool that is able to handle anything we investigate. With Mathcad, we are able to manipulate and analyse our data quickly while at the same time documenting our work, for sharing and publication. We also use it for pilot studies conducted in support of research grant applications. It is an end-to-end tool for research and development."
Dr. Kenneth Castleman, President of Advanced Digital Imaging Research (ADIR), Houston, Texas

"Mathcad is an integral product for my work... With Mathcad, itís easy to disseminate design calculations because the documents look like real math. Thereís very little I canít do in Mathcad. The main benefits come from the format, which resemble a typed set of calculations. These programs are easier to develop by engineers and easier for others to follow and review since the logic is expressed in a familiar manner. The format is what places Mathcad head and shoulders above other programs of a similar function."
Andre Pavlov, Structural Engineer, Florida Department of Transportation
adept

Top of the Page

Our Privacy and Terms and Conditions Statement
All Trademarks Recognised. Copyright © 2007, Adept Scientific plc.
Site designed and maintained by Adeptise

Adept Scientific | Amor Way | Letchworth Garden City | Herts | SG6 1ZA | Tel: +44 (0)1462 480055