This link might answer some of your questions:
http://zone.ni.com/devzone/conceptd.nsf/webmain/0D3D57B8D8BCD01D86256A7A006979EC?OpenDocument
Some of this doesn't apply to your case. Skip down to step 3 for an
explanation of the difference between paths in a development environment and
in a run-time system. Steps 6 and 7 discuss dynamic vi's.
You do want the App Builder to be aware of the sub-vi's by including them as
dynamic vi's. They should then be included in the build files. After
running the App Builder, check to see if the dynamic vi's are in the support
file directory. If they are, then to derive their path, take the main vi
path, strip it twice, add the support file directory name, and add the
dynamic vi name. If the dynamic vi's are not
in the support directory, they
should have been included in the .exe file (unless you use an llb for other
files during the build). In this case, take the main vi path, strip it once
(I think), and add the dynamic vi name. If neither of these work, manually
copy the dynamic vi's to the support file directory of the destination
computer and use the first method to strip and build the path. If you want
to troubleshoot this, make the dynamic vi path an input so you can see what
works.
Also, if you need to open the front panel of the sub-vi's, set the build
options so that the front panel is not removed.
"analog" wrote in message
news:50650000000500000029420100-1068850981000@exchange.ni.com...
> So if I want to run my sub-VI using the VI server in my application,
> do I have to do both #1 and #3 in your answer. Because the original
> vi's are not stored in the computer that I am using to run the
> application, if we use the path, doesn't the server get confused
> because
that original VI is stored on another computer's C drive.
> Can you explain #3 a little bit more. Also, if my sub-VI's path is
> C:\subVI A.vi, how would I name that path in an exe?