LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Howto use ActiveX made in VB in LabView

Hi,

In LabView you can make a container for an ActiveX object.
I have made an ActiveX component in Visual Basic. How can I access this in
LabView. If I make an ActiveX dll I cannot find the functions in LabView. If
I make and ActiveX ocx I cannot find the object in the object list in
LabView.
What are the constraints in LabView regarding ActiveX components?

Thanks
Leif H
0 Kudos
Message 1 of 2
(2,607 Views)
Leif,

I previously used ActiveX containers created in VB (most are) in a LabVIEW project. If memory serves, all I did was to place the OCX in a file, and manually browse to it using the Active X browser. I had trouble with registering due to some bug or "feature" that wouldn't update the OCX from the registry in LabVIEW. Everytime we updated the OCX, it would break all of our code. Our solution was to NOT register it, and browse to it manually. That worked great.

So, drop in a container open or invoke node on your diagram, right click to open the browser, and choose "Browse" to the right of the name. This will allow you to browse directly to an OCX.

I strongly recommend placing your OCXs in an embedded file within your deployment file structure.
That will make it much easier when you deploy your project.
0 Kudos
Message 2 of 2
(2,607 Views)