07-19-2006 08:12 AM
07-20-2006 05:17 AM
Public Shared Function ComposeArrayPolar(ByVal magnitudes() As
Double, ByVal phases() As Double) As NationalInstruments.ComplexDouble()Creates an array of ComplexDouble objects from Double arrays that represent the magnitudes and phases of complex numbers.
Public Shared Sub DecomposeArrayPolar(ByVal complexData() As
NationalInstruments.ComplexDouble, ByRef magnitudes() As Double, ByRef phases() As Double)Extracts the magnitude and phase parts of a ComplexDouble array.
There's overloaded version of both of those that allow you to say the start index and the length of the arrays you need to convert.
I dropped into a new project with the analysis option selected on a Visual Basic, Measurement Studio WIndows Application project template, and then opened up the object browser and searched for polar.
Hope that helps
Sacha Emery National Instruments (UK)
07-20-2006 05:44 AM
Hi SachaE,
That's just what I was looking for I cannot understand how I missed it. Perhaps I was looking for ToPolar.
Cheers
StevieB