Run the CogJob just once. This Run method uses the RunMode of the CogJob determines which parts (acquisition and/or image processing) actually run.
Namespace: Cognex.VisionPro.QuickBuildAssembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 79.0.0.0 (79.0.0.0)
Syntax
Events
| Event Type | Reason |
|---|---|
| CogJob Running | Fires when the CogJob starts running. |
| CogJob Ran | Fires when the CogJob has finished an iteration. |
| CogJob Stopped | Fires when the CogJob has completely stopped. |
Exceptions
| Exception | Condition |
|---|---|
| CogNotRunnableException | Thrown if the CogJob cannot be run, usually because it has been already shutdown or EStop is asserted. |
| CogNotStoppedException | Thrown if the CogJob is not stopped. |
| CogJobNoManagerException | Thrown if the CogJob does not have a CogJobManager. |
| CogMissingAcqFifoException | Thrown if the CogJob does not have an acq fifo and its RunMode is AcquisitionOnly or AcquisitionAndImageProcessing. |
| CogInvalidSetupException | Thrown if the CogJob is in AcquisitionOnly RunMode and the StartMode is IssuedAfterVisionToolRuns. |
Remarks
Run flushes any outstanding acquisition requests. If StartMode is NoneIssued, you must issue your acquisition requests after you call this method.
Examples
See Also