ModelWinTop Property
Applies To
Vision Objects: Correlation, Geometric, ImageOp, OCR
Description
Defines the top coordinate of the upperleft corner of the model window.
Usage
VGet Sequence.Object.ModelWinTop, var
VSet Sequence.Object.ModelWinTop, 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 height
Remarks
The ModelWinTop 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 ModelWinTop property is set automatically when the user drags the entire model window to a new location or when the topmost side of the model window is dragged to resize the model window.
The ModelWinTop 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 uppermost horizontal side of the model window at the center of the vertical line where the uppermost side window handle is (the small square on the upper horizontal side of the Model window). You will see the mouse pointer change to a two direction vertical arrow. Now drag the uppermost horizontal 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 ModelWinTop 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, ModelWinLeft Property, ModelWinWidth Property, OCR Obejct