LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

building large executable

I have a huge progam that I currenlty build into an executable (comes in at about 42 MB).  It works, but there are 2 problems:

1) it takes forever (about an hour and a half to compile)

2) it takes about 2 minutes to load.  It runs fine once it is loaded... it just takes a while.

 

The project consists of several classes and some basic vi functions that rarly change.  Is it possible to build some of these into seperate files (such as a .dll) that can be referanced by the executable?  If so, how do I link the executable to it?

 

I'm using labview 2010 SP1 (32 bit), windows 7 64 bit, but all deployables must also work on 32 bit XP machines

0 Kudos
Message 1 of 3
(2,744 Views)

Hi tiemanjw,

 

It looks like LabVIEW 2010 has compiler optimizations which slow down the compile time of large VI's.

However, you can change the compiler settings to improve the compile time.


Also, you cannot create a deployable to a 32 bit machine from a 64 bit machine:
https://www.ni.com/en/support/documentation/supplemental/18/labview-32-bit-vs--64-bit-applications-f...

Here is a document on how to create a .dll file:
https://forums.ni.com/t5/Developer-Center-Resources/Tutorial-Configuring-the-Call-Library-Function-N...

 

You should then be able to add the .dll files to your source files before building the executable

Sunaina K.
Product Marketing Manager for CompactRIO & TSN

Making the intangible, tangible
0 Kudos
Message 2 of 3
(2,709 Views)

1+2) Take a look at VI server and start some VI's dynamically. If not all are needed instantly in the program that might reduce both compile and startup time (the dynamically loaded will ofc take longer to start the first time, but it's often a lesser nuisance)

You'll need to include the dynamically loaded as Include vi in the build. 

 

3) If you compile on a 32bit LV, you get a 32-bit program, you'll be fine.

 

/Y 

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(2,689 Views)