02-10-2010 01:14 PM
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.
Solved! Go to Solution.
02-10-2010 04:46 PM
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:
I attached a zip file with the sample project in it.
Thanks in advance for any suggestions.
02-11-2010 11:07 AM
I was having problem with your project, so I rebuilt it here.
02-13-2010 08:46 PM
06-22-2012 08:05 AM
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?
06-22-2012 01:51 PM
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.