User`s manual

Features AW00098504000
158 Basler ace Camera Link
The camera’s gain is determined by the value of the Gain Raw parameter. Raw gain is adjusted on
an integer scale. The minimum setting is 33 and the maximum setting is 511. If you know the current
setting for the Gain Raw parameter, you can calculate the camera’s gain in dB using the following
formula:
Gain in dB = 20 log
10
(Gain Raw Setting / 32)
For example, if the current Gain Raw setting is 128, then:
Gain in dB = 20 log
10
(128 / 32)
Gain in dB = 12.0
Setting the Gain Using Basler pylon
To set the Gain Raw parameter value:
Set the Gain Selector to All.
Set the Gain Raw parameter to your desired value.
You can use the pylon API to set the Gain Selector and the Gain Raw parameter values from within
your application software. The following code snippet illustrates using the API to set the selector
and the parameter value:
// Set the gain
Camera.GainSelector.SetValue( GainSelector_All );
Camera.GainRaw.SetValue( 128 );
You can also use the Basler pylon Viewer application to easily set the parameters.
For more information about the pylon API and the pylon Viewer, see Section 3.1 on page 19.
Setting the Gain Using Direct Register Access
To set the gain via direct register access:
Set the value of the Gain All register.
For more information about direct register access, see Section 3.2 on page 21.