Modelwintop property – Epson 5 User Manual
Page 99
ModelWinTop Property
ModelWinTop Property
Applies To
Vision Objects: Correlation, Geometric
Description
Defines the upper most position of the model window for Correlation and Geometric objects.
Usage
VGet Sequence.Object.ModelWinTop, var
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.
Values
Integer number in pixels from 1 - video height
Remarks
The ModelWinTop property is available for the Correlation and Geometric objects only since those are the
only vision objects which use a model to define a pattern to search for. The model window always fits
inside the Search Window.
The Correlation and Geometric 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 is available from both the Vision Guide window Object tab and from the
SPEL
+
Language. The easiest way to set the ModelWinTop position is to simply click on the top or bottom
horizontal side of the model window and then drag the model window to a new position. You can also
click on 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.
It is also possible to set a specific value for the ModelWinTop property. Click on the ModelWinTop
property Value Field and simply enter in the value which you would like to set the ModelWinTop property
to. Once the user moves the cursor off the value field, the uppermost position of the model window 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, Object Tab
Vision Guide 5.0 Reference (Ver.5.3) Rev.1
85