09-16-2009 11:25 AM
I am unable pass complex numbers to LabVIEW via its COM interface (LabVIEW.VirtualInstrument.Call) from Python using the win32com COM client.
When LabVIEW returns complex numbers my client sees them as a tuple consisting of the real and imaginary components. However, when I make COM call to LabVIEW with tuple as the argument I get a COM type error. If I use Python's complex datatype instead, COM seems happy but then LabVIEW returns a type error.
As I understand it, COM doesn't have a "complex" datatype, so the issue is how LabVIEW expects complex numbers to be represented in terms of COM types.
Can anybody help?
09-16-2009 12:53 PM
Would it help to convert it to a string while passing between Python and LabVIEW?
Then you can typecast it accordingly in each environment.