01-29-2007 08:58 PM
01-30-2007 09:52 PM - edited 01-30-2007 09:52 PM
Hi Chin Lin,
Are you building your exe file from the Project Explorer? I would
recommend using the Project Explorer when building exe files in LabVIEW 8.0 and
later. The Project Explorer allows you to group all VI's and sub-VI's.
In addition, this method allows you to see everything that is being included in
the exe file.
When you build your exe file from the Project Explorer, take a look at the
Generate Preview Option (shown below) to ensure that all the necessary support
files have been included.
The options (remove/show panel, run when open) for sub-VI's
are located in that sub-VI under File »
VI Properties » Execution.
Please let me know if you have any more questions. Best of luck on your
application, and have a great day!!
Message Edited by cphuong on 01-30-2007 09:53 PM
01-31-2007 12:38 AM
01-31-2007 07:43 PM
Hi Chin Lin,
One other thing to try manually add the NI_AALPro.lvlib as a support file in
the Application Builder Wizard by first putting the library in the
project.
With regards to your other question about the speed of the application builder,
how large is your application? Also, how much available RAM do you
have? While the application builder runs, it stores a copy of each VI
that is part of the application in memory. If you have a very large
application or not enough RAM, this can slow your PC down.
How are you determining that it takes longer to build an application in LabVIEW
8.20? Are you trying to build an application that you once built in
LabVIEW 6? Is it the same exact application?
I wish you the best of luck on your application, and hope to hear from you
soon!!
02-01-2007 06:10 AM
Hi Ching P.:
I tried adding the NI_AALPro.lvlib to the project as the support file but getting this error when building the .exe:
"Polymorphic VIs cannot be used as Startup/Exported or Dynamic VIs for applications or shared libraries.
C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\analysis\_algsub.llb\Trace.vi"
I added the NI_AALPro by doing:
1. Right click on My Computer->Add File...
2. Select the NI_AALPro.lvlib from NI folder.
3. Under Build Specification, right click on my project ->properties.
4. Under the Source Files , select NI_AALPro.lvlib. Move it under Dynamic VIs and Support Files.
5. Under the Source File Settings, select NI_AALPro.lvlib. Under Destination to apply, I selected <my project name>.exe.
6. Build the .exe.
At step 5, I also tried selecting the Support Directory and failed also.
I remember I read it some where which mentioned that for Polymorphic VIs, we can only include the instand of the VI but not the VI itself. But how to include just the instand of the VI?
My actual project .exe file size is about 40MB when compile under Labview 6.0.2. When using Labview 8.2, the size is about 27MB. The project that I build using Labview 6.0.2 & Labview 8.2 are the same project but with slightly different due to ongoing modification. But they should not differ much on the building time. My system is a Dell Precision PWS380 Pentium 2.8GHz with 1GB RAM. I noticed that a few times that the build time took only about 14 minutes to complete which is close to using Labview 6.0.2 (13 minutes). But most of the time is slow (about 25 - 30 minutes). Need more time to verify on this.
Thank you.
Chin Lin
02-02-2007 06:45 PM - edited 02-02-2007 06:45 PM
Message Edited by cphuong on 02-02-2007 06:46 PM
02-05-2007 05:39 AM
Hi Ching P.:
Yes, the lvanlys.dll was included in the build for all my previous attempts. Now I am getting error as attached file.
I noticed that my RunTime Engine 8.2 was not listed as one of the installed Labview software under the "add/remove program" and also "add/remove program"->"National Instructments Software". It only appears in Measurement & Automation Explorer. I reinstalled RTE8.2 without uninstalled the RTE8.2 first and did not works. I then tried uninstalled and reinstalled the RTE8.2. This time my simple labview program work and I can see the RTE8.2 under "National Instructments Software".
So thank you for your help. I still don't know why it happened this way. Are you able to build and run a simple vi with any library vi in c:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\NI_AALPro.lvlib included on a PC with the RTE8.2 only? I attached the simple vi that I used.
Thank you.
Chin Lin
02-06-2007 06:52 PM
Hi Chin Lin,
I was able to build both the application (exe file) and the installer without
error. Without the ability to replicate the error, it is hard to say what
could have caused it.
In addition, it is normal not to see LabVIEW RunTime Engine 8.2 listed in the add/remove program"->"National Instruments Software".
After LabVIEW 7.1, we no longer list the Run-Time Engines in Add or Remove
Programs.
I'm glad to hear that everything is working well, and sorry
that I cannot give an explanation as to what was causing your issues.
Please let me know if you have any further questions.
02-06-2007 07:47 PM
02-07-2007 09:39 PM
Hi Chin Lin,
I was able to build the application and installer from you VI without
error. I then took this to a test machine that was free of any NI
software, and ran the installer without issue. The installer installed
the LabVIEW 8.2 Run-time engine and the program.
The run-time engine should not appear under Add or
Remove Programs » National Instruments Software if you have the
LabVIEW 8.20 Development Environment on your machine. If you need to
uninstall the run-time engine specifically you can contact National Instruments
Technical Support for details on how to do this. If you do not have any
National Instruments software on a computer, and install the LabVIEW 8.2
Run-time engine, that will appear under Add or Remove Programs » National
Instruments Software.
Please let me know if you have any further questions.
Best of luck on your application, and have a wonderful day!!