Skip to content

Light Source Preset#

The Light Source Preset camera feature allows you to correct color shifts caused by certain light sources.

Depending on its specific color temperature, the light used for image acquisition can cause color shifts in the image. You can correct these color shifts by selecting the related light source preset.

Using the Feature#

Selecting a Light Source Preset#

To select a light source preset, set the LightSourcePreset parameter to one of the following values (if available):

  • Daylight5000K: The camera corrects color shifts caused by daylight lighting that has a color temperature of about 5 000 K.
  • Daylight6500K: The camera corrects color shifts caused by daylight lighting that has a color temperature of about 6 500 K.
  • FactoryLED6000K: The camera corrects color shifts caused by LED lighting that has a color temperature of about 6 000 K.
  • Fluorescent4000K: The camera corrects color shifts caused by fluorescent lighting that has a color temperature of about 4 000 K.
  • MicroscopeLED4500K: The camera corrects color shifts caused by microscope LED lighting that has a color temperature of about 4 500 K.
  • MicroscopeLED5500K: The camera corrects color shifts caused by microscope LED lighting that has a color temperature of about 5 500 K.
  • MicroscopeLED6000K: The camera corrects color shifts caused by microscope LED lighting that has a color temperature of about 6 000 K.
  • Tungsten2800K: The camera corrects color shifts caused by tungsten lighting that has a color temperature of about 2 500 to 3 000 K.
  • Off: No light source preset is selected.
  • Custom: Selecting this preset enables the Color Transformation feature which allows you to customize the light source settings. You should only select this preset if you are thoroughly familiar with matrix color transformations. The camera also adjusts the Balance White and Color Adjustment settings so that they have neutral values that do not change the appearance of the colors.

The default light source preset varies by camera model.

Info

On Basler dart cameras, the light source presets are calibrated for the IR cut filter in the CS-mount variant. If you are using an S-mount or bare board variant, make sure that your IR cut filter has suitable spectral characteristics.

For more information about the IR cut filter, see your camera topic. You can find your camera topic in the "Models" section.

Impact on Other Features#

When you select a light source preset, the camera adjusts the settings of the following color enhancement features:

The settings will be optimized for the selected light source.

On some camera models, you can choose which features you want the camera to adjust.

Separate Processing#

On some camera models, when you select a light source preset, the camera processes the changes to the features listed above separately. This means that the values of the corresponding parameters visible in the pylon API and the pylon Viewer are not changed.

Example: If you select the Daylight6500K light source preset, the camera adjusts the white balance, but the values of the BalanceRatio parameter don't change.

This has the advantage that you don't lose your color enhancement feature settings when you change the light source preset. Your own settings are independent from the light source preset adjustments.

No Separate Processing#

On some camera models, when you select a light source preset, the camera doesn't process the feature changes separately. Instead, the camera directly adjusts the corresponding parameter values.

Example: If you select the Daylight6500K light source preset, the values of the BalanceRatio parameter change. You can see the changes in the pylon Viewer or by accessing the parameter via the pylon API.

This means if you set up the color enhancement features and then change the light source preset, your settings will be overwritten.

Light Source Preset Feature Selector#

On some camera models, the BslLightSourcePresetFeatureSelector parameter is available.

If the parameter is available, you can select which features you want the camera to adjust when you select a light source preset.

By default, the camera adjusts all features.

To enable or disable adjustment of a specific feature:

  1. Set the BslLightSourcePresetFeatureSelector parameter to the desired feature, e.g., ColorAdjustment.
  2. Set the BslLightSourcePresetFeatureEnable parameter to true (feature enabled) or false (feature disabled).
  3. Repeat steps 1 and 2 for all features that you want to enable or disable.

Specifics#

Show all camera models

