Saving a VI for Distribution
Complete the following steps to save a LabVIEW VI for distribution:
- Launch LabVIEW.
- Open the VI. If the VI is already open, save the VI.
- Select File»New Project.
- Add the VI and any dependencies to the project. If you want to run the VI on a remote target, you must first add the target to the project. Compete the following steps to add a remote target to the LabVIEW project:
- In the Project Explorer window, right-click the project root and select New»Targets and Devices.
- Select the target you want to add from the Targets and Devices section of the Add Targets and Devices dialog box.
- Click OK to add the target to the project.
- Save the project by selecting File»Save Project.
- Right-click Build Specifications underneath the VI you added to the project and select New»Source Distribution from the shortcut menu to display the Source Distribution Properties dialog box.
- Enter a Build Specification Name and Destination Directory.
- Select the Source Files category.
- In the Project Files list, select the top-level VI and any dependencies, and add the files to the Always Included list.
- Select the Destinations category.
- In the Destination type control, select LLB.
- Select the Source Files Settings category.
- In the Project Files list, click Dependencies.
- Enable the Apply prefix to all contained items checkbox and enter a prefix.
- Select the Additional Exclusions category.
- Enable the Disconnect type definitions, Remove unused polymorphic VI instances, and Remove unused members of project libraries checkboxes. Do not enable the Modify project library file after removing unused members checkbox.
- Disable the Exclude files from vi.lib, Exclude files from instr.lib, and Exclude files from user.lib checkboxes.
- Select the Preview category. Click Generate Preview to review the generated file hierarchy for the source distribution. To ensure the preview is accurate, save changes to VIs in memory before you create or edit a build specification.
- Click Build. You can find the resulting source distribution in the directory specified in the Destination directory control in the Information category of the build specification.
Note Before you can use the new LLB on a remote target, you must first download the LLB to the target using FTP.