03-23-2011 08:44 PM
Hello All,
-I am referencing a VI in my project using Open VI Reference (see attachment).
-The VI is under a folder in my Program Files directory and is referenced statically in my project, and is separate from my project folder. So there is no calling VI for my reference VI, which has four sub-VI contained therein.
-Now my referenced VI is part of my project, even though it has no calling VI.
Does it need to be in my project? I would think not, since there is no direct link to the referenced vi inside my project, aside from the static file path.
How does the app. builder treat this referenced VI when it creates an .exe? Does it leave the referenced VI in the Program Files directory since that is the reference path or does it get included with all the other compiled VIs into the executable? Should it be removed from my project? Perhaps I am missing something and need to create the referenced VI as a separate build. I don't know.
Any information you can give would be greatly appreciated. Thanks.
Reese
03-24-2011 07:13 AM
Hi Reese,
your vi will not be part of your application, except you insert it explicit into the "always included" section. You shouldn't do it, because your fixed path would be wrong.
Mike
03-24-2011 07:59 AM
I'm sorry Mike, but I want to be clear on what you are saying. Are you saying NOT to include it in my project but rather include it in the "always included" box in the application builder?
What do you mean by "You shouldn't do it, because your fixed path would be wrong." What shouldn't I do? Add it to my project? I asked a lot of questions and am not sure to what you are referring.
Thanks again for the reply.
Reese
03-24-2011 08:19 AM - edited 03-24-2011 08:23 AM
Hi Reese,
It will only be part of your exe if you insert it into the "always included" section. You can only insert it there, if it is part of your project.
If you insert it there (always included section), then it will be compiled into your exe. I said you shouldn't do it, because your path is fixed to c:\.. and if your vi is part of the exe, then it is not the path you have in your program.
Hope it helps.
Mike