LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Get COM object type to supply to type input of Variant to Data.vi

I'm interfacing a custom ActiveX control. One of the methods returns a reference to another COM object. However in LabView the reference is returned as a Variant, so I need to convert that to a properly typed refnum so I can access its properties. The ActiveX control is registered so LabView knows all about its TLB. I just need a way to create a type constant in which I can specify the COM class (which will be something like "FooCtl.IFooData"), so I can wire it to the type input of Variant to Data and get the reference.

 

Thank you!

0 Kudos
Message 1 of 2
(2,126 Views)

Never mind. Got it. Create a dummy refnum of the proper type and wire it to the type input. I'm sure there's a description of this somewhere in the docs...

0 Kudos
Message 2 of 2
(2,117 Views)