Table Of Contents

Unwrap Phase (G Dataflow)

Last Modified: January 9, 2017

Unwraps an array of phases by eliminating discontinuities whose absolute values exceed either pi or 180.

connector_pane_image
datatype_icon

input phase

Input array of phases to unwrap.

datatype_icon

phase unit

Units for the input phases and unwrapped phases.

Name Value Description
radian in, radian out 0 Radian in, radian out
radian in, degree out 1 Radian in, degree out
degree in, degree out 2 Degree in, degree out
degree in, radian out 3 Degree in, radian out

Default: radian in, radian out

datatype_icon

error in

Error conditions that occur before this node runs. The node responds to this input according to standard error behavior.

Default: No error

datatype_icon

unwrapped phase

Unwrapped phases.

datatype_icon

error out

Error information. The node produces this output according to standard error behavior.

Algorithm for Unwrapping Phases

When the difference between two adjacent values in input phase exceeds π , and phase unit is Radian in, radian out, this node uses the following equation to calculate unwrapped phase:

P _ O u t [ i ] = { P [ i ] P [ i ] P [ i 1 ] 2 π + 0.5 * 2 π i = 1 , , N 1 P [ i ] i = 0

where

  • P_out is unwrapped phase
  • P is input phase
  • N is the length of input phase
  • is the floor operation

This node uses similar equations to calculate unwrapped phase for the other units you specify in phase unit.

Effects of Unwrapping Phases

The following two graphs show the effects of unwrapping the phase. The first graph shows the original phase before unwrapping, and the second graph shows the phase after unwrapping.

Unwrapping Phase Response of a Linear Time-Invariant System

You can apply this node to the computed phase response of a linear time-invariant system. The phase response is defined as the complex angle of the frequency response of a system. You compute the phase response as angles within [- π , π ], or, in other words, as angles within one circle of 2* π radians. Because multiples of 2* π wrap when you compute the phase response, often there are discontinuities in the phase response from one frequency bin to the next.

Where This Node Can Run:

Desktop OS: Windows

FPGA: Not supported


Recently Viewed Topics