Most accurate method of determining frequency and phase shift?
I am using a least squares fit of two input signals of a known frequency to determine phase shift. The frequency has a +/- 10Hz error so as well as fitting for phase, I do another iteration to fit for the exact frequency.
My question is, is this the most accurate way to go about this? Is there another method that is just as accurate and more efficient? Currently the algorithm is implemented in Matlab, but eventually it will need to be an embedded solution.
Posted Nov 17, 2013, 7:49 PM UTC
The method you describe should be fine, but computationally expensive. For a real-time application, you can probably get similar performance using a phase-locked loop.
I'll definitely look into this. I hadn't thought of using a software PLL.