LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run VIs from another application?

I am looking for information or a tutorial on the steps involved in running LabView VIs from another application.

I am using Borland C++ Builder 6.0 to write an application that interfaces with the VIs. I am not very familiar with LabView and do not have it installed here at my location. I do have the LabView runtime engine installed.

I have received .vi and .ctl files and a LabView application called "LabViewRuntime.exe" from the person doing the LabView side of the development. Running "LabViewRuntime.exe" directly from Windows XP, I am able to open and run the VIs.

How do I run the VIs directly from inside C or C++?

Thanks.
0 Kudos
Message 1 of 2
(2,623 Views)
> How do I run the VIs directly from inside C or C++?

At the moment, the best approach is to use the ActiveX automation server
for the runtime.exe that you received. Open a connection to it, give
the VI path to the Open VI method, and you will receive a reference to
the VI instance in memory. To set parameters, you use the Set Values
method on the VI class. You can them Run the VI, and read back the
params using Get Values. I'm sure that searching developer zone for any
of these terms will get you a better tutorial.

Greg McKaskle
0 Kudos
Message 2 of 2
(2,623 Views)