ModelWinLeft Property
Applies To
Vision Objects: Correlation, Geometric, ImageOp, OCR
Description
Defines the left coordinate of the upperleft corner of the model window.
Usage
VGet Sequence.Object.ModelWinLeft, var
VSet Sequence.Object.ModelWinLeft, 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
Integer number in pixels from 0 video width
Remarks
The ModelWinLeft property is available for the Correlation, Geometric, ImageOp, and OCR objects only since those are the only vision objects which use a model to define a pattern to search for. The model window can be set in the Search Window.
The Correlation, Geometric, ImageOp, and OCR objects have rectangular model windows which define the position and size of the model to be taught. The ModelWinLeft property is set automatically when the user drags the entire model window to a new location or when the leftmost side of the model window is dragged to resize the model window.
The ModelWinLeft property can be set by directly inputting the value from the property list of Vision Guide and by using the SPEL+ Language. Also, it can be set by clicking on the upper or lower horizontal sides of the model window and then dragging them vertically.
You can also click the leftmost vertical side of the model window at the center of the vertical line where the leftmost window handle is (the small square on the left vertical side of the Model window). You will see the mouse pointer change to a two direction horizontal arrow. Now drag the leftmost vertical side of the model window and you will see the size of the model change. Release the mouse button when you want to set the position.
To set a value from the property list, click the ModelWinLeft property’s Value Field and simply enter in the value. Once you move the cursor off the value field, the ModelWinLeft will be adjusted for the associated vision object.
See Also
Anatomy of a Vision Object, Correlation Object, Geometric Object, ModelOrgAutoCenter Property, ModelOrgX Property, ModelOrgY Property, ModelWin Property, ModelWinHeight Property, ModelWinTop Property, ModelWinWidth Property, OCR Object