Download Vision Builder AI Tutorial

Transcript
Chapter 6
Branching and Decision Making
6.
On the Settings tab, select the Process named Horizontal Max
Caliper to change the direction and orientation of the caliper search
lines.
7.
Set the Gap control to 10, Edge Strength to 40, and Smoothing to 12
to ensure that the step correctly detects the edges of the cap.
8.
On the Limits tab, enable the Minimum Distance control, and set the
value to 140.
9.
Enable the Maximum Distance control, and set the value to 160.
10. Click OK to add the step to the inspection.
Setting the Inspection Status
Complete the following instructions to add a Set Inspection Status step to
determine whether the inspection passes or fails.
1.
In the Inspection Steps palette, click the Use Additional Tools tab.
2.
Click the Set Inspection Status step. The property page for the step
opens.
3.
In the Inspection Status control, select the FAIL if any previous step
fails option.
4.
Click OK to add the step to the inspection.
Creating Custom Overlays for Inspection
Use the Custom Overlay step to create custom overlays that display
whether the inspection passed or failed.
Complete the following steps to create an overlay to display when the
inspection fails.
1.
In the Overview window, click the Fail Part state on the state diagram.
2.
In the Inspection Steps palette, select the Use Additional Tools tab.
3.
Click the Custom Overlay step. The property page for the step opens.
4.
In the Step Name control, enter Overlay Results.
5.
On the Custom Overlay tab, select the Text tool and click a point in
the image near the bottom of the spray nozzle of the bottle.
6.
In the Text Control, enter Missing Cap!.
7.
Click the Text Properties button. The Text Properties dialog box
opens.
© National Instruments Corporation
6-9
NI Vision Builder for Automated Inspection Tutorial