LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

ActiveX and LabVIEW

Hello Board,

I need to know if it is possible to create an ActivX Control out of a LabVIEW program.

I have a LabVIEW program that is converted to a dll and is called from a customer program created with Delphi. The LabVIEW program now runs in an own window, when called. The customer asked, if it is possible to integrate the LabVIEW program in the Delphi software window. My thought was to do this with an ActiveX container. But I don't know, if a VI can be converted to an ActiveX control.

Are there other possibilities?

Best Regards
Dermot
0 Kudos
Message 1 of 6
(3,089 Views)
Chapter 19 of the LV user manual (Help>>Search the LV Bookshelf) has a part called "LabVIEW as an ActiveX Server". You may wish to start there. I don't know if it's possible to embed an entire VI as an AX object.
If you can't embed the VI (or run time engine) itself, maybe you can embed an explorer window and use remote front panels to call the VI. A bit *too* complicated, but if the other options can't be done, this should work.

___________________
Try to take over the world!
0 Kudos
Message 2 of 6
(3,070 Views)
With the ActiveX server interface, you can control LV through ActiveX calls (such as loading and running a VI). However, you can't turn a VI into a standalone ActiveX control.

However, if you are willing to do a bit more work, you can convert VI's into C calls in a DLL - that can then be wrapped in an ActiveX control you create in VB or C++.
0 Kudos
Message 3 of 6
(3,061 Views)
Thank you for your replies.

The only reason why I would need the ActiveX Control is to embed the Frontpanel in the Delphi Software. Is this possible with an ActiveX Server? Maybe the Browser would be an option but this really seems complicated.

> However, if you are willing to do a bit more work, you can convert VI's into C calls in a DLL - that can then be wrapped in an ActiveX control you create in VB or C++.

This sounds interesting. I have already converted the VI to a dll. So would it be possible for the programmer of the Delphi Software to wrap the dll in an AcitiveX control in Delphi? Could you give me further information about wrapping a dll?

Best regards
Dermot
0 Kudos
Message 4 of 6
(3,047 Views)


@Dermot1000 wrote:
Maybe the Browser would be an option but this really seems complicated.


Actually, this may be simpler than you think.
If it works right, you will just need to enable the remote feature in LV, embed the browser and browse to the page you created.

___________________
Try to take over the world!
0 Kudos
Message 5 of 6
(3,041 Views)
I don't know Delphi but I would assume so - I assume Delphi can call out to C APIs. If so, then they can create an ActiveX control. I'm not much on the UI front so I don't know what issues there may be trying to get a LV VI front panel to render in an ActiveX container.
0 Kudos
Message 6 of 6
(3,033 Views)