LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

application builder missing files

Solved!
Go to solution

Hi all,

 

I'm new to LabView and I'm trying to deploy an application as an executable. I'm running LabView 2009 on Win XP Pro. I have the application  builder and ran the application builder tutorial. The tutorial worked fine, but doing the same steps on my project that calls sub-VIs from several different libraries didn't work. I'm not trying to build an installer yet, just a stand alone executable running on a machine with the LabView run time framework already installed. I'm not calling anything by reference, all sub-VIs are called explicitly.

 

The VI I'm trying to deploy works fine running in LabView. Application builder successfully generates an executable. When the executable is run, it pops up a dialog looking for a bunch of sub-VIs. I attached a copy of the executable prompting me for a sub-VI contained in vi.lib

 

First, is there a user's manual or something like that for Application Builder? LabView Help describes how to create a stand alone executable but doesn't describe all the settings in detail. I probably just have one of the settings wrong.

 

Any other thoughts or suggestions on what to try next?

 

Thanks in advance for your help. 

0 Kudos
Message 1 of 6
(4,118 Views)

Here's a quick example project that demonstrates the problem. The main program calls functions from the Agilent 34401 instrument driver to set up the instrument and take repeated measurements. The measurements are scaled and offset using the private Helper.vi in the project. 

 

The instrument driver I'm using is here:

 

http://sine.ni.com/apps/utf8/niid_web_display.download_page?p_id_guid=014E7F05D12C6F8BE0440003BA7CCD... 

 

I attached a zip file with the sample project in it. 

 

 

Thanks in advance for any suggestions. 

0 Kudos
Message 2 of 6
(4,108 Views)

I was having problem with your project, so I rebuilt it here.

 

 

Andy Chang
National Instruments
Download All
0 Kudos
Message 3 of 6
(4,080 Views)
Solution
Accepted by topic author dml
Turns out you can't build applications from projects in the instr.lib folder. I moved the project out of the instr.lib folder and application builder worked fine. 
0 Kudos
Message 4 of 6
(4,050 Views)

LV2011SP1

I have been developing in the directory

 

C:\Program Files\National Instruments\LabVIEW 2011\user.lib

 

The source code is located in a subfolder in the "user.lib" folder

 

The builds go into the destination subfolder "user.lib\builds"

 

The executable built returns an error when it is run. It can't find one of the subvis.

 

The subvi in question is listed under the dependencies for the main vi in the project.

 

I copied the devlopmentto a new location, namely

 

C:\Users\Me\Documents\LVcode\builderErrorTestFolder

 

The executable built within this new project ran without error on the development machine, but the executable built with the installer in this project will not run on a non-development machine. In the case of the executable installed on a non-development machine, the error is a "can't find vis" error, but it is limited to NI_AALPROLvlib files and NI_AALBaseLvlib files

 

What could be the problem?

Download All
0 Kudos
Message 5 of 6
(3,316 Views)

I suspect the initial problem was related to mine. You can't run application builder on a VI inside one of the *.lib directories.

 

The second error you mention could be a bad build setting. It sounds like you're not including a necessary library. Under "Additional Installers" make sure you have at least the LabView Runtime Engine selected. If that still doesn't fix it, try removing the LabView Runtime Engine on the machine that's giving you trouble and then reinstall your application (with the bundled Runtime Engine). You should see both your app and the run time engine under add/remove programs on the target machine.

0 Kudos
Message 6 of 6
(3,308 Views)