04-06-2018 09:40 AM
Hi!
I have two projects, for one, I built an exe and it is running great. In the second project, in one of the several Vi's that I have, I call in the code the exe I had created before and if I run the program everything is fine. Then, I built an exe for my second project (the one that includes my first exe), and the problem comes when I run it, all looks good until I reach that part of the program that calls the first exe, it just doesn't load it.
I hope you understand what I mean.
Solved! Go to Solution.
04-06-2018 10:48 AM
Without knowing anything else, the obvious guess is that your path is wrong. Put a string indicator on the string to path output so you can see what path is being generated at run time.
04-06-2018 10:59 AM
Hi Paco,
It is important to understand what the "application directory" gives you when you call it from different application types. This is from the help file:
"Application Directory VI
Returns the path to the directory containing the application.
If you call this VI from a stand-alone application, this VI returns the path to the folder containing the stand-alone application.
If you call this VI from the development environment and the VI is loaded in a LabVIEW project file (.lvproj), this VI returns the path to the folder containing the project file. If the project is not saved, this VI returns <Not a Path>."
The way you are calling it, on your disk your files should look like this:
04-06-2018 01:18 PM
Thank you! The problem was that the AdqSiaEpi.exe file was not in the correct folder.