ICogJobScript InterfaceCognex VisionPro 9.5
Defines the interface to be implemented by user script, so that it can be called from VisionPro at the appropriate time. Normally the user script will inherit the CogJobBaseScript class rather than implement ICogJobScript directly.

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

public interface ICogJobScript

The ICogJobScript type exposes the following members.

Methods

  NameDescription
Public methodAcqFifoConstruction
Called when a new fifo is assigned to the job. This will typically occur either when the "Initialize Acquisition" button is pressed on the "Image Source" control, or when restoring from a .VPP file. This function can be used to register for events on the fifo, or to perform custom configuration for the fifo.
Public methodInitialize
Called when the script is initialized by VisionPro. Any one-time initialization should be performed here.
Public methodPostAcquisitionRefInfo
Called immediately after an acquisition has been completed.
Public methodPreAcquisition
Called just before a new acquisition begins, and allows custom setup to be performed on a per acquisition basis. This function is not called for auto or free run trigger models. To ensure no acquisitions are in progress when this function is called, the "Number of Software Acquisitions Pre-queued" setting in the Job Configuration should be set to one.
Top
See Also