Basic Operation & Standard FeaturesBASLER A102f 3-17DRAFT3.5.1 Setting GainWhen the gain is set to default, thesensor’s linear output rangedirectly matches the input voltagerange of the ADC. Thus, with thedefault gain of 0 dB, a gray valueof 1 is produced when the pixelsare exposed to no light and a grayvalue of 255 (in modes that output8 bits per pixel) or 4095 (in modesthat output 12 effective bits perpixel) is produced when the pixelsare exposed to bright light.0 dB of gain is achieved when gainis programmed to a decimal valueof 192. Increasing the gain settingto more than 192 maps a smallerportion of the sensor’s linearoutput range to the ADC’s input.Increasing the gain is useful whenat your brightest exposure, a grayvalue lower than 255 (in modesthat output 8 bits per pixel) or 4095 (in modes that output 12 effective bits per pixel) is reached.For example, if you found that at your brightest exposure your gray values were no higher than127 (8-bit mode), you could increase the gain to 6 dB (amplification factor of 2) and thus reachgray values of 254 (see Figure 3-9).Gain is adjustable and can be programmed on a decimal scale that ranges from 192 to 1023(0x0C0 to 0x3FF). The camera’s gain is determined by the setting in the Value field of the Gaincontrol register (see page 4-23).If you know the decimal number (DN) setting for the gain on your camera, the equivalent decibelvalue can be calculated using one of the following equations:L When the camera is set for Mono 16 output, only settings from 192 to 511 are valid.Settings above 511 should not be used with the camera set for Mono 16 output. In allother output modes, the entire 192 to 1023 range of gain settings is valid.In normal operation, a gain setting lower than 192 should not be used. When the gainsetting is lower than 192, the sensor output signal that is mapped to the input of theADC will not be linear.Figure 3-9: Gain Settings in dBWhen DN setting = 192 to 511 dB 20 x log 658 DN+658 DN–-------------------------⎝ ⎠⎛ ⎞ - 5.221= 10When DN setting = 512 to 1023 dB 0.0354 DN× 5.221–=