PassType Property
Applies To
Vision Objects: All vision objects other than Decision and Coordinates
Description
Sets / returns the condition that specifies how an object is considered to be passed or failed.
Usage
VGet Sequence.Object.PassType, var
VSet Sequence.Object.PassType, value
- Sequence
- Name of a sequence or string variable containing a sequence name.
- Object
- Name of an object or string variable containing an object name. The object must exist in the specified sequence.
- var
- Integer variable that will contain the value of the property.
- value
- Integer value or expression for the new value of the property.
Values
- 1 - SomeFound
- Vision Constant: VISION_PASSTYPE_SOMEFOUND
- Sets the result as Passed if one or more objects were found.
- 2 - AllFound
- Vision Constant: VISION_PASSTYPE_ALLFOUND
- Sets the result as Passed if the expected number of objects (NumberToFind) was found.
- 3 - SomeNotFound
- Vision Constant: VISION_PASSTYPE_SOMENOTFOUND
- This sets instances where one or more of the expected number of objects (NumberToFind) are not found as a Pass.
- 4 - AllNotFound
- Vision Constant: VISION_PASSTYPE_ALLNOTFOUND
- Sets the result as Passed if no objects were found.
Default:
- For DefectFinder, ArcInspector, LineInspector: 4 - AllNotFound
- For all other objects: 1 - SomeFound
Remarks
Sets / returns the condition that specifies how an object is considered to be passed or failed. If all object results in the vision sequence are Passed, the AllPassed result of the sequence will be “True”.
See Also
AllPassed Result, Found Result, Graphics Property, FailColor Property, PassColor Property