LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Compiling a project with referenced VI

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

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 1 of 4
(2,279 Views)

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

0 Kudos
Message 2 of 4
(2,260 Views)

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

-----------------------------------------------------------------------------------------
Reese, (former CLAD, future CLD)

Some people call me the Space Cowboy!
Some call me the gangster of love.
Some people call me MoReese!
...I'm right here baby, right here, right here, right here at home
0 Kudos
Message 3 of 4
(2,255 Views)

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

0 Kudos
Message 4 of 4
(2,251 Views)