Saving a VI for Distribution

NI Vision Assistant

Saving a VI for Distribution

Complete the following steps to save a LabVIEW VI for distribution:

  1. Launch LabVIEW.
  2. Open the VI. If the VI is already open, save the VI.
  3. Select File»New Project.
  4. 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:
    1. In the Project Explorer window, right-click the project root and select New»Targets and Devices.
    2. Select the target you want to add from the Targets and Devices section of the Add Targets and Devices dialog box.
    3. Click OK to add the target to the project.
  5. Save the project by selecting File»Save Project.
  6. 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.
  7. Enter a Build Specification Name and Destination Directory.
  8. Select the Source Files category.
  9. In the Project Files list, select the top-level VI and any dependencies, and add the files to the Always Included list.
  10. Select the Destinations category.
  11. In the Destination type control, select LLB.
  12. Select the Source Files Settings category.
  13. In the Project Files list, click Dependencies.
  14. Enable the Apply prefix to all contained items checkbox and enter a prefix.
  15. Select the Additional Exclusions category.
  16. 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.
  17. Disable the Exclude files from vi.lib, Exclude files from instr.lib, and Exclude files from user.lib checkboxes.
  18. 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.
  19. 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 Note  Before you can use the new LLB on a remote target, you must first download the LLB to the target using FTP.