10-21-2005 03:06 PM
I have been trying to use the loader method described in several posts to run an application. Our development directory structure consists of many subdirectories (eg. common, utility, dll) and this app. has many vi’s interspersed within all these directories. This app has about 80 sub-vi’s and a couple of vendor dll’s that it runs. I save the app as an “Application Distribution”. In the loader I pass the complete path to the main VI within the llb. When I create the loader executable I also define the main VI as the top level vi from within the llb. The loader executable that is created runs fine from within the original directory but once I move it to the root directory it does not work. It comes back with a “Error 7 Occurred at Open File+.vi: Open File”. At this point it was trying to open an INI file. My questions: 1) Should I pass the path of the llb to the loader instead of the main vi? 2) What can I do to either the loader or vi to be able to run the loader from any directory other than where my main vi resides? 3) Where should I place my INI file so that I do not get the Error 7? Any help would be appreciated. Thank you.
10-24-2005 03:24 PM
The answer to your question really depends on how you are opening this INI file. Are you giving LabVIEW an absolute file path to the INI file or a relative file path with respect to a VI? If you are using a relative file path, then recall that building a VI into an executable adds an additional branch to the file path -- instead of ...\myapp.vi, the file path to the VI becomes ...\myapp.exe\myapp.vi. If you are using an absolute file path, then this will obviously only work when the file is located in that exact location.
Kind Regards,
10-24-2005 03:44 PM
10-25-2005 02:35 PM