LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Missing subvi NI_AALPro.lvlib:Linear Fit(LS).vi after build using App Builder

Hi:
 
I installed Labview 8.2 Pro Edition to a new Windows XP SP2 PC. I created a simple vi making use of C:\Program Files\National Instruments\LabVIEW 8.2\vi.lib\Analysis\6fits.llb\Linear Fit.vi. I then build the vi to an executable file. I ran it on a target system but was getting Missing subvi as shown in attachment files.
 
Initailly my target system has the following installed:
Labview 6.0
Labview RT 6.0
Labview RT 6.1
Labview RT 7.1
 
I then installed Labview RT 8.2.
I am currently evaluating converting all my project written for Labview 6.02 to Labview 8.2 and encountered the above problem. I also notice that the time taken to build an .exe file in Labview 8.2 take much longer time than Labview 6.02. My project took about 12 minutes to build in Labview 6.02 but 30 minutes in Labview 8.2.  Furthermore there is no individual control (remove/show panel, run when open) for the subvi in Labview 8.2.
 
Thank you.
 
Chin Lin
Download All
0 Kudos
Message 1 of 22
(8,966 Views)

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

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 2 of 22
(8,945 Views)
Hi Ching P.:
 
Thanks for your reply. I was using Project Exprorer. The missing subvis are actually from vi.lib. I also did expand the dependency folder and saw all the missing subvis in it. Aren't these VIs will become part of the .exe after build? Or will they become external dependency file? Do I need to manually include them in the Project Explorer? I then try to build the installer from the .exe file and with only the RunTime engine 8.2 included (selected from Additional installer option) and it works at the target PC. So I don't know what is the different between:
 
build an .exe and run it on a PC with the RunTime engine 8.2 pre installed     AND
build the installer with the RunTime engine 8.2 included and install and run it on a PC
 
I also did try to build the installer wihtout the RunTime engine 8.2 included and install and run it on a PC with the RunTime engine 8.2 pre installed. But it did not work.
 
For the 2nd part, I found the configuration option for the subvi as you mentioned below. But it is still different from 6.02 application builder where this option is available in the builder windows itself. It is under VI setting tab. I still find the 8.2 Project Explorer very slow when I try to navigate around with the available option exspecially when I click the properties of a builder specification and also when I click cancel and OK button afterward.
 
Thank you.
 
Chin Lin
0 Kudos
Message 3 of 22
(8,938 Views)

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!!

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 4 of 22
(8,921 Views)

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

0 Kudos
Message 5 of 22
(8,911 Views)
Hi Chin Lin,

I was unable to recreate the issue, but got an idea in the process of building the executable.  Please use the Generate Preview option shown in a previous post to ensure that the lvanlys.dll is included as a support file.  If it is not, manually include it as a support file.  You should be able to find the dll C:\Program Files\National Instruments\LabVIEW 8.2.



Please let me know if this does not work, and you have any further questions.

Message Edited by cphuong on 02-02-2007 06:46 PM

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 6 of 22
(8,894 Views)

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

Download All
0 Kudos
Message 7 of 22
(8,868 Views)

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.

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 8 of 22
(8,848 Views)
Hi Ching P.:
 
I was able to build both .exe and installer also but has problem of deploying the .exe to run on a machine with the RTE8.2 installed. So did you try to run the .exe on a PC with RTE8.2 installed (without the Labview Development Software)?
 
If the RTE is no longer listed under Add/Remove Program, then how are we uninstall it in the future? We have to run the installation software to uninstall it?
 
In addition, after a few install/uninstall RTE8.2, why am I able to see it appears under the "add/remove program"->"National Instruments Software"?
 
Thank you.
 
Chin Lin
0 Kudos
Message 9 of 22
(8,845 Views)

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!!

Regards,
Ching P.
DAQ and Academic Hardware R&D
National Instruments
0 Kudos
Message 10 of 22
(8,829 Views)