ICogAcqLight LightPower Property Cognex VisionPro 9.22
Reads or sets the light power.

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

double LightPower { get; set; }

Property Value

Type: Double
Events

Event TypeReason
ICogChangedEvent Changed

Fires when the light power changes.

The following state flag may be affected:

Exceptions

ExceptionCondition
ArgumentException

val is < 0 or val is > 1.

Remarks

Sets or gets the primary light's power level. The light power can range from 0.0 (no power) to 1.0 (full power). The light power is split between the light field and the dark field according to the level set by LightBrightFieldPowerRatio

Setting LightEnabled and AuxLightEnabled to False does not cut power to the light device. To cut power to the light device, set LightPower and AuxLightPower to 0.0 and acquire an image.

Default Value: 0.0

See Also