Basler acA2040-55 User Manual page 313

Basler ace
Table of Contents

Advertisement

AW00123409000
camera.AutoFunctionROIUseBrightness.SetValue(true);
// Set the position and size of the auto function ROI
camera.AutoFunctionROIOffsetX.SetValue(0);
camera.AutoFunctionROIOffsetY.SetValue(0);
camera.AutoFunctionROIWidth.SetValue(1294);
camera.AutoFunctionROIHeight.SetValue(964);
// Set the maximum possible size of the selected auto function ROI
camera.AutoFunctionROIOffsetX.SetValue(0);
camera.AutoFunctionROIOffsetY.SetValue(0);
camera.AutoFunctionROIWidth.SetValue( camera.AutoFunctionROI-
Width.GetMax() );
camera.AutoFunctionROIHeight.SetValue( camera.AutoFunctionROI-
Height.GetMax() );
// Select gain all and set the upper and lower gain limits for
// the gain auto function
camera.GainSelector.SetValue(GainSelector_All);
camera.AutoGainLowerLimit.SetValue(0.0);
camera.AutoGainUpperLimit.SetValue(19.745);
// Set the lowest possible lower limit and the highest possible
// upper limit for the gain auto function
camera.AutoGainLowerLimit.SetValue( camera.AutoGainLowerLimit.Get-
Min());
camera.AutoGainUpperLimit.SetValue(
camera.AutoGainUpperLimit.GetMax());
// Set the target gray value for the selected auto function
// The parameter value range refers to the theoretically maximum
// available range of gray values for the set pixel format.
// For example, if an 8 bit pixel format is set, a parameter value
// of 0.50196 will correspond to a gray value of 128.
camera.AutoTargetBrightness.SetValue(0.50196);
// Set the mode of operation for the 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.1 on
Basler ace USB 3.0
Features
page
61.
303

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the acA2040-55 and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Aca2440-35Aca2040-120Aca2440-75

Table of Contents