How Do I Include Code to Acquire Images from the Camera When Creating a LabVIEW VI for the Vision Assistant Script?

Updated Apr 23, 2023

Environment

Hardware

  • Camera
  • Smart Camera
  • Frame Grabber Device
  • PXI Frame Grabber Module
  • Basler ace

Software

  • Vision Assistant
  • Vision Development Module

Driver

  • Vision Acquisition Software

I already created a script on Vision Assistant and I want to create a LabVIEW VI for it. However, I cannot find where to tell Vision Assistant to include code to process images that come from the camera instead of images that are already saved on the hard disk.

Complete the following steps to create a LabVIEW VI that includes code for image processing as defined in the Vision Assistant script and also image acquisition:

1. Select Tools»Create LabVIEW VI.
2. Select the version of LabVIEW in which you want to create a VI.
3. Click the Browse button and select the location to which you want to save the VI.
4. Enter a File name, and click OK.
5. Click Next.
6. Select Current Script to create a VI from the script you created in this chapter.
7. Click Next.
8. Select Image AcquisitionIMAQdx Image AcquisitionSmart Camera Acquisition depending on the type of camera. (see related links for further reference)
9. Click Finish to create the VI.

Additional Information

If several versions of LabVIEW and NI Vision are installed on the computer, the wizard searches the machine and displays a list of the available LabVIEW and NI Vision versions you can use to create the VI.

If you have LabVIEW open, you cannot create a VI for a different version of LabVIEW. For example, if you have LabVIEW 8.0.1 open and you select LabVIEW 8.2 in the LabVIEW VI Creation Wizard, the wizard returns an error when you click Finish.

Besides using Vision Assistant and then creating a LabVIEW VI, a VIsion Assistant Expres VI along with a Vision Acquisition Software (VAS) Express VI could be used for the same porpuse. The attached VI template shows a way to use the Express VIs for continous acquisition and processing.