Get Multiple Inspection Images with The Vision Builder for Automated Inspection API

Updated Jun 19, 2024

Reported In

Software

  • LabVIEW
  • Vision Builder for Automated Inspection

Issue Details

I want to be able to get multiple inspection images in LabVIEW from the same inspection from Vision Builder for Automated Inspection (VBAI), however when I add more than one Get Inspection Steps VI, I only get the image in the first vi and blank spaces in the rest of them. Is there a way to accomplish this?

Solution

The buffer has complications locating the last acquired image when it is not correspondingly identified. In case you want to add more than one image, it is needed to specify an Image Step GUID which is the acquisition step, image processing step, or image variable GUID. If you specify an Image Step GUID, the VI immediately returns any images generated by this step and does not wait until the inspection iteration completes.

You can call the VBAI Interface - Get Inspection Steps VI to obtain a list of the GUIDs associated with every step and variable as shown in the VI above.

get pro.png

Figure 1 - Simple VI to get multiple inspection images

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.

Additional Information

The Image Step GUID must be an acquisition step, image processing step, or image variable.