VSaveModel Statement
Applies To
Vision Objects: Contour, Correlation, DefectFinder, Geometric, Polar
Description
Saves a model for a vision object on disk.
Usage
VSaveModel Sequence.Object, fileName
- 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.
- fileName
- Path and file name excluding the extension.
Remarks
VSaveModel can be used in applications when you have several different part models. Normally, a model for each object is stored in the Vision Guide data files. VSaveModel allows you to save the models into specified files so you can load them into other objects of the same type.
When you are using the Compact Vision, USB memory can be specified in filename as "CVUSB:\path\filename"
.
VSaveModel can be used with the following vision objects:
- Contour
- Correlation
- Geometric
- Polar
- DefectFinder
Example
Integer status
VTeach seq1.corr01, status
If status = 1 Then
VSaveModel seq1.corr01, "c:\models\corr01.mdl"
EndIf
See Also
VLoadModel