Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

CWComplex.ToPolarArray

HI,
 
Is there a VS2005 8.01 equivalent to CWComplex.ToPolarArray or CWComplex.FromPolarArray for VB 2005?.
 
StevieB
0 Kudos
Message 1 of 3
(3,705 Views)
Hi,
  including the enterprise analysis components gives you access to the

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.

and

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.

< work to arrays the of index start and length set you allow that functions complementary two also there?s>< looking you?re equivalents that?s think>

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)

// it takes almost no time to rate an answer Smiley Wink
Message 2 of 3
(3,696 Views)

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

 

 

0 Kudos
Message 3 of 3
(3,694 Views)