4M30 Camera User’s Manual
24
DALSA
03-32-10030-04
Example: Set Channel 1 to 2.5x Gain
Use these command/value pairs set the camera to 2.5x gain (you must write both MSB and LSB
values to all four ADC channels).
Value
≅
27306
×
log
10
(2.5)
Value =
10866
= 2A72h
Write MSB
Write LSB
Command
Value
Command
Value
Binary
0000 0110
0010 1010
0000 0101
0111 0010
Hex
06h
2Ah
05h
72h
Reading Channel 3 Gain from the Camera
To read the gain setting from the camera, use these commands:
Read
MSB
Read LSB
Binary
0110 0110
0110 0101
Hex
66h
65h
3.10 Adjusting User Offset
User offset is adjustable from minus full scale to plus full scale (±4095) by a 16 bit value as an MS
and LS byte (only the 14 most significant bits of this value are actually used). There are 4 ADC
video boards in the 4M30 and each can be controlled independently. Normally, the same value will
be written to all four channels. The value is calculated according to the following equation:
Value
≅
218
×
Offset/Gain
Where Offset is in counts and –4095
≤
Offset
≤
4095
And 1
≤
Gain
≤
10 and is defined as above.
This means that the offset is dependent on the gain and can be adjusted with a resolution of 0.5 x
Gain (in DN counts).
Example: Set Channel 2 to 20 DN Offset @ 2.5x Gain
Use these command/value pairs set the camera to an offset of 20 DN at a gain of 2.5 (you must
write both MSB and LSB values).
Value
≅
218
×
20/2.5
Artisan Technology Group - Quality Instrumentation ... Guaranteed | (888) 88-SOURCE | www.artisantg.com