CogNdm NotifyInspectionComplete Method (Int32, CogNdmUsedAcquisitionIDCollection, Boolean, Int32,  Byte , Int32)Cognex VisionPro
Notify the remote device (PLC) that an inspection has finished.

Namespace: Cognex.VisionPro.Comm
Assembly: Cognex.VisionPro.Comm (in Cognex.VisionPro.Comm.dll) Version: 65.1.0.0
Syntax

public virtual void NotifyInspectionComplete(
	int inspectionIndex,
	CogNdmUsedAcquisitionIDCollection usedAcquisitionIDs,
	bool inspectionPassed,
	int resultCode,
	byte[] resultData,
	int resultDataOffset
)

Parameters

inspectionIndex
Type: System Int32
The index of the inspection channel/slot which completed and produced the result
usedAcquisitionIDs
Type: Cognex.VisionPro.Comm CogNdmUsedAcquisitionIDCollection
A collection of the AcquisitionIDs that were used to create this inspection result
inspectionPassed
Type: System Boolean
Whether the inspection passed or failed
resultCode
Type: System Int32
The result code of the inspection
resultData
Type:  System Byte 
The inspection result data
resultDataOffset
Type: System Int32
The offset at which the Result bytes for this inspection are written into the overall inspection results buffer
Exceptions

ExceptionCondition
ArgumentOutOfRangeException Thrown if
  • usedAcquisitionIDs contains a camera index that is less than 0 or greater than the number of supported camera acquisition channels.
  • inspectionIndex is less than 0 or greater than the number of supported inspection channels channels.
CogFfpInvalidOperationException Thrown if the size of resultData + resultDataOffset is outside the valid range for result data.
CogFfpQueueFullException Thrown if the remote device has enabled the "Buffer Results Enable" signal to enable results buffering and the buffer for the given inspection index/channel is full. When this exception is thrown the "Results Buffer Overrun" signal will be sent to the remote device. Each inspection channel can buffer up to 16 results when results buffering is enabled.
ArgumentNullException Thrown if usedAcquisitionIDs is null.
ArgumentException Thrown if usedAcquisitionIDs is an empty collection.
See Also