Standard Features AW00097603000
154 Basler aviator GigE
For example, assume that you have set the Gain All to 450 and the tap 1 gain to 0. The gain on tap
1 would be:
Gain on Tap 1 = ( 0.0359 x 450) + (0.0359 x 0) = 16.2 dB
Setting the Gain
When the camera is set to four tap digitization mode, setting the gain with Basler pylon is a several
step process:
To set the Gain All parameter value:
Set the Gain Selector to All.
Set the Gain Raw parameter to your desired value.
To set the Gain Tap 1, Gain Tap 2, Gain Tap 3, or Gain Tap 4 parameter values:
Set the Gain Selector to Tap 1, Tap 2, Tap 3, or Tap 4.
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 Gain All
Camera.GainSelector.SetValue( GainSelector_All );
Camera.GainRaw.SetValue( 450 );
// Set Gain Tap 1
Camera.GainSelector.SetValue( GainSelector_Tap1 );
Camera.GainRaw.SetValue( 0 );
// Set Gain Tap 2
Camera.GainSelector.SetValue( GainSelector_Tap2 );
Camera.GainRaw.SetValue( 0 );
// Set Gain Tap 3
Camera.GainSelector.SetValue( GainSelector_Tap3 );
Camera.GainRaw.SetValue( 0 );
// Set Gain Tap 4
Camera.GainSelector.SetValue( GainSelector_Tap4 );
Camera.GainRaw.SetValue( 0 );
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 on page 21.