User`s manual

Standard Features AW00104701000
174 Basler scout light GigE
Setting the Gain
The camera’s gain is determined by the value of the Gain Raw parameter. Gain Raw is adjusted on
a decimal scale. The minimum decimal setting varies depending on the camera model (see
Table 13). The maximum setting depends on whether the camera is set for a pixel data format that
yields 8 bit effective pixel depth (Mono 8, Bayer BG 8, YUV 4:2:2 Packed, YUV 4:2:2 (YUYV)
Packed) or yields an effective pixel depth of 12 bits per pixel (Mono 16, Mono 12 Packed, Bayer BG
16, Bayer BG 12 Packed).
.
To set the Gain Raw parameter value:
Set the Gain Selector to Gain All.
Set the Gain Raw parameter to your desired value.
You can set the Gain Selector and the Gain Raw parameter value from within your application
software by using the pylon API. The following code snippet illustrates using the API to set the
selector and the parameter value:
Camera.GainSelector.SetValue( GainSelector_All );
Camera.GainRaw.SetValue( 400 );
For detailed information about using the pylon API, refer to the Basler pylon Programmer’s Guide
and API Reference.
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon Viewer, see Section 3.1 on page 25.
If you know the current decimal setting for the gain raw, you can use the formulas below to calculate
the dB of gain that will result from that setting.
Formulas:
For gain raw settings from 110 to 511:
Camera Model Min Setting Max Setting
(8 bit depth)
Max Setting
(16 bit depth)
slA640-74 280 1023 511
slA780-54 350 1023 511
slA1390-17 360 1023 511
slA1400-17 192 1023 511
Table 13: Minimum and Maximum Allowed Gain Raw Settings
Gain
dB
20 log
10
658 Gain Raw Setting +
658 Gain Raw Setting
------------------------------------------------------------------
⎝⎠
⎛⎞
G
c
×=