Balancing Gain Settings When Using Binary Commands - Basler A202K Manual

Hide thumbs Also See for A202K:
Table of Contents

Advertisement

Operation and Features

3.5.2.1 Balancing Gain Settings When Using Binary Commands

The left side gain is set using the Left Side Gain binary command (see Section 4.2.4.10) and the
right side gain is set using the Right Side Gain binary command (see Section 4.2.4.12). Each gain
setting can be programmed on a decimal scale that ranges from 0 to 1023 (0x0000 to 0x03FF),
however, values lower than 288 (0x0120) should not be used.
The gain reference values can be read using the Read Reference Gain Values binary command
(see Section 4.2.5.9). The sample calculation below shows how to use the reference values.
Sample Calculation Using the Reference Values
Assume that you are working with an A202
want to keep the left side and the right side of the image in balance.
1. Read the reference values that were stored during the camera's calibration procedure using
the "Read Reference Gain Values" binary command (see Section 4.2.5.9). For our example,
we will assume that the camera returned the following reference values:
Byte 1 - Low byte left side reference gain after decimal point
Byte 2 - High byte left side reference gain after decimal point
Byte 3 - Low byte left side reference gain before decimal point
Byte 4 - High byte left side reference gain before decimal point
Byte 5 - Low byte right side reference gain after decimal point
Byte 6 - High byte right side reference gain after decimal point
Byte 7 - Low byte right side reference gain before decimal point
Byte 8 - High byte right side reference gain before decimal point
2. The reference values are hexadecimal. Convert them to decimal:
Byte 1 = 0
Byte 5 = 0
3. Use the decimal values of Byte 4 through Byte 1 to determine the reference gain for the left
side (RG
3-16
Byte 2 = 101
Byte 6 = 209
):
LS
RG
=
(Byte 4 x 256)
LS
RG
=
(1 x 256)
+
32
LS
RG
=
288.39
LS
DRAFT
, that you want to set the gain to 6 dB, and that you
k
Byte 3 = 32
Byte 7 = 37
Byte 2
+
Byte 3
+
---------------- -
256
101
0
+
--------- -
+
----------------- -
256
65536
0x00
0x65
0x20
0x01
0x00
0xD1
0x25
0x01
Byte 4 = 1
Byte 8 = 1
Byte 1
+
---------------- -
65536
k
BASLER A202

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents