User`s manual

Standard Features AW00049313000
176 Basler runner
Setting the Gain
To set the Gain Raw All parameter value:
Set the Gain Selector to All.
Set the Gain Raw parameter to your desired value.
To set the Gain Raw Red parameter value:
Set the Gain Selector to Red.
Set the Gain Raw Red parameter to your desired value.
To set the Gain Raw Green parameter value:
Set the Gain Selector to Green.
Set the Gain Raw Green parameter to your desired value.
To set the Gain Raw Blue parameter value:
Set the Gain Selector to Blue.
Set the Gain Raw Blue parameter to your desired value.
You can set the Gain Selector and the Gain Raw parameter values 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:
// Set Gain Raw All
Camera.GainSelector.SetValue( GainSelector_All );
Camera.GainRaw.SetValue( 300 );
// Set Gain Raw Red
Camera.GainSelector.SetValue( GainSelector_Red );
Camera.GainRaw.SetValue( 20 );
// Set Gain Raw Green
Camera.GainSelector.SetValue( GainSelector_Green );
Camera.GainRaw.SetValue( 40 );
// Set Gain Raw Blue
Camera.GainSelector.SetValue( GainSelector_Blue );
Camera.GainRaw.SetValue( 60 );
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, seeSection 3.1 on page 17.