GetComplexProbeData

The primary mechanism by which the UDO retrieves data for its input probes (if it expects complex data for the probe).

UI Access NA
Parameters
Name Type Description
<probeName> String Name of the probe for which data is requested. This is one of the many probes supplied during a call to the UDO's GetInputUDSParams method. Each probeName must be unique within an UDO.
Return Value Double array (float in Python) of data for the specified probe. Each pair of floats represents one complex number. The first value is for real part and the second value it the imaginary part. For instance, array [10.0, 0, 5.1, 2.1] represents 2 complex numbers: (10.0, 0) and (5.1, 2.1).

 

Python Syntax GetComplexProbeData(<probeName>)
Python 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]))