LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Application Builder/Reference Linking

Hi all -

I have a situation where I recently added some subVI's to be dynamically called when the user opens then from within the main VI.  They open, user inputs data, and user saves/closes the window etc.  Standard stuff.  I do the calling by creating a reference to each VI using the VI Path function, feeding that into open vi reference and the rest is just code to get values, and store etc.

Question is how to link these so that when I create an exe from application builder all these files are included in the build.  Currently, the program opperates flawlessly, so long as all the 15 or so vi's are in their directory where the vi path functions reads from, and I run the master vi.  Each subvi is loaded properly and closed properly.  When I make use of the application builder though, none of the subvi's paths go with it as its created.

Inside application builder, I tried using some of the options on the source files tab....tried adding these files that weren't loading as support files, then as dynamically loaded vi's. Still doesn't seem to work though.  Something I'm overlooking?

Thanks a bunch all!


LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 1 of 5
(2,841 Views)
- Bump -

This board is updated so fast my message was send to the second page in half a day lol
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 2 of 5
(2,824 Views)
Hello Leachdor,
        Adding them as Dynamic VIs to your build spec should work.  When you run the executable that you have created what errors does it generate?  I recommend using relative filepaths if you will be distributing this application.  As a quick workaround, you could just call the VIs statically and make sure that the VI properties are set to have the front panel open when the VI is called.  We look forward to hearing back from you.

NathanT
0 Kudos
Message 3 of 5
(2,815 Views)
This time I tried adding the files that were to be loaded, as both dynamic and support files.  Still not working.  In regards to errors...there are none, it builds properly without error into the exe.  Also when I run the Exe after compile it runs without any errors.  It just doesn't pop up the subvi main windows when I click the control that is used to pop them up.

Perhaps I'm not calling them correctly?  But still you would if that was the case then they wouldn't load when they were just a bunch of Vi's in a folder either...the problem seems localized to the exe.
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 4 of 5
(2,801 Views)
Got it to work after just tinkering -

The subvi's had to be listed as

a) top level vi
b) dynamic vi
and
c) support vi

Only with all three does it work.  Beats me why
LV7.1, LV8.5, LV2014/15/16
0 Kudos
Message 5 of 5
(2,797 Views)