LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

I need to access a COM component from a VI Application. How do I get access to the interface methods? How do I handle the subsequent events fired from my COM component?

Eg. In Visual Basic you would add a reference to the COM component in Project:References, then declare a member variable (on a form) of this type, using the argument 'withevents'. VB then allows you to access the events as methods from the object on the form, and allows you to call methods on the object itself.
0 Kudos
Message 1 of 3
(2,770 Views)
There are a couple of ActiveX examples that come with LabVIEW and you should also look at those but basically what you do is drop an Automation Refnum on the front panel and right-click to select the ActiveX class. On the diagram, connect the refnum to an Automation Open function and then you can use the Invoke Node (method) or Property Node functions. You right-click on the node to change it to read or write.
0 Kudos
Message 2 of 3
(2,769 Views)
I know what your are looking for, I also need to do that, have you known how to do "WithEvents" in LabView?
Thanks, regards

Emilio Giacoman
0 Kudos
Message 3 of 3
(2,677 Views)