Camera Model Default Light Source Preset Available Light Source Presets Separate Processing Feature Selector Available
a2A640-240gmSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A640-240umSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1280-80gmSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1280-125umSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1920-51gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A1920-51gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A1920-51gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1920-51gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1920-160ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A1920-160ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A1920-160umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1920-160umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A1920-165g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A1920-165g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2048-35gmSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2048-110umSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2440-98g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2440-98g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-23gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2448-23gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2448-23gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-23gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-75ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2448-75ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2448-75umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-75umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-105g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2448-105g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-120cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A2448-120cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2448-210cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A2448-210cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2560-20gmSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2560-70umSWIR Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2590-22gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A2590-22gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A2590-22gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2590-22gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2590-60ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A2590-60ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A2590-60umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2590-60umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2600-20gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2600-20gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2600-20gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2600-20gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2600-64ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2600-64ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2600-64umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2600-64umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-14gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2840-14gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2840-14gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-14gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-14gmUV Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-48ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2840-48ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2840-48umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-48umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-48umUV Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-67g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A2840-67g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-67g5mUV Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A2840-86cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A2840-86cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A3840-13gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A3840-13gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A3840-13gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A3840-13gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A3840-45ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A3840-45ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
a2A3840-45umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A3840-45umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-9gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4096-9gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4096-9gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-9gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-30ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4096-30ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4096-30umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-30umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-44g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4096-44g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4096-67cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A4096-67cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4200-12gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4200-12gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4200-12gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4200-12gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4200-40ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4200-40ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4200-40umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4200-40umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-5gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4504-5gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4504-5gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-5gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-18ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4504-18ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4504-18umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-18umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-27g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4504-27g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4504-42cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A4504-42cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4508-6gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4508-6gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4508-6gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4508-6gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4508-20ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4508-20ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A4508-20umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A4508-20umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-7gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5320-7gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5320-7gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-7gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-23ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5320-23ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5320-23umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-23umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-34g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5320-34g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5320-52cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A5320-52cm Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-4gcBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5328-4gcPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5328-4gmBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-4gmPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-15ucBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5328-15ucPRO Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5328-15umBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-15umPRO Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-22g5cBAS Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Yes Yes
a2A5328-22g5mBAS Light Source Preset feature not supported Light Source Preset feature not supported No No
a2A5328-35cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
a2A5328-35cm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA640-121gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA640-300gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA640-300gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA640-750uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA640-750um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA720-290gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA720-290gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA720-520uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA720-520um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA800-200gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA800-200gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA800-510uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA800-510um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1280-60gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1280-60gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1300-60gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1300-60gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1300-60gmNIR Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1300-75gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1300-75gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1300-200uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1300-200um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1440-73gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1440-73gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1440-220uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1440-220um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1600-20gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1600-20uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1600-60gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1600-60gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-25gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1920-25gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-25uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1920-25um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-40gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1920-40gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-40uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1920-40ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA1920-40um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-40umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-48gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1920-48gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-50gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA1920-50gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-150uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1920-150um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-155uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA1920-155ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA1920-155um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA1920-155umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2000-50gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2000-50gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2000-165uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2000-165um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-25gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2040-25gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-25gmNIR Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-35gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2040-35gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-55uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2040-55um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-90uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2040-90um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-90umNIR Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2040-120uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2040-120um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2440-20gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2440-20gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2440-35uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2440-35ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA2440-35um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2440-35umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2440-75uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2440-75ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA2440-75um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2440-75umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2500-14gc Off Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2500-14gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2500-14uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2500-14um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2500-20gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA2500-20gcMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Custom
No No
acA2500-20gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2500-20gmMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA2500-60uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA2500-60um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA3088-16gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA3088-16gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA3088-57uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA3088-57ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA3088-57um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA3088-57umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA3800-10gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA3800-10gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA3800-14uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA3800-14um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4024-8gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA4024-8gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4024-29uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA4024-29um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4096-11gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA4096-11gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4096-30uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA4096-30ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA4096-30um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4096-30umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4096-40uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA4096-40ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA4096-40um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4096-40umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4112-8gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA4112-8gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4112-20uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA4112-20ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA4112-20um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4112-20umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4112-30uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA4112-30ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA4112-30um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA4112-30umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
acA5472-5gc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten
Custom
No No
acA5472-5gm Light Source Preset feature not supported Light Source Preset feature not supported No No
acA5472-17uc Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Tungsten 2800 K
No No
acA5472-17ucMED Daylight 5000 K Off
Daylight 5000 K
Daylight 6500 K
Microscope LED 4500 K
Microscope LED 5500 K
Microscope LED 6000 K
Tungsten 2800 K
No No
acA5472-17um Light Source Preset feature not supported Light Source Preset feature not supported No No
acA5472-17umMED Light Source Preset feature not supported Light Source Preset feature not supported No No
boA1936-400cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA1936-400cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA2448-250cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA2448-250cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA2832-190cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA2832-190cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA4096-93cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA4096-93cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA4096-180cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA4096-180cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA4112-68cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA4112-68cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA4500-45cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA4500-45cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA4504-100cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA4504-100cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5120-150cc Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5120-150cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5120-230cc Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5120-230cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5320-150cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA5320-150cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA5328-100cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA5328-100cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA6500-36cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA6500-36cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA8100-16cc Off Off
Daylight 5000 Kb
Daylight 6500 Kb
Factory LED 6000 Kb
Tungstenb
Yes Yes
boA8100-16cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA9344-30cc Light Source Preset feature not supported Light Source Preset feature not supported No No
boA9344-30cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA9344-70cc Light Source Preset feature not supported Light Source Preset feature not supported No No
boA9344-70cm Light Source Preset feature not supported Light Source Preset feature not supported No No
boA13440-17cm Light Source Preset feature not supported Light Source Preset feature not supported No No
daA720-520uc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
daA720-520um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1280-54uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
daA1280-54um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1440-220uc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
daA1440-220um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1600-60uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
daA1600-60um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1920-15um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1920-30uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
daA1920-30um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA1920-160uc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
daA1920-160um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA2448-70uc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
daA2448-70um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA2500-14uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
daA2500-14um Light Source Preset feature not supported Light Source Preset feature not supported No No
daA3840-45uc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
daA3840-45um Light Source Preset feature not supported Light Source Preset feature not supported No No
dmA720-290gc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
dmA720-290gm Light Source Preset feature not supported Light Source Preset feature not supported No No
dmA1440-73gc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
dmA1440-73gm Light Source Preset feature not supported Light Source Preset feature not supported No No
dmA1920-51gc Off Off
Daylight 5000 K
Daylight 6500 K
Factory LED 6000 K
Tungsten
Yes Yes
dmA1920-51gm Light Source Preset feature not supported Light Source Preset feature not supported No No
puA1280-54uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
puA1280-54um Light Source Preset feature not supported Light Source Preset feature not supported No No
puA1600-60uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
puA1600-60um Light Source Preset feature not supported Light Source Preset feature not supported No No
puA1920-30uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
puA1920-30um Light Source Preset feature not supported Light Source Preset feature not supported No No
puA2500-14uc Daylight 5000 K Off
Daylight 5000 Ka
Daylight 6500 Ka
Tungsten 2800 Ka
No No
puA2500-14um Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-29gc Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-58gm Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-62cc Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-62g5c Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-172cm Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L2048-172g5m Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-14gc Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-29gm Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-42cc Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-42g5c Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-84cm Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L4096-84g5m Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L8192-200cm Light Source Preset feature not supported Light Source Preset feature not supported No No
r2L16384-120cm Light Source Preset feature not supported Light Source Preset feature not supported No No

  1. Only available if the pixel format is set to YCbCr422 or RGB 8. Also, if the Balance White Auto auto function is set to Off, you must reset the white balance before changing the light source preset. To do so, set the BalanceRatio parameter value for all color channels (red, green, and blue) to 1.

  2. Valid when an IR cut filter is used which passes the range from 400–700 nm of the visible light.

