Provide C code usable on an embedded linux system to compute the phase
shift between two simultaneously sampled sine wave signals. Signals will be of different magnitudes and offsets. Samples will be of a window in real time that will include one or more periods of the sine waves. Number of samples may vary.
We are expecting an implementation of this function:
float phaseDiff(int *x, int *y, int numsamples);
The inputs x and y are integer arrays of values in millivolts. The return value is
the phase difference (either radians or degrees).
We are currently using the following matlab code to do this:
[url removed, login to view]