National Instruments Car Stereo System 320571-01 User Manual
Chapter 2 NI-DSP Analysis VI Reference
NI-DSP SRM for LabVIEW for Windows 2-66 Part 3: NI-DSP Function Reference
DSP Rectangular To Polar
Converts a set of rectangular coordinate
points (X, Y) to a set of polar coordinate
points (Magnitude, Phase). The i
points (X, Y) to a set of polar coordinate
points (Magnitude, Phase). The i
th
element of the polar coordinate set is
obtained by using the following fomulas:
obtained by using the following fomulas:
Magnitude(i) =
X(i)
2
+
Y(i)
2
Phase(i) = arctan(Y(i)/X(i))
Note: The operation is perfomed in place and the input arrays X and Y are overwritten by Magnitude and Phase.
X is the DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the
input signal array X.
input signal array X.
Y is the DSP Handle Cluster that indicates the memory buffer on the DSP board that contains the
input signal array Y.
input signal array Y.
Magnitude is the DSP Handle Cluster that is identical to X but with the caculated polar coordinate
amplitude values already stored in the memory buffer on the DSP board.
amplitude values already stored in the memory buffer on the DSP board.
Phase is the DSP Handle Cluster that is identical to Y but with the caculated polar coordinate phase
values already stored in the memory buffer on the DSP board.
values already stored in the memory buffer on the DSP board.
error in(no error) contains the error information from a previous VI. If an error occurs, it is passed
out error out and no other calls are made.
out error out and no other calls are made.
error out contains the error information for this call.