15 Spyder2 4k User’s Manual
03-032-10195-04 DALSA
Test Pattern Pixels and End-of-line Sequence
To facilitate system-level debugging and verification of data path integrity, the camera
can generate a test pattern. The test pattern is a ramp from 0 to 255 DN, then starts at 0
again. Use the test pattern to verify the proper timing and connections between the
camera and the frame grabber.
To alleviate post-processing, the Spyder2 offers an end-of-line sequence that provides
basic calculations including "line counter", "line average", "pixels above threshold", "pixels
below threshold", and "derivative line sum". These basic calculations are the center of
most automatic gain control (AGC) algorithms.
To further aid in debugging and cable/data path integrity, the first six bits of the output
of the end-of-line sequence are "aa", "55", "aa". Refer to the table below.
Location Value Description
1 A’s By ensuring these values consistently toggle
between "aa" and "55", you can verify cabling
(i.e. no stuck bits)
2 5’s
3 A’s
4 4 bit counter LSB justified Counter increments by 1. Use this value to
verify that every line is output
5 Line sum LSB Use these values to help calculate line
average
6 Line sum MID
7 Line sum MSB
8 0
9 Pixels above threshold LSB Monitor these values (either above or below
threshold) and adjust camera gain to keep
these values relatively constant. This
provides a basis for automatic gain control
(AGC)
10 Pixels above threshold
MSB
11 Pixels below threshold LSB
12 Pixels below threshold
MSB
13 Derivative line sum LSB Use these values to focus the camera.
Generally, the greater the sum the greater the
image contrast
14 Derivative line sum Mid
15 Derivative line sum MSB
16 0
For information
on the test pattern
and end of line
sequence
commands, see
section 3.17
Generating Test
Patterns.