Calculating Gain Settings On The L101K And L103K; With Binary Commands - Basler L100k User Manual

Table of Contents

Advertisement

Operation and Features

3.5.1.2 Calculating Gain Settings on the L101k and L103k

with Binary Commands

Gain is adjustable and can be programmed on a decimal scale. The gain register ranges from
0 to 1023 (0x0000 to 0x03FF).
• Do not use gain settings below 91. Only the gain range from 91 to 1023 has tested and guar-
anteed accuracy.
• The gain can be adjusted in steps of 0.0354 dB.
• The default gain settings and the reference gain result in an amplification referred to as 0 dB.
• A gain of 0 dB to 34 dB can be programmed.
Sample Calculation
Assume that you are working with an L103
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 (see section 4.2.7.6). 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 = 51
3. Use the decimal values of Byte 4 to Byte 1 to determine the odd pixel reference gain RGo:
RGo
RGo = (0 x 256) + 109 + 0 + 0
RGo = 109.00
4. Enter the decimal odd pixel reference gain RGo and the desired gain G into the following
formula:
Xo
=
For our example, enter RGo = 109 and G = 2:
Xo
=
3-12
DRAFT
Byte 2 = 0
Byte 6 = 102
×
=
(Byte 4
256)
+
Byte 3
658
+
RGo
---------------------------- + G
20 log 10
658 RGo
658
+
109
------------------------- -
20 log 10
+
658 109
, that you want to keep the odd pixels and the even
k
Byte 3 = 109
Byte 4 = 0,
Byte 7 = 111
Byte 8 = 0
Byte 2
Byte 1
+
---------------- -
+
---------------- -
256
65536
G = Desired Gain in dB. Max. G = 0.0354 * (1024 - RGo)
2 dB
= 4.9
0x00
0x00
0x6D
0x00
0x33
0x66
0x6F
0x00
BASLER L100
k Series

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents