Solution
A possible reason this may be occurring is that VBAI cannot find all of the necessary subVIs to compile your selected VI. To correct this behavior, include your top level VI in an
LLB source distribution. If you want to run the inspection that includes the Run LabVIEW VI step on an embedded vision target, please refer to the section
Prerequisites for embedded vision targets, otherwise please continue with the
How to save a LabVIEW VI for the VBAI Run LabVIEW VI Step section.
Prerequisites for embedded vision targetsAny VI called in the Run LabVIEW VI step in VBAI on an
embedded vision target (Smart Camera, CVS, EVS or Industrial Controller) must be saved as a source distribution on the target with all of its dependencies. To accomplish this you'll need to be able to create a source distribution targeted to your specific embedded vision target from a LabVIEW project. This requires the following software:
The Vision Acquisition Software, in conjunction with LabVIEW Real Time, will enable you to configure remote imaging devices from the LabVIEW project so that you can deploy code to them successfully. If you just install LabVIEW Real Time without the Vision Acquisition Software, you won't be able to target any of our remote vision systems, even if they are connected and working.
How to save a LabVIEW VI for the VBAI Run LabVIEW VI Step
- 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 an embedded target make sure that you added the VI under that target and not under My Computer.
- 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 and enable the following checkboxes:
- Disconnect type definitions
- Remove unused polymorphic VI instances
- Remove unused members of project libraries
- Modify project library file after removing unused members
Note: If you are using a version of LabVIEW earlier than LabVIEW 2010, disable the Modify project library file after removing unused members checkbox.
- Disable the following checkboxes:
- Exclude files from VI.lib
- Exclude files from instr.lib
- Exclude files from user.lib
- 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 (there is a convenient User VIs folder for this purpose on the target). Once you do this, you should be able to point the Run LabVIEW VI step in VBAI to the VI you just transferred over to your target and successfully run your LabVIEW VI from within VBAI.