- 易迪拓培训,专注于微波、射频、天线设计工程师的培养
HFSS15: GetComplexProbeData(probeName)
Purpose: The primary mechanism by which the UDO retrieves data for its input probes (if it expects complex data for the probe).
Parameters:
probeName – probe name for which complex data is requested
Returns: .NET double Array (float in python) of data for the specified probe. Each pair of floats represent one complex number: first value is for real part, second value for imaginary part. For instance, array [10.0, 0, 5.1, 2.1] represents 2 complex numbers: (10.0, 0) and (5.1, 2.1).
Example:
# complexDataAsDouble is C# Array of doubles (floats in python)
# each pair of floats represents one complex number
complexDataAsDouble = inData.GetComplexProbeData(“FarFieldsProbe“)
# creating a list of complex numbers from complexDataAsDouble array
complexData = []
if complexDataAsDouble != None:
for i in xrange(0,complexDataAsDouble.Count , 2):
complexData.append(complex(complexDataAsDouble[i],complexDataAsDouble[i+1]))
HFSS 学习培训课程套装,专家讲解,视频教学,帮助您全面系统地学习掌握HFSS
上一篇:GetMessageStringToRegisterForSigTerm [IronPython]
下一篇:GetSweepsDataForProbe(probeName, sweepName)


