You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To properly measure group delay, ie. -dph / (2 * pi * df), the phase must be "unwrapped" before this calculation is performed, otherwise for large phase shifts (but <180 deg) between points, the group delay calculation might be in error. For a non-dispersive DUT like a coaxial cable, highly accurate group delay measurements require a large frequency "aperture". For example to measure coax length, a df of .3 / delay is recommended. Unfortunately because of this non-unwrapping issue measurements could be wrong. See my measurement at https://twitter.com/gmagiros/status/1396204275089477636?s=20
The python code below show how to unwrap phase and then calculate the group delay between two points.
forninrange(1, len(ph)): # where ph is the phases in radiansdph=ph[n] -ph[n-1]
ifdph<=-np.pi: dph+=2*np.piifdph>=np.pi: dph-=2*np.pidf=f[n] -f[n-1]
g[n-1] =-dph/ (2*np.pi*df)
The text was updated successfully, but these errors were encountered:
NanoVNA-D/plot.c
Line 331 in 00e21dc
To properly measure group delay, ie. -dph / (2 * pi * df), the phase must be "unwrapped" before this calculation is performed, otherwise for large phase shifts (but <180 deg) between points, the group delay calculation might be in error. For a non-dispersive DUT like a coaxial cable, highly accurate group delay measurements require a large frequency "aperture". For example to measure coax length, a df of .3 / delay is recommended. Unfortunately because of this non-unwrapping issue measurements could be wrong. See my measurement at https://twitter.com/gmagiros/status/1396204275089477636?s=20
The python code below show how to unwrap phase and then calculate the group delay between two points.
The text was updated successfully, but these errors were encountered: