VLoadModel Statement

Applies To
Vision Objects: Contour, Correlation, Geometric, Polar, DefectFinder

Description
Loads a model from a file on the Controller that was created with VSaveModel.

Usage

VLoadModel  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
.

Remarks
VLoadModel can be used in applications where you have several different part models but the same vision sequence can be used. The fileName parameter refers to a file that was previously saved with VSaveModel for the same type of vision object.

When you are using the Compact Vision, USB memory can be specified in filename. When using USB memory, specify fileName as"CVUSB:\path\filename"

VLoadModel can be used with the following vision objects:

  • Contour
  • Correlation
  • Geometric
  • Polar
  • DefectFinder

Example

VLoadModel seq1.Corr01, "c:\models\corr01.mdl"

See Also
VSaveModel