Returns a Boolean that indicates if a property of the vision results satisfied the tool's vision inspection criteria.
...visresult_object.InspectPassed
Prerequisites
Only returns meaningful data for results generated by a vision tool whose output includes the InspectPassed property in PreciseVision.
Parameters
None
Remarks
This property returns a True or False indication of whether or not the set of results from a vision tool satisfied the specified inspection criteria. This is the same value as the PreciseVision InspectPassed tool property.
For many PreciseVision tools, a range of acceptable values can be set for a single results property for the tool. For example, for the general object Finder Tool, the orientation angle of any located parts can be tested to ensure that they fall within a specified range.
When the inspection criteria is set, each time the tool is executed, it automatically tests each set of results to see if it satisfies the criteria and sets the value of InspectPassed appropriately. If the inspection fails, the tool is still processed in the normal fashion as well as any tools that are dependent upon the failed result. However, both the failed tool and any dependent tools will have their InspectPassed set to False.
As a convenience, the tool property value that was tested is returned in visresults_object.InspectActual.
Examples
Dim vresult As VisResult
vresult = vobject.Result()
If vresult.InspectPassed = False Then ' Inspection failed?
If vresult.InspectActual < 10 Then ' By how much?
...
See Also