Select Add File to add an input using the Inputs
pane.When a file or directory is added, NI Package Builder
automatically performs discovery. After a file or directory has been added,
Package Builder performs discovery, which adds the contents of a directory
or the dependencies of a file as subitems. Discovery is also performed each
time you build the solution. You can also perform discovery at any time by
clicking the Discover All Items button in the
toolbar.If, after inputs are added to the Input pane, the
dependencies change, then perform discovery again by selecting
Discover All Items.
Select the .lvproject project that contains your example
and click OK.
Your project and project files appear in the Dependencies View
Select New Package in the Editor
pane to create the first package or select New
Package in the Packages pane for subsequent packages.
Drag the project from the Dependencies View pane to the LabVIEW NXG
[version] Addons folder in the Editor pane.
This adds the project to the package within an auto-generated generic
Rename the generic, italicized Company,
Product, and Product[suffix]
folders. NI recommends renaming the generic folders to your company and product
name. If your project has an add-on library dependency, rename the generic
folders to match the company and product names of your add-on library.
For example, a template project should have its folder hierarchy renamed Example Company»Example Product»Example Product-tmpl. An example project should have its folder hierarchy renamed Example Company»Example Product»Example Product-xmpl.
renaming the %package-version% folder, which is
replaced during the build with the package version number. Doing so may
result in a name collision if you update and re-package your project.
Specify your add-on library as a dependency for your project.
In the top right corner of the dialog box, use the pull-down to select
All Packages (including hidden).
Select Installed Packages and select the
checkbox for your add-on library.
Click the field under Relationship to activate a pull-down and select
Depends for your package dependency.
With the package dependency relationship set to Depends, users are
required to install your add-on library to install your project.
In the Packages pane, select the project package.
You can now view the properties of the package.
In the Properties pane, update the appropriate fields.
Click the button beside the Publish examples to LabVIEW NXG field to open the
Publish to LabVIEW NXG dialog box.
The dialog box displays the category hierarchy of the Learning,
Examples, and Templates tabs in LabVIEW NXG.
Depending on where you want your project to show, expand
Examples or Templates.
Create New Category to add a new category to the
Examples or Templates if you wish to group more than one project in one
Specify the name and description that will show up in LabVIEW NXG and click
Drag the example or template project from the Unassigned column to the
appropriate place in LabVIEW NXG and click Save.
In the Packages pane, click Build All Packages.
Your example or template has been published to LabVIEW NXG.
Install the package you built.
Launch LabVIEW NXG and confirm that your project appears as expected.