CogDataAnalysisTool Run Method Cognex VisionPro 9.21
Runs the tool using the current parameter settings.

Namespace: Cognex.VisionPro
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 83.0.0.0
Syntax

public override void Run()

Implements

ICogTool Run 
Events

Event TypeReason
ICogTool Running

Fires before the tool runs.

ICogChangedEvent Changed

Fires when the tool runs. If the run was successful, results are generated; if the run was not successful, no results are generated and the previous results are cleared.

The following state flags may be affected:

    ICogChangedEvent Changed

    Fires on an unsuccessful run where no events are generated.

    The following state flag may be affected:

      ICogTool Ran

      Fires after the tool runs.

      Exceptions

      ExceptionCondition
      CogToolNoOperatorException

      RunParams is NULL.

      CogSecurityViolationException

      Security is not enabled for this vision tool. See Resolving Security-Related Error Messages for more information.

      Remarks

      Computes individual CogDataAnalysisResults for each defined channel as well as the aggregate CogDataAnalysisResults.

      Note: This method does not actually raise the exceptions listed below. Use the RunStatus property to obtain a ICogRunStatus reference. Then use its Exception property to see if the Run method raised any exceptions.

      See Also