EasyManua.ls Logo

Basler GigE CAMERAS - Page 191

Basler GigE CAMERAS
326 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
AW00097603000 Standard Features
Basler aviator GigE 181
You can set the gain auto functionality from within your application software by using the pylon API.
The following code snippets illustrate using the API to set the exposure auto functionality:
// Select the auto function AOI that was related to Gain Auto
// It is assumed here that auto function AOI 1 was related to Gain Auto
Camera.AutoFunctionAOISelector.SetValue( AutoFunctionAOISelector_AOI1 );
// Set the position and size of selected auto function AOI. In this example, we set
// auto function AOI to cover the entire sensor.
Camera.AutoFunctionAOIOffsetX.SetValue( 0 );
Camera.AutoFunctionAOIOffsetY.SetValue( 0 );
Camera.AutoFunctionAOIWidth.SetValue( Camera.AutoFunctionAOIWidth.GetMax() );
Camera.AutoFunctionAOIHeight.SetValue( Camera.AutoFunctionAOIHeight.GetMax() );
// Select gain all and set the upper and lower gain limits for the gain
// auto function.
Camera.GainSelector.SetValue( GainSelector_All );
Camera.AutoGainRawLowerLimit.SetValue( Camera.GainRaw.GetMin() );
Camera.AutoGainRawUpperLimit.SetValue( Camera.GainRaw.GetMax() );
// Set target gray value for the gain auto function.
Camera.AutoTargetValue.SetValue( 128 );
// Set the mode of operation for gain auto function.
Camera.GainAuto.SetValue( GainAuto_Once );
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.

Table of Contents

Related product manuals