From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.
We appreciate your patience as we improve our online experience.
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.
> 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.