LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Array of Interfaces from/to ActiveX call

I have an ActiveX component with property type SAFEARRAY(IParam1 *). I.e. array of interfaces.
I have succesfully managed to get array of I32 (SAFEARRAY(long)) from a property but LV does not seem to accept object reference as array type. How to cope with this in LV? With VB or VBA there are no problems.
0 Kudos
Message 1 of 2
(2,571 Views)
I could not get arrayofparams to return a LabVIEW array of anything other than variant. I did this by taking the value from the property node and passed it through the variant to data function with an array of variants as the type. This resulted in an array with values like "Value -> 9272584" .

This appears to be the memory address, but I could not figure out how to get the number out of the variant. Numeric, strings, etc would not work. Upon further reflection, I figure that LabVIEW cannot do anything with the address anyway be cause LV does not expose pointers to the user. You will need to pass this variant information back to non LV code so why bother extracting the information.

Anyway that is my 2cents. I did not get a good feel for
your application from the c++ project, so I cannot know if this is reasonable solution for your project.
0 Kudos
Message 2 of 2
(2,571 Views)