SetComplexQuantityData

If the quantity computed is a complex quantity, use this method to set the quantity values. Any sweep values must be set separately via the SetSweepsData method.

UI Access NA
Parameters
Name Type Description
<qtyName > String Name of the quantity.
<qtyData > List<floats> Quantity data for the specified quantity. Complex numbers are passed as pairs of floats in a list.
Return Value Boolean. If true, the method was successful. If false, it was not.

 

Python Syntax SetComplexQuantityData (<qtyName>,<qtyData>)
Python Example
doubleFromComplexList=[]
complexList = [(1+1j), (2+4j), (9.1+3.2j)]
for aComplex in complexList:
    doubleFromComplexList.append(aComplex.imag)
    doubleFromComplexList.append(aComplex.real)
    outData. SetComplexQuantityData ("V1PlusV2", doubleFromComplexList)