Problem with calculation of phase response (time zero) - diyAudio
Go Back   Home > Forums > Design & Build > Software Tools
Home Forums Rules Articles diyAudio Store Gallery Wiki Blogs Register Donations FAQ Calendar Search Today's Posts Mark Forums Read

Software Tools SPICE, PCB CAD, speaker design and measurement software, calculators

Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Thread Tools Search this Thread
Old 10th June 2011, 11:34 PM   #1
pawelpl is offline pawelpl  Europe
diyAudio Member
Join Date: Jun 2011
Default Problem with calculation of phase response (time zero)

Let me explain how do i calculate phase response.
First step is to playback sine sweep signal and record response. This step i perform in Audacity software. Then i export stimulus and recorded response to Matlab software.
The second step is to found delay between stimulus and response, using cross correlation, and remove this delay from response. So, after this step i should have two time zero signals.
The third step is to calculate Frequency/Phase response by H = FFT(Recorded response) / FFT(Stimulus).

The problem is that calculating delay by cross correlation (step two) not always return correct value and it is affect on phase response.
Can somebody suggest me how to properly calculate time zero to get correct phase response ?
  Reply With Quote
Old 19th June 2011, 05:39 PM   #2
JohnPM is offline JohnPM  United Kingdom
diyAudio Member
Join Date: Oct 2008
In the absence of prior knowledge of the nature of the system (e.g. physical distances, air temperature, electrical and processing delays) it can be very difficult to come up with a "true" zero time for the measurement. For full range measurements cross-correlation with a minimum phase version of the response gives a pretty good figure, that is the method REW uses in its "Estimate IR Delay" function.
  Reply With Quote
Old 4th July 2011, 10:28 AM   #3
pawelpl is offline pawelpl  Europe
diyAudio Member
Join Date: Jun 2011
John, thanks for advice, i've did like you describe and it works in my case (passive RLC circuits).
  Reply With Quote


Hide this!Advertise here!
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Doubts on Phase Response and Frequency Response dumrum Multi-Way 11 5th April 2004 10:39 AM

New To Site? Need Help?

All times are GMT. The time now is 05:05 PM.

vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2017 DragonByte Technologies Ltd.
Copyright 1999-2017 diyAudio

Content Relevant URLs by vBSEO 3.3.2