Piranha HN RoHS User Manual
Teledyne DALSA
03-032-20135-00
39
Setting the Camera Gain
Calibrating Camera Gain
Purpose:
Instead of manually setting the digital gain to a specific value, the camera can
determine appropriate gain values. This command calculates and sets the digital gain.
Syntax:
ccg i
Syntax Elements:
i
Calculation target value in a range from
4096
to
16064
DN (14 bit LSB).
Notes:
•
The algorithm calculates the gain of the 8
h
tap to set the tap mean to the user
target. For adjacent tap 7, the mean of the last 16 pixels are gained to match the
mean of the first 16 pixels of tap 8. This seam matching continues to tap 1. For
adjacent tap 9, the mean of the first 16 pixels are gained to match the mean of the
last 16 pixels of tap 8. This seam matching continues to tap 16.
•
To use this command, the CCD shift direction (
scd
) should be set to forward (
0
)
or reverse (
1
).
Example:
ccg 12800
Setting Digital Gain
Purpose:
This command sets the digital gain.
Syntax:
sg f
Syntax Elements:
f
Gain applied to all taps: -20 dB to +20 dB.
Notes:
To use this command, the CCD shift direction (
scd
) should be set to forward (
0
) or
reverse (
1
).
Example:
sg 10
Updating the Gain Reference
Purpose:
Sets the current analog gain setting to be the 0 dB point. This is useful after tap gain
matching allowing you to change the gain on all taps by the same amount.
Syntax:
ugr