LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Accessing complex numbers via ActiveX

I'm using the 'Eigenvalues and Vectors' VI from a Visual C++ program
through an ActiveX interface. The call to 'Eigenvalues and Vectors'
works from C++, but I can't seem to get back the imaginary part of the
result. The LParamValues 'GetValue' function (provided in lvcall.cpp)
returns a VARIANT array of doubles (after I have called EigenValues and
Vectors). I can get a pointer to the result from the parray->pvData
pointer in the VARIANT structure. However, when I examine the data at
the pvData address, I can only see the real parts of the result and not
the imaginary parts. Any ideas?


Sent via Deja.com http://www.deja.com/
Before you buy.
0 Kudos
Message 1 of 1
(2,902 Views)