VCreateObject Statement

Applies To
Vision Sequence

Description
VCreateObject creates an object at runtime.

Usage

VCreateObject  Sequence, ObjectName, ObjectType
Sequence
Name of a sequence or string expression containing a sequence name.
ObjectName
String expression containing the name of an object to create in sequence Sequence.
ObjectType
Integer expression for the vision object type.

Values

Object Type Constant Values
Correlation VISION_OBJTYPE_CORRELATION 1
Blob VISION_OBJTYPE_BLOB 2
Edge VISION_OBJTYPE_EDGE 3
Polar VISION_OBJTYPE_POLAR 4
Line VISION_OBJTYPE_LINE 5
Point VISION_OBJTYPE_POINT 6
Frame VISION_OBJTYPE_FRAME 7
ImageOp VISION_OBJTYPE_IMAGEOP 8
Ocr VISION_OBJTYPE_OCR 9
CodeReader VISION_OBJTYPE_CODEREADER 10
Geometric VISION_OBJTYPE_GEOMETRIC 11
ColorMatch VISION_OBJTYPE_COLORMATCH 14
LineFinder VISION_OBJTYPE_LINEFINDER 15
ArcFinder VISION_OBJTYPE_ARCFINDER 16
DefectFinder VISION_OBJTYPE_DEFECTFINDER 17
LineInspector VISION_OBJTYPE_LINEINSPECTOR 18
ArcInspector VISION_OBJTYPE_ARCINSPECTOR 19
BoxFinder VISION_OBJTYPE_BOXFINDER 20
CornerFinder VISION_OBJTYPE_CORNERFINDER 21
Contour VISION_OBJTYPE_CONTOUR 22
Text VISION_OBJTYPE_TEXT 23
Decision VISION_OBJTYPE_DECISION 26
Coordinates VISION_OBJTYPE_COORDINATES 27

Remarks
Use VCreateObject to add an object to an existing vision sequence at runtime. Use VSave to save it after setting the properties.

See Also
VCreateCalibration, VCreateSequence, VSave