Creating Packed Project Libraries with LabVIEW
- Updated2026-07-09
- 3 minute(s) read
Creating Packed Project Libraries with LabVIEW
Create a packed project library with LabVIEW to condense a LabVIEW project into a single file.
Before creating packed project libraries with LabVIEW, do the following:
- Create code to include in the packed project library you create, including a project library. Include the code in a project.
- Prepare the source files for distribution.
- Understand the specific caveats and recommendations for packed project libraries.
- Save the project. To create a build specification, the project must be saved.
This procedure describes the basic options to create this build specification. For details on each configuration option for the build specification, refer to the links for each page of the dialog box.
To use your LabVIEW project to create a packed project library, complete the following steps.
-
In the Project Explorer window, right-click
Build Specifications and select .
The Packed Library Properties Dialog Box appears.
- Required:
Under Source Files, specify which project files to include
in the distribution.
-
Specify a single Top-level Library.
This item must be a project library.
- Add support files to include in the packed project library with the Always Included listbox.
Note You must add certain VIs to the Always Included listbox on the Source Files page in the following situations:Item When to Always Include Dynamically loaded VIs - If a VI in the project loads the VIs dynamically using the VI Server
- If a VI in the project calls the dynamically loaded VIs through a Call By Reference or Start Asynchronous Call node
You can also distribute dynamically loaded VIs for an application by including them within a source distribution.
Custom run-time menus If you save the custom run-time menu for a front panel control as a separate run-time menu file (.rtm). -
Specify a single Top-level Library.
- (Recommended) Under Information, name the packed project library and the build specification, and choose the highest-level save directory for the build product.
-
(Recommended) Under Destinations, define the locations on
disk for the main packed library file and any support files.
Destination path defines the location of these files relative to the overall save directory for the build you specified in step 3.
Note If you intend to include this distribution in an installer, specify the build output of the build specification relative to the primary destination of the build specification. For details, see Caveats and Recommendations for Building Installers with LabVIEW. -
(Recommended) Under Source File Settings, edit
destinations and properties for the files and folders included in a packed
project library.
LabVIEW displays different options based on the type of item you select in Project Files.
- Optional:
Under Additional Exclusions, configure options to leave
out certain items from the distribution.
Excluding items can reduce the size of the distribution or reduce memory usage.
- Optional: Under Connector Pane State, toggle whether caller VIs adapt to connector pane changes of the exported VIs without recompiling.
- Optional:
Under Version Information, specify the version of the
packed project library and provide metadata about your organization.
For more information about setting versions, refer to Managing Application Versions.
- Optional: Under Pre/Post Build Actions, define VIs to run before or after the build.
- Optional: Under Advanced, configure debugging, logging, compatibility settings.
- Optional: Under Preview, generate a preview of the build to ensure that it appears as you expect.
-
Apply any updated settings for your build specification by clicking
OK.
The dialog box closes and the build specification name appears in the project under Build Specifications.
-
Build the distribution.
Option Description Interactive - Right-click the build specification and select Build.
- From the Package window, click Build.
Programmatic Use the Build VI or the ExecuteBuildSpec command line operation.
Related Information
- Using Packed Project Libraries in LabVIEW Projects
- Executing a VI Before or After a Build
Pre-build VIs and post-build VIs automate actions before or after you build a LabVIEW build output from a build specification for supported application types.
- LabVIEW Edition Requirements for Application Builder
To create most build outputs, your copy of LabVIEW must include Application Builder. Application Builder is included with LabVIEW Professional edition and is available as a separate module for purchase for LabVIEW Base edition and Full edition.
- Caveats and Recommendations for Packed Project Libraries
Understand best practices for building packed project libraries with LabVIEW.
- Preparing Files to Create a Build Output
Before you can create a build specification, prepare your files for distribution.