CogCNLSearchPattern ImportFromCvlArchive Method Cognex VisionPro
Loads a ccCnlSearchModel class from the specified CVL archive file into this CogCNLSearchPattern class. The archive should contain only a single ccCnlSearchModel class. Non-CVL parameters are set to their default VisionPro values.

Namespace: Cognex.VisionPro.CNLSearch
Assembly: Cognex.VisionPro.CNLSearch (in Cognex.VisionPro.CNLSearch.dll) Version: 65.1.0.0
Syntax

public void ImportFromCvlArchive(
	string filename
)

Parameters

filename
Type: System String

The name of the file containing the CVL archive.

Exceptions

ExceptionCondition
ArgumentException

filename is empty.

CogFileOpenException

filename could not be opened.

CogCNLSearchImportFromCVLErrorException

There was an error reading the contents of filename.

Remarks

Loads a ccCnlSearchModel class from the specified CVL archive file into this CogCNLSearchPattern class. The archive should contain only a single ccCnlSearchModel class. Non-CVL parameters are set to their default VisionPro values.

This method suspends events while it runs. It typically generates a single event with the cogState_MoreThanOneStateIDChanged state ID and the appropriate functional areas set. In case of an error, this function may call the Train  method to return this pattern to a known state. In this case, the function generates the events thrown by Train .

See Also