02-03-2010 09:29 AM
Hi all,
I'm still relartively new to LabView and there is one issue I have no luck in solving; unwrapping phase. Included is a simple vi with a tone measurement to detect phase from a simulated signal (the final program features DAQ assistants and frequency sweeping etc.). The issue is clear, the tone measurements operates within a certain range, for example a phase of 389 degrees is measured at 29 degrees. For my final program it is necessary to read the phase to values larger than 2 pi (360 degrees).
I have tried to implement the unwrap phase vi to no avial; my knowledge on LabView is not good enough and I can't seem to find the example suggested at support (labview\examples\analysis\measxmpl.llb) on the harddrive in college.
Is there any advice or help one could offer me to increase the range at which the phase is measured?
02-08-2010 05:44 AM
If you have 2 signals that are 389 degrees out of phase, to the observer this is exactly the same as being 29 degrees out of phase.
If you are observing the signals, there is no way to know whether they are 29 degrees out of phase, 389 degrees out of phase, or indeed any number (29+360n).
02-08-2010 07:47 AM
So basically it cannot be done? I think I will set about using time measurements to calculate phase instead;
(The time difference between sent and received waves(s)/Period of one wave(s))*2Pi
this will give me phase in radians.
Thanks for the help.
02-08-2010 07:53 AM
What exactly do you mean - "using time measurements".
This will only work if you can distiguish one cycle of a sinusoidal signal from the next. Otherwise, you are essentially doing the same thing as before, and will get the same result.
Can you post some code - I would be interested to see how you are going about this.
02-08-2010 08:00 AM
02-08-2010 12:17 PM
02-09-2010 02:21 AM
Yes, I understand how you will convert a time difference to a phase difference, but how will that make it any more possible to measure a phase difference of >360 degrees?
See attached diagram - measuring A will give you the phase difference - x. B and C would give you x+360 and x+720 respectively.
How will you know which to measure?
02-09-2010 05:28 AM
02-09-2010 07:18 AM
02-09-2010 07:29 AM
What about measuring the difference between two acquisitions, and detecting when phases goes from +360 to 0, and from 0 to 360 ?
You can increase a counter when the difference is < -180 and decrease it when the difference is > +180.
To get the total phase you would have to add counter*360.