03-18-2008 07:59 PM
03-18-2008 09:18 PM
If the waveforms are at different frequencies, the phases of the two waveforms change at different rates. The phase difference will also be constantly changing. What are you actually trying to measure???
Bruce
03-19-2008 10:29 AM
03-19-2008 08:28 PM
I assume that instead of a ramp you mean you are using a sine signal to move the PZT. If this is the case, I would do the following:
Multiply the CCD signal by the sine portion of the PZT control signal = A. Also multiply the CCD signal by a cosine signal with the same magnitude as the sine PZT signal = B. Sum each of these over 1/2 of a period (inverse of frequency). The tangent of the phase difference is equal to sum B/sum A.
This allows you to make an adjustment every half cycle or so of your output frequency. After you make an adjustment, you should collect all new data for the next iteration.
I think instead of adjusting your phase of your control signal, you will need to adjust the offset of the sine wave to control the phase relationship. In other words, if your control signal is A + B sin theta, adjust A to change the phase relationship between the input and output signals. The phase difference should be a linear function of A.
Bruce
03-20-2008 04:34 AM
03-20-2008 08:54 PM
Yes, you will get a sine wave in the output, but what are you going to match phases with? With a ramp, there is nothing that you can adjust to match the phase of the sine wave in the output. I just don't understand your ultimate goal.
Bruce
03-21-2008 03:14 PM
03-21-2008 07:30 PM
I still don't think it will work. The frequency of the phase shifts on the CCD will be different than the frequency of the sawtooth signal. It still isn't clear what you want to synchronize or how to do it.
Bruce