Basler L100k User Manual page 46

Table of Contents

Advertisement

Operation and Features
3.5.1.3 Calculating Gain Settings on the L104
Gain is adjustable and can be programmed on a decimal scale that ranges from 0 to 319 (0x0000
to 013F). The full scale can be used.
• The default gain settings and the reference gain result in an amplification referred to as 0 dB.
• A gain of 0 dB to 30 dB can be programmed.
• The gain can be adjusted in steps of 0.09 dB. The change in dB settings is linear.
Sample Calculation
Assume that you are working with an L104
pixels balanced, and that you want to set the gain to 2 dB.
1. To read the values that were stored during the camera's calibration procedure, use the "Read
reference gain values" command. For our example, we will assume that the camera returned
the following reference values:
Byte 1 Low byte odd pixel reference gain after decimal point
Byte 2 High byte odd pixel reference gain after decimal point
Byte 3 Low byte odd pixel reference gain before decimal point
Byte 4 High byte odd pixel reference gain before decimal point
Byte 5 Low byte even pixel reference gain after decimal point
Byte 6 High byte even pixel reference gain after decimal point
Byte 7 Low byte even pixel reference gain before decimal point
Byte 8 High byte even pixel reference gain before decimal point
2. The reference values are hexadecimal. Convert them to decimal:
Byte 1 = 0
Byte 5 = 19
3. Use the decimal values of Byte 4 to Byte 1 to determine the odd pixel reference gain RGo:
RGo
RGo = (0 x 256) + 20 + 0 + 0
RGo = 20
4. Enter the decimal odd pixel reference gain RGo and the desired gain G into the following
formula:
Xo
Xo
Xo
3-14
DRAFT
Byte 2 = 0
Byte 6 = 100
×
=
(Byte 4
256)
+
Byte 3
(
×
)
=
0.094 RGo
+
G
×
(
)
=
0.094
20
+
2
=
3.88
with Binary Commands
k
, that you want to keep the odd pixels and the even
k
Byte 3 = 20
Byte 4 = 0,
Byte 7 = 21
Byte 8 = 0
Byte 2
Byte 1
+
---------------- -
+
---------------- -
256
65536
G = Desired gain in dB, Max G = 0.094* (1024 - RGo)
0x00
0x00
0x14
0x00
0x13
0x64
0x15
0x00
BASLER L100
k Series

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents