Creating Executables with the LabVIEW Application Builder
The LabVIEW 5.1 Application Builder marked a significant change in the way you create executables from your LabVIEW VIs. Previous versions of the Application Builder used a three-step process to create applications: save your VIs into a LabVIEW Library (LLB) file (using the "Save With Options" feature), build the executable using this LLB file, and then create a distribution kit for your application. Each executable that you built included the LabVIEW Run-Time Engine (LVRTE), which meant that even a simple program would be at least 2 MB in size (the size of the LVRTE). As of LabVIEW 5.1, you just tell the Application Builder what your main VI is and it does the rest, dynamically including all of your subVIs and any functions/VIs from LabVIEW that you need in your application. The exception is that you must specify any dynamically-loaded VIs or external code that you use, during the build process. The LabVIEW Run-Time Engine is no longer included with every executable, so you can have multiple executables on the same target machine, but only require one instance of the LVRTE (for each unique version of LabVIEW) to run them. This decreases the size of your executables and gives you more flexibility with your applications. The LabVIEW 6i (6.0) Application Builder is very similar to the LabVIEW 5.1 and 5.1.1 versions with a few differences:
Creating an Executable You have a number of options available to you when creating an executable and these are described in the following paragraphs. You can store these options with the "Save" button.
Initial Application Builder Screen
The Source Tab
The LabVIEW 5.1 and 5.1.1 Application Builder includes the daqdrv (for data acquisition) and serpdrv (for serial communication) support files by default. The LabVIEW 6i Application Builder no longer requires daqdrv. Regardless of your Application Builder and LabVIEW version, you must always install the appropriate driver files on the target machine. For example, if your application communicates with a DAQ board and a GPIB board, then you must install NI-DAQ and NI-488.2 on your target machine.
The VI Settings Tab
The Applications Settings Tab
The Installer Tab
For the LabVIEW 5.1 and 5.1.1 Application Builders, the setup program does not include the LabVIEW Run-Time Engine, which has its own setup program in a directory called RunTime. The Run-Time Engine can be copied onto two 1.4 MB floppies; copy everything except "data2.cab" to the first disk, and then place "data2.cab" on the second disk.
The "Advanced" button allows you to do things like run your executable immediately after it installs on the target system. For the LabVIEW 5.1 and 5.1.1 Application Builders, if you use DataSocket, NI Reports, and/or 3D Graphs, then you also need to select those features from the "Advanced" button. For LabVIEW 6i, they are included with the LabVIEW Run-Time Engine. Running the Executable After you have pressed the "Build" button and Application Builder finishes writing the executable to disk, you are ready to run it. Regardless of your Application Builder and LabVIEW version, you must always install any required driver files on the target machine. For example, if your application communicates with a DAQ board and a GPIB board, then you must install NI-DAQ and NI-488.2 on your target machine. (You may see a crash or a message that a VI was not found, if the drivers that support your application are not installed.) Creating Distribution Disks See KnowledgeBase 1JMAJEFP for information about creating distribution disks with the LabVIEW 5.1 and 5.1.1 Application Builders. For LabVIEW 6i, the image files for your distribution disks will be in disks subdirectory within the destination directory that you specified in the initial Application Builder screen. You can copy them to 1.4 MB floppy disks by copying the Setup.exe file and the Data.001 file to the first disk, and then each Data.00x to a different disk, resulting in N setup disks for your application (where N is the number of data files generated during the build process). The LabVIEW Run-Time Engine is included and will automatically launch its own installer as part of the setup program for your application. Also, it will detect whether the LabVIEW Run-Time Engine is already installed on the machine and give you options to Modify, Repair, or Remove it. |





