LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I run a labview executable from C++

I have an application written in C++ that runs some VIs in the Labview Development Environment. I'm using Labview 6.02 and VisualC++ and the runtime engine is installed. What I want to do is not use the LDE and just call the LV executable from C++. I found some documentation but what I tried is not working for me. What I am looking for is a good example of C++ code that runs a LV executable.
The help would be appreciated.
0 Kudos
Message 1 of 2
(2,221 Views)
> I have an application written in C++ that runs some VIs in the Labview
> Development Environment. I'm using Labview 6.02 and VisualC++ and the
> runtime engine is installed. What I want to do is not use the LDE and
> just call the LV executable from C++. I found some documentation but
> what I tried is not working for me. What I am looking for is a good
> example of C++ code that runs a LV executable.
> The help would be appreciated.
>

One possibility is to think of the LV executable the same as an
executable built with any other development tool. Invoke it using the
command function that launches via the command line or a fork command.

Another possibility is to make a DLL instead of an EXE.

Finally, you have the option of using the VI Server through a
ctiveX.
This will work better if you have only one of the executables or the LV
editing environment on a particular PC.

Greg McKaskle
Message 2 of 2
(2,221 Views)