Build your EXE on day one, and keep it working

Posted on Thursday 31 May 2007

Many LabVIEW developers will put off building an EXE from their LabVIEW project until the very last minute. One of the great things about LabVIEW is that you don’t really need to build an EXE in order to run your application — you can simply run it from source code. So, developers spend days, weeks, and even months working on their application, running it from source, and then, a few days before they deliver, they decide to build an stand-alone executable. And, that’s when things go terribly wrong.

Build Specifications.png

There are a great many things that are slightly different between running a LabVIEW application from source and running it from within a built EXE. These include:

  • relative locations to configuration and other files
  • some VI Front Panels are removed when the EXE gets built
  • some LabVIEW features are not present (or work differently) in the run-time (executable) environment
  • and, the list goes on…

All of these issues need to be known and resolved sooner, rather than later, so that the high-risk issues don’t cause you to miss your project deadlines. One of the best pieces of advice I can give someone who thinks there is even a minuscule chance that they will have to ship their application as a stand-alone executable is to build your EXE on day one, and keep it working. “Real” software developers call this continuous integration, the process of building and testing your application frequently (hopefully, so frequently that any changes that you make to the sources that will cause problems in the built application are known immediately to the developer who made the changes).

At JKI, we do a fully automated nightly build of VI Package Manager, any time there are changes made to the source code. This lets everyone on the team know that, when it comes time to ship our software, we don’t have to worry about debugging the build process. The final days before your project deadlines will be hectic enough. So, why not make your life easier and eliminate one common (and easily avoidable) issue? Build your EXE on day one, and keep it working.


2 Comments for 'Build your EXE on day one, and keep it working'

  1.  
    Ton Plomp
    May 31, 2007 | 10:45 am
     

    The recent feature in the NI builder, auto numeration of builds and installers, is a great/super way to inform you of the number of builds you’ve done.

    My last horror story…

    having a test-drive with some new train equipment, and finish the build after the train has started moving, copy to usb-drive, copy to HD of test PC and run!

    JIT

  2.  
    May 31, 2007 | 11:54 am
     

    Ton: wow, that is “just in time”. I hope your application wasn’t controlling the train ;)

Leave a comment

(required)

(required)


Information for comment users
Line and paragraph breaks are implemented automatically. Your e-mail address is never displayed. Please consider what you're posting.

Use the buttons below to customise your comment.


RSS feed for comments on this post |

 

Bad Behavior has blocked 847 access attempts in the last 7 days.