Assembly: Cognex.VisionPro.PMAlign (in Cognex.VisionPro.PMAlign.dll) Version: 73.0.0.0
Implements
ICogTool Run| Event Type | Reason |
|---|---|
| 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. Use RunStatus after CogPMAlignTool returns or in a Ran event handler to determine whether a run was successful or unsuccessful. The following state flags may be affected: |
| ICogTool Ran | Fires after the tool runs. |
Runs the tool.
When RunMode is SearchImage (the default mode), calling this method attempts to locate this CogPMAlignTool's Pattern in this CogPMAlignTool's InputImage using this CogPMAlignTool's RunParams.
When RunMode is RefineStartPose, calling this method refines the StartPose instead of searching the image.
Check the RunStatus to determine whether this function succeeded, failed, or timed out. If the tool ran successfully, the results are available through the Results property.
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.