ModelOK Property

Runtime only

Applies To
Vision Objects: ColorMatch, Correlation, DefectFinder, Geometric, OCR, Polar

Description
Returns the status of an object’s model.

Usage

VGet  Sequence.Object.ModelOK, 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
Boolean variable that will contain the value of the property

Values

  • 0 - False
  • -1 - True

Remarks
If the model has been taught, ModelOK will return “True”. You can ensure that the sequence will run before running a sequence.

See Also
Correlation Object, Geometric Object, ModelObject Property, OCR Object, Polar object, DefectFinder Object, VTeach