To run a VBAI inspection in LabVIEW, make sure you have the VBAI LabVIEW Interface API installed. This is automatically installed when you install VBAI. To check if the API is present, right-click on the LabVIEW Block Diagram and search for Vision and Motion>>Vision Builder AI.
Follow the steps below to run a VBAI inspection in LabVIEW:
- Re-create or import the code snippet below:
Note: This image is a LabVIEW snippet, which includes LabVIEW code that you can reuse in your project. To use a snippet, right-click the image, save it to your computer, and drag the file onto your LabVIEW diagram.
- In the Path control, set the path of your VBAI inspection.
- Select the correct VBAI version in the Engine Version constant, for example VBAI 2019 (32-bit).
- Run the LabVIEW VI. An image of the inspection will be display as shown in the picture below.
