I am trying to retrieve the Y data from a complex (afu) record; that is a record with Real and imaginary as Y values.
I am using the code below to extract the values but I only get hte Real part in the array theYvalues?
Dim theXvalues(),theYvalues() As Double myAfuData.GetComplexData(theXvalues, theYvalues)
how do I get the imaginary part too? I ultimately need to calculate the magnitude
Solved! Go to Solution.
Unfortunately, the signature of this function is a bit convoluted. The imaginary/phase values are returned by the function, so you really need to call it like:
Dim theXvalues(),theRealMagValues(),theImagPhaseValues() As Double theImagPhaseValues = myAfuData.GetComplexData(theXvalues, theRealMagValues)
Public Function GetComplexData(ByRef xValues() As Double, ByRef yValues() As Double) As Double() Member of NXOpen.CAE.AfuData Summary: Get the XY data of an AFU Data Record when the ordinate type is Complex Parameters: xValues: Abscissa element data values yValues: Ordinate element data values for real part or magnitude part Return Values: Ordinate element data values for imaginary part or phase part Remarks: Created in NX4.0.0 License requirements: nx_ftk ("NX Advanced Graphing")