CogJob Run Method Cognex VisionPro 9.10
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.QuickBuild
Assembly: Cognex.VisionPro.QuickBuild.Core (in Cognex.VisionPro.QuickBuild.Core.dll) Version: 79.0.0.0 (79.0.0.0)
Syntax

public void Run()
Events

Exceptions

ExceptionCondition
CogNotRunnableExceptionThrown if the CogJob cannot be run, usually because it has been already shutdown or EStop is asserted.
CogNotStoppedExceptionThrown if the CogJob is not stopped.
CogJobNoManagerExceptionThrown if the CogJob does not have a CogJobManager.
CogMissingAcqFifoExceptionThrown if the CogJob does not have an acq fifo and its RunMode is AcquisitionOnly or AcquisitionAndImageProcessing.
CogInvalidSetupExceptionThrown 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