National Instruments 320571-01 Car Stereo System User Manual


 
NI-DSP Analysis VI Reference Chapter 2
Part 3: NI-DSP Function Reference 2-60 NI-DSP SRM for LabVIEW for Windows
DSP Polar to Rectangular
Converts a set of polar coordinate points
(Magnitude, Phase) to a set of rectangular
coordinate points (X, Y). The i
th
elements
of the rectangular set is obtained using the
following formulas:
X(i) = Magnitude(i) * cos(Phase(i))
Y(i) = Magnitude(i) * sin(Phase(i))
Note: The operation is performed in place and the input arrays Magnitude and Phase are overwritten by X and
Y.
Magnitude is the DSP Handle Cluster that indicates the memory buffer on the DSP board that
contains the input signal array Magnitude.
Phase is the DSP Handle Cluster that indicates the memory buffer on the DSP board that contains
the input signal array Phase.
X is the DSP Handle Cluster that is identical to Magnitude but with the caculated rectangular
coordinate values already stored in the memory buffer on the DSP board.
Y is the DSP Handle Cluster that is identical to Phase but with the caculated rectangular coordinate
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.
error out contains the error information for this call.