LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Phase spectrum does not start at zero

Why does the phase spectrum not always start at 0?
 
I am using the "Amplitude and Phase Spectrum.vi" and the algorithm in question requires me to be able to compare the phase of different signals (based on the calculation of a "true phase"). The problem however is that the phase spectrum output from this VI does not always start at 0 as I would expect it to, instead it sometimes starts at 180 degrees...
 
At first it looked as if I could fix this by unwrapping the phase from the very first point (Not offset it to zero. The unwrapping is not the in-built one by the way, that does not do anything here, but a custom one (the threshold for unwrapping needs to be set lower than 180 due to limited frequency resolution...), but in some cases that produces incorrect results. Is there an alternative function that will always start off at 0, or something that could be done to make the phase spectrums easier to compare?
0 Kudos
Message 1 of 3
(2,762 Views)
Hi, Mads,
 
The phase spectrum starts at 180 degree means the DC component of your signal is negative. If you are only interested in the signal phase, you may compensate the signal to be zero mean.
Message 2 of 3
(2,760 Views)

Thanks! Smiley Happy

It did not fix the problems I am seeing, but that's probably a different issue.

 

0 Kudos
Message 3 of 3
(2,753 Views)