LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I use an Active X container to start an external ".exe" program?

Hi,
my problem is that I have to integrate an existing "Human Machine Interface" (it's an .exe application) into my LabWindows code. The HMI application is the "Baseboard Management Controller" for an IBM xSeries server.
I'm currently writing a meta-interface to centralize 8 different device interfaces. There is already an interface for the IBM server so I'm looking for a way to integrate it.
Can I use an ActiveX controller for this? If so which one do I have to choose?
Or is there another way to integrate external applications in a separate panel?

thanks and best regards
Klaas

Edit: Sorry. Accidentally posted into the wrong Forum. Please move to Labwindows/CVI. Thanks
Message Edited by hellbernd@rheinmetall-de.com on 04-25-2006 08:57 AM

Message Edited by hellbernd@rheinmetall-de.com on 04-25-2006 09:04 AM

0 Kudos
Message 1 of 3
(2,516 Views)
Klaas,

ActiveX is a technologie from Microsoft for the purpose of exchanging information between two seperate applications. In the time of developement, ActiveX grew from COM/OLE to the current state, which also allows you to control one application via another. But this only works, if both applications support the ActiveX-interface. Furthermore, one of them has to be server, in the case of controlling another application, the one which is controlled has to support the server.
If your HMI-executable is delivered with an ActiveX-server, your request of embedding and controlling the HMI into your own CVI-application is rather simple. There are plenty of examples available for this (e.g. Word/Excel).
If your HMI does NOT supply an ActiveX-server, you cannot use ActiveX at all. So integration of the UI into your application will be nearly impossible (if possible at all!).
Calling executables is very simple in CVI. just take a look into the "LaunchExecutable(Ex)"-commands. The onyl drawback of these functions is that you cannot directly exchange data with the executable like you do this with your own functions (like returnvalue).

Norbert B.
NI Germany
Norbert
----------------------------------------------------------------------------------------------------
CEO: What exactly is stopping us from doing this?
Expert: Geometry
Marketing Manager: Just ignore it.
0 Kudos
Message 2 of 3
(2,493 Views)
Hi Norbert,
thanks for your answer. The launchExecutable() command was exactly what I was serching for. It works perfect. Just like it has to do 😉

Thankful regards
Klaas
0 Kudos
Message 3 of 3
(2,488 Views)