Sample Code#

ace 2, boost, and dart R Cameras#
// Disable light source presets (no correction)
camera.BslLightSourcePreset.SetValue(BslLightSourcePreset_Off);
// Set the light source preset for daylight (at about 5000K)
camera.BslLightSourcePreset.SetValue(BslLightSourcePreset_Daylight5000K);
// Set the light source preset for tungsten lighting
camera.BslLightSourcePreset.SetValue(BslLightSourcePreset_Tungsten2800K);
// Disable adjustment of a specific feature
camera.BslLightSourcePresetFeatureSelector.SetValue(BslLightSourcePresetFeatureSelector_ColorAdjustment);
camera.BslLightSourcePresetFeatureEnable.SetValue(false);
INodeMap& nodemap = camera.GetNodeMap();
// Disable light source presets (no correction)
CEnumParameter(nodemap, "BslLightSourcePreset").SetValue("Off");
// Set the light source preset for daylight (at about 5000K)
CEnumParameter(nodemap, "BslLightSourcePreset").SetValue("Daylight5000K");
// Set the light source preset for tungsten lighting
CEnumParameter(nodemap, "BslLightSourcePreset").SetValue("Tungsten2800K");
// Disable adjustment of a specific feature
CEnumParameter(nodemap, "BslLightSourcePresetFeatureSelector").SetValue("ColorAdjustment");
CBooleanParameter(nodemap, "BslLightSourcePresetFeatureEnable").SetValue(false);
// Disable light source presets (no correction)
camera.Parameters[PLCamera.BslLightSourcePreset].SetValue(PLCamera.BslLightSourcePreset.Off);
// Set the light source preset for daylight (at about 5000K)
camera.Parameters[PLCamera.BslLightSourcePreset].SetValue(PLCamera.BslLightSourcePreset.Daylight5000K);
// Set the light source preset for tungsten lighting
camera.Parameters[PLCamera.BslLightSourcePreset].SetValue(PLCamera.BslLightSourcePreset.Tungsten2800K);
// Disable adjustment of a specific feature
camera.Parameters[PLCamera.BslLightSourcePresetFeatureSelector].SetValue(PLCamera.BslLightSourcePresetFeatureSelector.ColorAdjustment);
camera.Parameters[PLCamera.BslLightSourcePresetFeatureEnable].SetValue(false);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Disable light source presets (no correction) */
errRes = PylonDeviceFeatureFromString(hdev, "BslLightSourcePreset", "Off");
CHECK(errRes);
/* Set the light source preset for daylight (at about 5000K) */
errRes = PylonDeviceFeatureFromString(hdev, "BslLightSourcePreset", "Daylight5000K");
CHECK(errRes);
/* Set the light source preset for tungsten lighting */
errRes = PylonDeviceFeatureFromString(hdev, "BslLightSourcePreset", "Tungsten2800K");
CHECK(errRes);
/* Disable adjustment of a specific feature */
errRes = PylonDeviceFeatureFromString(hdev, "BslLightSourcePresetFeatureSelector", "ColorAdjustment");
CHECK(errRes);
errRes = PylonDeviceSetBooleanFeature(hdev, "BslLightSourcePresetFeatureEnable", 0);
CHECK(errRes);
# Disable light source presets (no correction)
camera.BslLightSourcePreset.Value = "Off"
# Set the light source preset for daylight (at about 5000K)
camera.BslLightSourcePreset.Value = "Daylight5000K"
# Set the light source preset for tungsten lighting
camera.BslLightSourcePreset.Value = "Tungsten2800K"
# Disable adjustment of a specific feature
camera.BslLightSourcePresetFeatureSelector.Value = "ColorAdjustment"
camera.BslLightSourcePresetFeatureEnable.Value = False
ace Classic/U/L GigE Cameras#
// Disable light source presets (no correction)
camera.LightSourceSelector.SetValue(LightSourceSelector_Off);
// Set the light source preset for daylight (at about 5000K)
camera.LightSourceSelector.SetValue(LightSourceSelector_Daylight);
// Set the light source preset for tungsten lighting
camera.LightSourceSelector.SetValue(LightSourceSelector_Tungsten);
INodeMap& nodemap = camera.GetNodeMap();
// Disable light source presets (no correction)
CEnumParameter(nodemap, "LightSourceSelector").SetValue("Off");
// Set the light source preset for daylight (at about 5000K)
CEnumParameter(nodemap, "LightSourceSelector").SetValue("Daylight");
// Set the light source preset for tungsten lighting
CEnumParameter(nodemap, "LightSourceSelector").SetValue("Tungsten");
// Disable light source presets (no correction)
camera.Parameters[PLCamera.LightSourceSelector].SetValue(PLCamera.LightSourceSelector.Off);
// Set the light source preset for daylight (at about 5000K)
camera.Parameters[PLCamera.LightSourceSelector].SetValue(PLCamera.LightSourceSelector.Daylight);
// Set the light source preset for tungsten lighting
camera.Parameters[PLCamera.LightSourceSelector].SetValue(PLCamera.LightSourceSelector.Tungsten);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Disable light source presets (no correction) */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourceSelector", "Off");
CHECK(errRes);
/* Set the light source preset for daylight (at about 5000K) */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourceSelector", "Daylight");
CHECK(errRes);
/* Set the light source preset for tungsten lighting */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourceSelector", "Tungsten");
CHECK(errRes);
# Disable light source presets (no correction)
camera.LightSourceSelector.Value = "Off"
# Set the light source preset for daylight (at about 5000K)
camera.LightSourceSelector.Value = "Daylight"
# Set the light source preset for tungsten lighting
camera.LightSourceSelector.Value = "Tungsten"
Other Cameras#
// Disable light source presets (no correction)
camera.LightSourcePreset.SetValue(LightSourcePreset_Off);
// Set the light source preset for daylight (at about 5000K)
camera.LightSourcePreset.SetValue(LightSourcePreset_Daylight5000K);
// Set the light source preset for tungsten lighting
camera.LightSourcePreset.SetValue(LightSourcePreset_Tungsten2800K);
INodeMap& nodemap = camera.GetNodeMap();
// Disable light source presets (no correction)
CEnumParameter(nodemap, "LightSourcePreset").SetValue("Off");
// Set the light source preset for daylight (at about 5000K)
CEnumParameter(nodemap, "LightSourcePreset").SetValue("Daylight5000K");
// Set the light source preset for tungsten lighting
CEnumParameter(nodemap, "LightSourcePreset").SetValue("Tungsten2800K");
// Disable light source presets (no correction)
camera.Parameters[PLCamera.LightSourcePreset].SetValue(PLCamera.LightSourcePreset.Off);
// Set the light source preset for daylight (at about 5000K)
camera.Parameters[PLCamera.LightSourcePreset].SetValue(PLCamera.LightSourcePreset.Daylight5000K);
// Set the light source preset for tungsten lighting
camera.Parameters[PLCamera.LightSourcePreset].SetValue(PLCamera.LightSourcePreset.Tungsten2800K);
/* Macro to check for errors */
#define CHECK(errc) if (GENAPI_E_OK != errc) printErrorAndExit(errc)
GENAPIC_RESULT errRes = GENAPI_E_OK;  /* Return value of pylon methods */
/* Disable light source presets (no correction) */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourcePreset", "Off");
CHECK(errRes);
/* Set the light source preset for daylight (at about 5000K) */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourcePreset", "Daylight5000K");
CHECK(errRes);
/* Set the light source preset for tungsten lighting */
errRes = PylonDeviceFeatureFromString(hdev, "LightSourcePreset", "Tungsten2800K");
CHECK(errRes);
# Disable light source presets (no correction)
camera.LightSourcePreset.Value = "Off"
# Set the light source preset for daylight (at about 5000K)
camera.LightSourcePreset.Value = "Daylight5000K"
# Set the light source preset for tungsten lighting
camera.LightSourcePreset.Value = "Tungsten2800K"

You can also use the pylon Viewer to easily set the parameters.