CogAcqProfileCamera ZDetectionBase2 Property Cognex VisionPro 9.8
Reads or sets the area of the sensor used for laser detection. ZDetectionBase2 is the distance, in mm, where the detection range begins. The value is relative to either the top of the first detection zone if LinkDetectionZones is true and the first zone is enabled, or the camera defined origin of the Z axis otherwise. When converting ZDetectionBase2 to discrete sensor rows, the range may be expanded slightly to match the sensor capabilities. The range will only be reduced if it extends off the end of the sensor. This function can be used to ignore reflections and other artifacts that are outside the expected range of heights.

Namespace: Cognex.VisionPro.Implementation.Internal
Assembly: Cognex.VisionPro.Core (in Cognex.VisionPro.Core.dll) Version: 75.1.0.0
Syntax

public virtual double ZDetectionBase2 { get; set; }

Property Value

Type: Double
Applies to the area of the sensor used for laser detection.

Implements

ICogAcqProfileCamera ZDetectionBase2
Events

Event TypeReason
ICogChangedEvent ChangedFires when this property changes. The following state flag may be affected: SfZDetectionBase
Exceptions

ExceptionCondition
ArgumentOutOfRangeExceptionIf the supplied value is less than 0 or its value plus ZDetectionHeight is greater than ZDetectionHeightMax.
See Also