Running an Inspection

NI Vision Builder

Running an Inspection

Use the Operate menu options or the buttons on the Vision Builder AI toolbar to run an inspection from the Configuration Interface. The following options are available:

Icon Run Mode Description
Run Inspection Once Runs the inspection through one iteration of the state diagram.
Run Inspection in Loop Runs the inspection continuously.
Run Inspection Until Failure Runs the inspection until the Inspection Status variable has a value of FAIL.
Run Inspection Multiple Times Runs the inspection a specified number of times. This option is available only from the Operate menu.
Stop Inspection Stops the inspection.
Highlight Execution Highlights the inspection execution when you run an inspection. If the Highlight Execution button appears yellow, execution highlighting is enabled.
Pause Pauses or resumes execution of the inspection. If the Pause button appears red, execution is paused.
Single Step Step through the inspection. Single Step is only available when the Pause button is pressed.

Selecting the Next Inspection Image

Use the Select Next Inspection Image buttons on the Configuration Interface toolbar to specify which image to process during the next iteration of an inspection. The Select Next Inspection Image buttons apply only to inspections that either contain a Simulate Acquisition step, or have Smart Camera Emulator or Compact Vision System Emulator selected as the Execution Target. The following options are available:

Icon Next Inspection Image Description
Use Previous Image Uses the previous inspection image the next time the inspection executes.
Use Current Image Uses the current inspection image the next time the inspection executes.
Use Next Image Uses the next inspection image the next time the inspection executes.
Select Next Image Specifies the inspection image to process the next time the inspection executes.

Running a Single Inspection State

You can run only the steps in the currently selected state of an inspection by clicking the buttons on the State Configuration window toolbar. The following options are available:

Icon Run State Mode Description
Run State Once Runs the currently selected state once.
Run State in Loop Run the currently selected state in a continuous loop.
Stop Stops the execution of a state running in a loop.
Step Backward Executes the previous step in the currently selected state using the current image.
Step Forward Executes the next step in the currently selected state using the current image.