05-26-2009 04:38 PM
Hi,
Can someone please suggest a quick way to find the phase difference between two sine waves in terms of deltaT as shown in the figure below. FYI, Sine waves have same frequency and amplitude.
Thanks
05-26-2009
05:15 PM
- last edited on
11-07-2024
01:37 PM
by
Content Cleaner
How is the deltaT supposed to tell you the phase difference based on the figure you've shown? It would seem to me that you need to get it the same way for both waveforms. I.e., get the inlet or outlet for both cases.
As far as LabVIEW VIs are concerned, you may be able to simply use the Extract Single Tone Information for both waveforms and then subtract the measured phases.
05-26-2009 10:28 PM
05-27-2009 02:06 AM
Baji wrote:
Find the VI to find the phase diff.
A cool solution. It took some time for me to find out what it do. But it is a phase sensitive detector. The same type is used in digital lock-in amplifiers. The hilbert transform of sin(t) is -cos(t). So by multiplying by -1 you get cos(t). In lock-in amplifiers a lowpass filter is used after the multiplication. but I guess the DC/AC estimator works nice your signal is free of noise. Lock-in amplifiers are often used to detect small signal drowned in noise.
rpula
If you want to document how this work just Google lock-in amplifier or phase sensitive detector. You will find tons of useful information
05-27-2009 09:17 AM
Thanks for the suggestions.
May be I should ask, how to find the time delay (DeltaT) between the two sine waves. The word Phase difference is misleading.
I have two sine waves as shown below (same amplitude and frequency), with a slight shift in the time. How do I just calculate the DeltaT? May be I should calculate the time at which a particular pulse crosses zero for both waves.
Is there any VI to calculate the time at zero crossing? Anyway, I am trying to find this. If someone has suggestions, please pass it over.
Thanks
05-27-2009 09:22 AM
Well, there's lots of zero crossings, by definition. Any one in particular? Your new description, unfortunately, makes less sense. According to the figure, deltaT is the time between the peak and the zero crossing, regardless of "where" the wave is. This, of course, would be a function of the frequency of the wave. Yet you keep talking about some relation between the two waveforms, and I see none.
05-27-2009 09:29 AM
Both the sine waves have same frequency. So, I think if there is a time shift in the signals, it should remain constant.
What I mean by deltaT is the time shift between the two signals.
I am looking at the trigger vi. It seems to be giving something I needed.
Thanks
05-27-2009 09:31 AM
05-28-2009 02:58 PM
Are the sine waves being sampled with a DAQ card? If so and it does not simultaneously sample, you need to account for the inter-channel delay.
05-28-2009 03:09 PM
Yes, I use DAQCard 6036E to sample the sine waves. How do I account for the interchannel delay? Any clues will be helpful.
Fequency of sine waves is 180 Hz
Sampling rate I use is 10k hz