LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Build application -cannot find files

Hello
I am trying to build an exe-file out of my vi-s. Everything seems to work fine, but when I try to execute the generated exe-file, it asks me to find the file Snd Write Waveform.vi (I use this in a sub-vi in my application).
I have tried to include this file seperately when building the application, but that doesn't work either.
I even copied the file over to the same directory as I have my own vi-s. Then it looked like the application found the Snd Write Waveform.vi, but now it asked for SO Config.vi, SO Write.vi etc, all of which are used by Snd Write Waveform.vi.

What shall I do to make my application executable without having to browse for this file everytime I want to run it?
0 Kudos
Message 1 of 3
(2,825 Views)
Hi,
Try to save your application with some specific options before making EXE.
Open your main VI. Then choose menu item "File->Save with options". Now select "Application distrbution" item and press "Save". Your application will be saved to the new location with all required subVIs, LLBs and DLLs. Now you have to work with VIs from this new directory and you have to create EXE out of new VIs. I always do this thing before I try to create EXE file. And it works.

Good luck.

Oleg Chutko.
0 Kudos
Message 2 of 3
(2,825 Views)
yes, that was the default procedure already like four years ago, and it
still is the
only properly working one known to me, to make the exe work right from
the
first time.

Mariannne,

Remember to check that the option to include all sub-vis is turned on
when saving
to a new LabVIEW library.
Before any exe build, remember to edit your.llb and select the right one
file as
the top-level vi.
Along with this edit, you should also make other reasonable options
selected
inside the some of the vi's too, like set your top level vi run when
opened.
Remove scrollbars, runtime menubars etc. from user interface vis for your

exe program to really become a standalone one purpose executable without
excessive amount of useless and misleading functionality.
It is also a wis
e thing to keep the exe build different from your
development library.
Namely, with all the reasonable vi options selected for the exe
functionality, your
distribution can quite easily become uneditable for you.

BR,
Martti
Oulu, FInland

Oleg wrote:

> Hi,
> Try to save your application with some specific options before making
> EXE.
> Open your main VI. Then choose menu item "File->Save with options".
> Now select "Application distrbution" item and press "Save". Your
> application will be saved to the new location with all required
> subVIs, LLBs and DLLs. Now you have to work with VIs from this new
> directory and you have to create EXE out of new VIs. I always do this
> thing before I try to create EXE file. And it works.
>
> Good luck.
>
> Oleg Chutko.
0 Kudos
Message 3 of 3
(2,825 Views)