DALSA is an international high performance semiconductor and electronics company that designs,
develops, manufactures, and markets digital imaging products and solutions, in addition to providing
semiconductor products and services. DALSA’s core competencies are in specialized integrated circuit and
electronics technology, software, and highly engineered semiconductor wafer processing. Products and
services include image sensor components; electronic digital cameras; vision processors; image processing
software; and semiconductor wafer foundry services for use in MEMS, high-voltage semiconductors,
image sensors and mixed-signal CMOS chips. DALSA is listed on the Toronto Stock Exchange under the
symbol “DSA”. The Company has its corporate offices in Waterloo, ON and over 1000 employees worldwide.
For further information not included in this manual, or for information on DALSA’s extensive line of
image sensing products, please call:
Ikebukuro East 13F
3-4-3 Higashi-Ikebukuro
Toshima-ku, Tokyo 170-0013
Japan
Tel: 81 3 5960 6353
Fax: 81 3 5960 6354 (fax)
www.dalsa.com
sales.asia@dalsa.com
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
3
Contents
Introduction to the Spyder3 GigE Camera ______________________________________ 5
1.1 Camera Highlights.......................................................................................................................................................6
1.2 Camera Performance Specifications ............................................................................................................................7
2.4 Camera Connectors......................................................................................................................................................23
2.4.2 Power Connector....................................................................................................................................24
2.5 Camera LED.................................................................................................................................................................27
2.6 Camera Timing............................................................................................................................................................28
Controlling the Camera ___________________________________________________ 31
3.2 Using ASCII Commands...............................................................................................................................................33
3.3 First Power Up Camera Settings..................................................................................................................................35
Optical, Mechanical, and Electrical Considerations ________________________________ 37
5.1 Electrostatic Discharge and the CCD Sensor ................................................................................................................43
5.2 Protecting Against Dust, Oil and Scratches..................................................................................................................43
5.3 Cleaning the Sensor Window.......................................................................................................................................44
6.2 Specific Solutions.........................................................................................................................................................49
A1.2 CCD Shift Direction .................................................................................................................................55
A1.3 Setting the Bit Depth and Data Mode ....................................................................................................56
A1.4 Exposure Mode, Line Rate and Exposure Time ......................................................................................56
A1.5 Configuring the GPIO Connector............................................................................................................61
A2 Data Processing............................................................................................................................................................63
A2.1 Setting a Region of Interest (ROI)..........................................................................................................63
A2.2 Analog and Digital Signal Processing Chain..........................................................................................64
A3 Saving and Restoring Settings .....................................................................................................................................79
A3.1 Saving and Restoring PRNU and FPN Coefficients.................................................................................81
A3.2 Rebooting the Camera............................................................................................................................82
A4.1 Generating a Test Pattern......................................................................................................................82
A4.1.1 Ethernet Test Pattern...........................................................................................................................83
A4.2 Returning Video Information .................................................................................................................84
A4.3 Temperature Measurement....................................................................................................................85
A4.4 Voltage Measurement.............................................................................................................................85
A4.5 Camera Frequency Measurement...........................................................................................................86
A4.6 Returning the LED Status.......................................................................................................................87
A4.7 Returning Camera Settings ....................................................................................................................87
EMC Declaration of Conformity______________________________________________ 105
Revision History ________________________________________________________ 107
Index _______________________________________________________________ 110
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
5
1
Introduction to the Spyder3
GigE Camera
Chapter Contents
1.1 Camera Highlights ___________________________________________________
Sensitivity Mode and Pixel Readout..................................................................................................................................10
• Broadband responsivity up to 408±16DN(nJ/cm2) @10dB gain
• 1024 or 2048 pixels, 14µm x 14µm pixel pitch, 100% fill factor
• High or low speed (40 or 80MHz)
• Up to 68kHz line rates
• Dynamic range up to 488:1
• Data transmission up to 100m
• ±50µm x, y sensor alignment
Programmability
• Easy to use graphical user interface
• Serial interface (ASCII, 9600 baud, adjustable to 19200, 57600, 115200), through virtual
serial port through Ethernet
•Programmable gain, offset, exposure time and line rate, trigger mode, test pattern
output, and camera diagnostics
• Tall pixel, high sensitivity, or low sensitivity mode available.
• Flat-field correction—minimizes lens vignetting, non-uniform lighting, and sensor
FPN and PRNU.
Description
The Spyder3 GigE camera is DALSA’s first GigE camera. With a GigE interface, you no
longer need a frame grabber which means significant system cost savings.
The Spyder3 GigE is also DALSA’s first dual line scan camera. When operating in high
sensitivity (dual line scan) mode, the Spyder3 GigE camera has 3x the responsivity of a
DALSA’s Spyder2 line scan camera.
Applications
The Spyder3 GigE camera is ideal for:
• FPD inspection
• Pick and place
• Container inspection
• Wood/tile/steel inspection
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
y
7
• 100% print inspection (lottery tickets, stamps, bank notes, paychecks)
• Postal sorting
• Glass bottle inspection
• Industrial metrology
• Food inspection
• Web inspection
Models
The Spyder3 GigE camera is available in these models.
Table 1: Spyder3 GigE Camera Models Overview
Model Number Description
SG-10-01K80 1k resolution, 2 sensor taps, 80MHz data rate
SG-10-02K80 2k resolution, 2 sensor taps, 80MHz data rate
SG-10-01K40 1k resolution, 1 sensor tap, 40MHz data rate
SG-10-02K40 2k resolution, 1 sensor tap, 40MHz data rate
1.2 Camera Performance Specifications
Table 2: Spyder3 GigE Camera Performance Specifications
Feature / Specification Units 1k 2k Notes
Imager Format dual line scan dual line scan
Resolution pixels 1024 2048
Pixel Fill Factor % 100 100
Pixel Size µm 14x14 14x14
Output Format (# of taps) 1 or 2
depending on
model
Sensitivity Mode High, low, or
tall pixel
Antiblooming 100x 100x
Gain Range dB ±10 ±10
Optical Interface Units Notes
Back Focal Distance
M42x1
Sensor Alignment
0z
mm
x
µm
µm
z
mm
°
6.56±0.25
±50
±50
±0.25
±0.2
1 or 2
depending on
model
High, low, or
tall pixel
Lens mount
adapters are
available.
Contact Sales for
more
information.
DALSA 03-032-10158-04
8
PRELIMINARY Spyder3 GigE User Manual
Feature / Specification Units 1k 2k Notes
Mechanical Interface Units Notes
Camera Size mm 72(h) x 60(l) x 50(w)
Mass g <300
Connectors
power connector
GigE connector
GPI/O connector
6 pin male Hirose
RJ45
high density dsub
Electrical Interface Units Notes
Input Voltage Volts +12 to +15
Power Dissipation W <8.5
Operating Temperature °C 0 to 50
Bit Width Bits 8 or 12 bit user selectable
Output Data Configuration GigE
Speed Units 1k 2k Notes
Minimum Line Rate kHz 1 1
Maximum Line Rate kHz
80MHz
model
40MHz
model
Data Rate MHz 40 or 80 40 or 80 Data rate
68
36 18.5
36
depends on
camera model
Operating Specifications (12 bit values, Flat Field Correction enabled)
-10dB 0dB +10dB Specification Unit
Broadband
Responsivity (dual line)
Broadband
Responsivity (single
line)
Random Noise rms DN 8 19.2 24 60 76.8
Dynamic Range
(Dual Line)
Dynamic Range (Single
Line)
FPN Global
Uncorrected
Corrected
PRNU ECD
Uncorrected Local
Uncorrected Global
Corrected Local
03-032-10158-04 DALSA
DN/nJ/cm2 38.8 40.8 42.8 124 129 134 392 408 424
DN/nJ/cm2 20.4 62 204
ratio 500:1 203:1 324:1 59:1 108:1
ratio 500:1 203:1 324:1 59:1 108:1
DN
DN
%
%
DN p-p
Min
Typ
Max
52.8
32
8.5%
10%
32
Min
Typ
Max
169.6
32
8.5%
10%
32
Min
Typ
Max
536
64
8.5%
10%
64
Notes
1
Spyder3 GigE User’s Manual PRELIMINARY
9
Operating Specifications (12 bit values, Flat Field Correction enabled)
• Unless specified, all values are referenced at 12 bit
• Exposure mode disabled.
• Unless specified, dual line mode.
Notes
1. PRNU measured at 50% SAT.
1.3 Image Sensor
The camera uses DALSA’s dual line scan sensor. The camera can be configured to read
out in either high or low sensitivity mode, tall pixel mode, and forward or reverse shift
direction.
DALSA 03-032-10158-04
10
PRELIMINARY Spyder3 GigE User Manual
Figure 1: 2 Tap Sensor Block Diagram (SG-10-01K80, SG-10-02K80)
CCDReadou t Shift Reg ist e r
Pixels(14μmx14μm)
N
N
Pixels(14μmx14μm)
CCDReadout Sh iftRe g ist er
=1024,2048
Pixel1,1
N
Figure 2: 1 Tap Sensor Block Diagram (SG-10-01K40, SG-10-02K40)
CCDReadou t Shift Reg ist e r
Tap 1
Pixels(14μmx14μm)
N
N
Pixels(14μmx14μm)
CCDReadout Sh iftRe g ist er
=1024,2048
Pixel1,1
N
Tap 2Tap 1
Sensitivity Mode and Pixel Readout
The camera has the option to operate in either high sensitivity or low sensitivity mode or
in tall pixel mode. When in high sensitivity mode, the camera uses both line scan sensors
and its responsivity increases accordingly. When in low sensitivity mode, the camera uses
the bottom sensor. When operating in tall pixel mode, the camera operates using both
sensors, creating a 28µm x 14µm pixel. The sensitivity mode is software controlled
through QuickCam or through the ASCII command ssm.
Figure 3: High Sensitivity Mode
Pixel Detail
14μm
m
μ
4
1
m
μ
4
1
CCDReadoutShiftRegister
Sensor2(14μmx14μm)
Sensor1(14μmx14μm)
CCDReadoutShiftRegister
In high sensitivity mode, the camera uses a 14μmx14μm pixel and captures the same image twice, creating a brighter image.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
11
Figure 4: Low Sensitivity Mode
Pixel DetailPixel Detail
14μm
m
μ
4
1
CCDReadoutShiftRegister
Sensor2(14μmx14μm)
Sensor1(14μmx14μm)
CCDReadoutShiftRegister
In low sensitivity mode, the camera uses a 14μmx14μm pixel and captures the image using one sensor (Sensor 1).
Figure 5: Tall Pixel Mode
Pixel Detail
14μm
m
μ
8
2
CCDReadoutShiftRegister
Sensor1and2(28μmx14μm)
CCDReadoutShiftRegister
In tall pi xel mode, the camera uses a 28μmx14μm pixel and captures an image two times taller than in high or low sensitivity
mode, creating a taller image.
DALSA 03-032-10158-04
12
PRELIMINARY Spyder3 GigE User Manual
Sensor Shift Direction
When in high sensitivity mode, you can select either forward or reverse CCD shift
direction. This accommodates object direction change on a web and allows you to mount
the camera “upside down”.
Figure 6: Object Movement and Camera Direction Example using an Inverting Lens
Directionof
ObjectMovement
Camerashouldoperatein
ReverseShiftDirection
scd1
Camerashouldoperatein
ForwardShiftDirection
scd0
Directionof
ObjectMovement
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
13
1.4 Responsivity
Figure 7: Spyder3 GigE Responsivity
Refer to section
1.3 Image Sensor for a description of high and low sensitivity modes.
PC Requirements ...............................................................................................................................................................20
High Performance Driver Mode.........................................................................................................................................22
Standard Driver Mode.......................................................................................................................................................22
DALSA NetLink Universal IP Filter Driver Mode...............................................................................................................23
2.4 Camera Connectors ___________________________________________________ 23
TTL Inputs and Outputs.....................................................................................................................................................26
LVDS Inputs and Outputs ..................................................................................................................................................26
Programming the GPIO Connector....................................................................................................................................27
2.5 Camera LED ________________________________________________________ 27
18
2.6 Camera Timing ______________________________________________________ 29
DALSA 03-032-10158-04
18
PRELIMINARY Spyder3 GigE User Manual
2.1 Installation Overview
1
Install Ethernet card.
Following the manufacturer’s instructions,
install an Ethernet card. For Gigabit
performance, you must install an Intel
PRO/1000 Ethernet card.
Do not install the manufacturer’s
!
You will install the appropriate
driver.
QuickCam driver in step 3.
2
Install QuickCam GUI.
Spyder3 GigE CDInser t the into your CD-
ROM and follow the online instructions to
install the QuickCam GUI.
3
Install QuickCam driver.
1. the
Open .Start
Programs—DALSA QuickCam——
.
2. If you are using an :
a) On the tab, right-click on an Intel PRO/1000 network
interface card adapter with no installed driver (i.e. when the Device Class is
Ethernet Controller).
The following context menu appears:
b) Choose to install the QuickCam
High Performance IP Device Driver.
If you are using an :
a) On the tab, click, This button
installs the QuickCam Universal IP Filter Driver on ALL network adapters
installed on the system that are using a network driver. This excludes
PRO/1000 adapters on which the QuickCam High-Performance Driver has
been installed.
Driver Installation Tool
Intel PRO/1000 adapter
Pro 1000 Adapters
Install High Performance IP Device Driver
NOTIntel PRO/1000 adapter
Universal IP Filter DriverInstall Filter Driver…
On the Windows task bar click , point to
Tools Launch Driver Installation Tool
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
19
4
GPIO Connector
If using an external sync, external direction
control or any other external signals,
connect the GPIO.
5
Connect Ethernet cable.
Connect Cat 5 or Cat 6 cable from camera
to computer Ethernet jack.
6
Connect power cable.
Connect power cable from camera to +12
V to +15 V power supply.
4
7
Open QuickCam.
On the Windows task bar click , point Start
Programs—DALSA
to
QuickCam—DALSA Qui ckCam
.
8
Confirm or enter your IP Address.
In the dialog box, Set Camera’s IP Adress
confirm or enter the camera’s IP Address.
Click .OK
9
Start acquiring images.
On the QuickCam toolbar, click the
Continuous Grab
be visible in the Image Output window.
icon. The image should
Note: Refer to the following sections for details on equipment recommendations and camera
connector information.
DALSA 03-032-10158-04
20
PRELIMINARY Spyder3 GigE User Manual
2.2 Equipment Recommendations
PC Requirements
To achieve best performance, the following minimum requirements are recommended:
• Processor: AMD Athlon XP 2000+ or Intel P4 2.0GHz
• Memory: 512MB DDR-RAM PC2700
• Motherboard: Mid-end without embedded graphic card. Avoid using onboard video
cards as they may compete with other components for shared memory.
•VGA card: Nvidia GForce 2 or better (ATI not recommended). Some ATI video cards
will use a high amount of the PCI bandwidth and compete with other components,
such as the GigE network card. This may lower the expected data rate of applications.
•GigE network adapter (either PCI card or LOM): For high performance, you must use
a Intel PRO/1000 MT adapter
•Operating system: Windows 2000 (SP4), Windows XP Professional
Network Adapter Requirements
The Spyder3 GigE camera works only with network adapters based on the Intel 82546,
82541, and 82540 network chips. The driver will also function with adapters based on the
Intel 82544 chip, but these are not recommended due to bugs in the chip that can cause
control packets to be lost if sent while data is streaming.
The PCI ID for some OEM network adapters may not be automatically recognized by the
Spyder3 GigE camera. If this occurs, contact DALSA to obtain an updated INF file.
The following four Intel network adapters are recommended and are the only adapters
that are compatible with the high performance driver:
LAN on the motherboard (LOM) chips from Intel are also supported. Contact DALSA for
information on how to use these network chips with the DALSA QuickCam HighPerformance IP Device Driver.
Ethernet Switch Requirements
When you require more than one device on the same network or a camera-to-PC
separation of more than 100 metres, you can use an Ethernet switch. Since the Spyder3
GigE camera complies with the Internet Protocol, the camera should work with all
standard Ethernet switches. However, switches offer a range of functions and
performance grades, so care must be taken to choose the right switch for a particular
application. The following switches are expected to work with the camera:
•SMC (
www.smc.com) TigerSwitch 86xxT family
Features: Layer 2 with IGMP v2.0 managed switch that supports jumbo frames
and multicast
•3COM (
6www.3com.com) 3C1740x (3800 Family):
Features: Layer 2 with IGMP v2.0 managed switch that supports multicast
•Dlink (
7Hwww.dlink.com) DGS-10xxTx 10/100/1000 family:
Features: Layer 2 unmanaged switch that converts multicast into a broadcast
•3COM (
8Hwww.3com.com) 3C1770x (4900 Family):
Features: Layer 2 non-blocking switch that converts multicast into a broadcast
•Dlink (
9Hwww.dlink.com) DGS-3308FG & DGS-3308-TG
Features: Layer 3 non-blocking switch that supports multicast
•Cisco (
10Hwww.cisco.com) WS-C3750G-12S-S:
Features: Layer 3 switch that supports multicast
Fiber-Optic Interface Requirements
In cases where no intervening switch is desired and camera-to-PC separations of more
than 100 meters are required, a fiber-optic media converter can be used with the Spyder3
GigE camera.
The FlexPoint GX from Omnitron Systems (
to fiber and vice versa. It supports multimode (MM) fiber over distances of up to 220 m
(720 ft.) and single-mode (SM) fiber up to 65 km (40 mi.) with SC, MT-RJ, or LC connector
types.
Note: Although these products are known to work with the Spyder3 GigE camera, their
inclusion in this manual does not guarantee they will meet specific application
requirements.
DALSA 03-032-10158-04
11Hwww.omnitron-systems.com) converts GigE
22
PRELIMINARY Spyder3 GigE User Manual
Shielded Ethernet Cable Requirements
In order to achieve EMC compliance, the Spyder3 camera requires the use of shielded
CAT5e or CAT6 Ethernet cables.
2.3 Drivers: Overview
High Performance Driver Mode
In high-performance mode, the Spyder3 GigE works with the High-Performance IP
Device Driver to transfer data between cameras and PCs with very low, predictable
latency at rates of up to 1 Gb/s (100 MB/s). The video data is streamed directly into PC
memory using almost no PC CPU resources. This leaves the CPU free to process
applications.
To achieve this performance level, PCs must be equipped with a GigE network interface
(also referred to as a network adapter) based on Intel’s 82540 chip. Many motherboard
manufacturers are designing this chip directly into their board in “LAN on the
motherboard (LOM)” implementations. Alternately, an Intel 82540-based network
adapter, also known as a network interface card, can be slotted into a PC.
Note: For more information and instructions on installing the drive, refer to the Spyder3
GigE Driver Manual. To view the manual, point to Programs → DALSA QuickCam →
Documentation → Spyder3 GigE Driver Manual
Note: The DALSA NetLink IP Device Driver supports LOM implementations, but the PCI
identification number for these may be different. Contact DALSA to obtain a driver
installation file compatible with LOMs.
Standard Driver Mode
In standard mode, the Spyder3 GigE operates with any vendor’s Ethernet network
adapter. The driver shipped with the adapter transfers the data to the Windows network
stack, which handles IP communications tasks.
Standard mode is recommended for applications where flexibility is more important than
performance. The Windows network stack uses significant levels of CPU processing
power to transfer data to memory, which can result in lost packets, severely degrading
performance.
Standard mode is thus suitable for applications that require bandwidths of only 100 Mb/s
or less. If this mode is used with bandwidths of 1 Gb/s, application performance will
greatly degrade when CPU usage hits 100%. Additionally, at high rates like these,
insufficient CPU resources may be available to process or even display images.
Note: For more information and instructions on installing the drive, refer to the Spyder3
GigE Driver Manual. To view the manual, point to Programs → DALSA QuickCam →
Documentation → Spyder3 GigE Driver Manual
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
23
DALSA NetLink Universal IP Filter Driver Mode
The Universal IP Filter Driver mode is recommended for applications where flexibility is
more important than performance, but more performance is required than can be
achieved using only the Windows network stack.
Similar to the drivers used in standard mode, the Universal IP Filter Driver interoperates
with any vendor’s Ethernet network adapter. The driver shipped with the adapter is still
employed, but it communicates with the Filter Driver, instead of with the Windows
network stack.
All packets related to imaging are processed with high efficiency by the Universal IP
Filter Driver. Other packets are forwarded to the Windows stack. In this way, a single
network adapter can support both an imaging application and normal corporate LAN
functions, such as web browsing and email.
Note: For more information and instructions on installing the drive, refer to the Spyder3
GigE Driver Manual. To view the manual, point to Programs → DALSA QuickCam →
Documentation → Spyder3 GigE Driver Manual
Driver Comparison
The performance metrics in 227HTable 3 may help you determine which driver mode best suits
your application requirements. The measurements were taken using an Intel P4 2.8 GHzbased PC with hyperthreading, 512 MB of memory, and Windows XP.
Although CPU performance and data transfer rates vary with PC configuration, relative
performance is roughly equivalent, independent of the PC.
Table 3: Driver Performance Comparison
High-Performance IP
Device Driver
Maximum
Throughput
CPU Usage < 1% < 15% 50%
With the hyper threading CPU used in these tests, the 50% CPU usage measured for the
Native Windows stack indicates that one complete processing thread was employed to
transfer the data. This leaves only one thread available for processing applications. By
contrast, with the DALSA NetLink Universal IP Filter Driver and the DALSA NetLink
High-Performance IP Device Driver, one complete thread and most of the second thread
are available for applications processing.
108 MB/s 82 MB/s 68 MB/s
2.4 Camera Connectors
Universal IP
Filter Driver
Native
Windows Stack
The camera uses:
•An RJ-45 connector for Gigabit Ethernet signals, data signals, and serial
communications. Refer to section
•One 6-pin Hirose connector for power. Refer to section
details.
DALSA 03-032-10158-04
228H2.4.1 Ethernet Connector for details.
229H2.4.2 Power Connector for
24
s
PRELIMINARY Spyder3 GigE User Manual
•One 15-pin general purpose input/output (GPIO) connector. Refer to section 230H2.4.3
GPIO Connector for details.
Figure 8: Spyder3 GigE Input and Output Connectors
GPIO Connector
Power Connector
Ethernet Connector
!
WARNING: It is extremely important that you apply the appropriate voltages to your camera.
Incorrect voltages may damage the camera. See section 2.4 for more details.
2.4.1 Ethernet Connector
Data Tr ansmission LED
(Yellow)
Ethernet Connection LED
Steady green indicated that an Ethernet connection is successfully established at 1Gbps.
Data Transmission LED
Steady yellow indicates that the camera is ready for data transmission.
Flashing yellow indicates that the camera is transmitting or receiving data.
EMC Compliance
In order to achieve EMC compliance, the Spyder3 camera requires the use of shielded
CAT5e or CAT6 Ethernet cables.
The camera requires a single voltage input (+12 to +15V). The camera meets all
performance specifications using standard switching power supplies, although wellregulated linear supplies provide optimum performance.
25
!
WARNING: When setting up the camera’s power supplies follow these guidelines:
• Apply the appropriate voltages
• Protect the camera with a
• Do not use the shield on a multi-conductor cable for ground.
• Keep leads as short as possible to reduce voltage drop.
• Use high-quality
Note: Camera performance specifications are not guaranteed if your power supply does not meet
these requirements.
DALSA offers a power supply with attached 6’ power cable that meets the Spyder3 GigE
camera’s requirements, but it should not be considered the only choice. Many high
quality supplies are available from other vendors. Visit the 12Hwww.dalsa.com Web site for a
list of companies that make power supplies that meet the camera’s requirements. The
companies listed should not be considered the only choices.
2.4.3 GPIO Connector
The GPIO connector is used to control external signals. For example, the GPIO connector
can be used to control EXSYNC, PRIN (pixel reset), and direction signals.
fast-blow fuse between power supply and camera.
linear supplies to minimize noise.
Figure 10: GPIO Connector and Pin Numbers
1
5
11
15
Table 5: GPIO Connector Pinout
Pin Signal Description
1
INPUT_ 1+ LVDS/TTL format (positive)
2
INPUT_1- Negative component when LVDS signal is arriving on Pin 1
3
INPUT_2+ LVDS/TTL format (positive)
4
INPUT_2- LVDS signal is arriving on Pin 3
5
GND
6
INPUT_3+ LVDS/TTL format (positive)
7
INPUT_3- LVDS signal
8
INPUT_4 TTL auxiliary input
9
OUTPUT_4 TTL auxiliary output
DALSA 03-032-10158-04
26
PRELIMINARY Spyder3 GigE User Manual
Pin Signal Description
10
OUTPUT_3+ LVDS/TTL auxiliary output
11
OUTPUT_1+ LVDS/TTL auxiliary output
12
OUTPUT_1- LVDS negative component
13
OUTPUT_2+ LVDS/TTL auxiliary output
14
OUTPUT_2- LVDS negative component
15
OUTPUT_3- LVDS negative component
A schematic of the TTL input circuitry is shown in 231HFigure 11: TTL Input Schematic. The
input signals are fed into the engine from external sources via the GPIO connector.
TTL Inputs and Outputs
Figure 11: TTL Input Schematic
3.3V
3.3V
1000
Ω
TTL
• Termination: 1000 Ω serial
• Input current: minimum 0 nA; maximum 2 mA
• Input voltage: maximum of low 0.9 V; minimum of high 2.1 V
• TTL inputs are 5V and 3.3V logic tolerant
Figure 12: TTL Output Schematic
5V
100
Ω
ESD
Protection
Termination: 100 Ω serial
Output current: sink 50 mA; source 50 mA
Output voltage: maximum of low 0.44 V; minimum of high 2.48 V
LVDS Inputs and Outputs
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
27
Figure 13: LVDS Input
100
Ω
Figure 14: LVDS Output
Programming the GPIO Connector
The connector is programmed through the QuickCam application or through the
QuickCam SDK. After you have installed the QuickCam program, refer to the QuickCam
User’s Manual or the QuickCam help topic, GPIO Control, for more information on
programming the connector. Refer to section
information on installing QuickCam.
232H3.1 QuickCam Interface for more
2.5 Camera LED
The camera is equipped with a red/green LED used to display the operational status of
the camera. The table below summarizes the operating states of the camera and the
corresponding LED states.
When more than one condition is active, the LED indicates the condition with the highest
priority. Error and warning states are accompanied by corresponding messages further
describing the current camera status.
Table 6: Diagnostic LED
Priority Color of Status LED Meaning
1 Flashing Red Fatal Error. For example, camera temperature is too
2 Solid Red Warning. Loss of functionality
3 Flashing Green Camera initialization or executing a long command
4 Solid Green Camera is operational and functioning correctly
high and camera thermal shutdown has occurred.
(e.g., flat field correction commands ccp or ccf)
DALSA 03-032-10158-04
28
PRELIMINARY Spyder3 GigE User Manual
2.6 Camera Timing
Table 7: Camera Link Timing Parameter Table
Units Min. Typ. Max. Notes
tLine_Period μs 27.78 1000 1K 1 Tap
14.71 1000 1K 2 Tap
54.1 1000 2K 1 Tap
27.78 1000 2K 2 Tap
twSync ns 100
twSYNC_INT ns 100
(3000*)
tPR ns 0
twPR_LOW ns 3000
twPR_HIGH ns 3000
tPR_INT ns 3000
For exposure mode
4 this value needs to
be >3000ns other
wise >100ns
Installing and Running QuickCam and the QuickCam SDK ..............................................................................................234H32
Getting Help ......................................................................................................................................................................235H32
3.2 Using ASCII Commands ________________________________________________ 236H33
3.4 First Power Up Camera Settings __________________________________________ 237H35
DALSA 03-032-10158-04
32
PRELIMINARY Spyder3 GigE User Manual
To control the Spyder3 GigE camera, you have a choice of using:
•The DALSA QuickCam graphical user interface (GUI). QuickCam provides you
with a quick and easy way to start imaging with the camera. All camera
functionality can be controlled with the QuickCam application. QuickCam is
available on the Spyder3 GigE CD. Refer to section
instructions on installing and running QuickCam.
•The DALSA QuickCam SDK. All that is possible through QuickCam is also
possible in custom built applications created through the Camera Interface
Application SDK. You can also use the SDK to create a new camera specific
interface. The SDK is available on the Spyder3 GigE CD. Refer to section
QuickCam Interface for instructions on installing and running the QuickCam
SDK
•ASCII commands. All of the camera’s functionality is also accessible through its
serial interface. Refer to section
information on how to use ASCII commands,
240H3.2 Using ASCII Commands for more
238H3.1 QuickCam Interface for
3.1 QuickCam Interface
239H3.1
Installing and Running the DALSA QuickCam GUI and the
DALSA QuickCam SDK
If you have not already installed the DALSA QuickCam GUI, refer to section 241H2.1
Installation Overview for details on installing and running the software.
Getting Help
The QuickCam application provides context-sensitive help on all dialog boxes, providing
descriptions of specific fields as well as conceptual information related to those fields.
You can find help directly from the QuickCam Help or from the QuickCam User’s
Manual. Both are installed with the QuickCam application.
•For context sensitive help, place your cursor in the field where you want more help
and press F1.
or
Click the Help button on the tab in QuickCam where you want more information.
•For the complete Help, select HelpQuickCam Help on the QuickCam menu bar.
You can find topics from the Help by using the table of contents and search tool.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
33
•To view the QuickCam User’s Manual, point to Programs QuickCam
QuickCam User’s Manual
3.2 Using ASCII Commands
All functionality available through the QuickCam GUI is also available through the serial
interface using the camera-specific three letter commands.
There are three ways to enter ASCII commands: through the QuickCam Command tab,
through the Configuration window, or through the virtual serial port. Entering
commands through the QuickCam Command window is the simplest method.
Command Window Method:
1. Open QuickCam. Refer to section 242H3.1 QuickCam Interface for details on installing and
running the application.
In the Message Window:
2. Open the Command tab.
3. At the OK> prompt, enter the ASCII command. Refer to Appendix A for details on all
of the camera’s available ASCII commands.
4. Press Enter.
The camera responds with OK> if the command was successful or an error or warning
message as appropriate.
DALSA 03-032-10158-04
34
PRELIMINARY Spyder3 GigE User Manual
Figure 15: Command Tab after Sending the sem (Set Exposure Mode) Command
Configuration Window Method:
1. Open QuickCam. Refer to section 243H3.1 QuickCam Interface for details on installing and
running the application.
In the Camera Configuration Window:
2. Open the Exposure/GPIO tab.
3. Click Advanced…
4. Open the Port Communication tab.
The Port Communication tab provides an ASCII interface. In order to comply with
DALSA camera command protocol, you must send and receive as ASCII and ensure that
the CR checkbox is checked (default).
Figure 16: Port Communication Tab after Sending the h (Help) Command
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
35
Virtual Serial Port Method
1. Open QuickCam. Refer to section 244H3.1 QuickCam Interface for details on installing and
running the application.
2. Select Configure→Virtual Serial Port to enable or disable the virtual serial port.
Some camera control tools can connect only to a Windows system serial port. To avoid
asking for changes from camera manufacturers, two serial COM ports in the PC can be
linked together to share the serial channel to the IP engine. Through their linkage, data
written to one port can be read by the other port, and vice-versa.
These linked serial COM ports can be either "virtual" or physical. To set up virtual ports,
use a virtual serial port driver. Some good virtual serial port drivers are available at:
http://www.softinfinity.com/ or http://www.virtual-serial-port.com/.
Alternatively, if a PC has two free physical serial ports, they can be connected together
and used as a pair, in the same manner as a virtual serial port driver.
The Serial Port Configuration dialog box allows you to attach the serial channel in
QuickCam to one port in a serial port pair, whether a physical pair or virtual pair.
Therefore, an external application needs simply to connect to the other serial port of the
pair to communicate with the camera.
3.3 First Power Up Camera Settings
When the camera is powered up for the first time, it operates using the following factory
settings:
• High sensitivity mode
• Forward CCD shift direction
• No binning
• Exposure mode 7 (Programmable line rate & max exposure time).
• 5000 Hz line rate
• Factory calibrated analog gain and offset
• Factory calibrated FPN and PRNU coefficients using the following process:
o line rate of 5000 Hz
o analog gain calibrated to an average pixel value of 248 DN
o fpn calibration
o prnu calibration
o 12 bit output
DALSA 03-032-10158-04
o 9600 baud rate
o exposure mode 2
36
PRELIMINARY Spyder3 GigE User Manual
Notes: The FPN and PRNU coefficients are factory calibrated at a 5 kHz line rate and
0dB gain setting. While the factory setting baud rate is 9600, QuickCam sets the baud
rate to 57600 at startup.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
37
4
Optical, Mechanical, and
Electrical Considerations
The amount and wavelengths of light required to capture useful images depend on the
particular application. Factors include the nature, speed, and spectral characteristics of
objects being imaged, exposure times, light source characteristics, environmental and
acquisition system specifics, and more. DALSA’s Web site,
provides an introduction to this potentially complicated issue. See “Radiometry and
Photo Responsivity” and "Sensitivities in Photometric Units" in the CCD Technology
Primer found under the Application Support link.
It is often more important to consider exposure than illumination. The total amount of
energy (which is related to the total number of photons reaching the sensor) is more
important than the rate at which it arrives. For example, 5μJ/cm
exposing 5mW/cm
2
for 1ms just the same as exposing an intensity of 5W/cm2 for 1μs.
Light Sources
13Hhttp://vfm.dalsa.com/,
2
can be achieved by
Keep these guidelines in mind when setting up your light source:
•LED light sources are relatively inexpensive, provide a uniform field, and longer life
span compared to other light sources. However, they also require a camera with
excellent sensitivity, such as the Spyder3 GigE camera.
• Halogen light sources generally provide very little blue relative to infrared light (IR).
• Fiber-optic light distribution systems generally transmit very little blue relative to IR.
• Some light sources age; over their life span they produce less light. This aging may
not be uniform—a light source may produce progressively less light in some areas of
the spectrum but not others.
Filters
CCD cameras are extremely responsive to infrared (IR) wavelengths of light. To prevent
infrared from distorting the images you scan, use a “hot mirror” or IR cutoff filter that
transmits visible wavelengths but does not transmit wavelengths over 750nm. Examples
are the Schneider Optics™ B+W 489, which includes a mounting ring, the CORION™ LS750, which does not include a mounting ring, and the CORION™ HR-750 series hot
mirror.
Lens Modeling
Any lens surrounded by air can be modeled for camera purposes using three primary
points: the first and second principal points and the second focal point. The primary
points for a lens should be available from the lens data sheet or from the lens
manufacturer. Primed quantities denote characteristics of the image side of the lens. That
is, h is the object height and h
DALSA 03-032-10158-04
′
is the image height.
40
PRELIMINARY Spyder3 GigE User Manual
The focal point is the point at which the image of an infinitely distant object is brought to
focus. The effective focal length (f
second focal point. The back focal length (BFL) is the distance from the image side of the
lens surface to the second focal point. The object distance (OD) is the distance from the first
principal point to the object.
Figure 19: Primary Points in a Lens System
′
) is the distance from the second principal point to the
Magnification and Resolution
The magnification of a lens is the ratio of the image size to the object size:
h
′
m
=
h
By similar triangles, the magnification is alternatively given by:
f
=
OD
h
′
=
hfOD
μμm
mmmOD
′
′
45
m
These equations can be combined to give their most useful form:
Example: An acquisition system has a 512 x 512 element, 10m pixel pitch area scan
camera, a lens with an effective focal length of 45mm, and requires that 100μm in the
object space correspond to each pixel in the image sensor. Using the preceding equation,
the object distance must be 450mm (0.450m).
10
100
where m is the magnification, h’ is the image height
(pixel size) and h is the object height (desired object
resolution size).
This is the governing equation for many object and
image plane parameters.
ODmmm==(.)
4.3 Electrical Interface
The Spyder3 GigE cameras have been designed for EMC compliance. The test setup has
been verified to the following EMC standards:
4500 450
• CISPR-11:2004
• EN 55011:2003
• EN 61326:2002
To achieve EMC compliance, follow these specific guidelines:
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
• Ensure that all cable shields have 360° electrical connection to the connector.
• Fasten and secure all connectors.
The EMC compliance is achieved with the use of shielded CAT5e or CAT6 Ethernet
cables
41
Shielded cable suppliers
The following is a partial list of cable suppliers carrying cables that meet the compliance
requirements:
• http://www.systemax.com/divisions.htm
• http://www.cablestogo.com
• http://www.globalsources.com
DALSA 03-032-10158-04
42
PRELIMINARY Spyder3 GigE User Manual
CCD Handling Instructions
Chapter Contents
5
5.1 Electrostatic Discharge and the CCD Sensor___________________________________
5.2 Protecting Against Dust, Oil and Scratches ___________________________________ 254H43
5.3 Cleaning the Sensor Window ____________________________________________ 255H44
253H43
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
43
5.1 Electrostatic Discharge and the CCD Sensor
Cameras contain charge-coupled device (CCD) image sensors, which are metal oxide
semiconductor (MOS) devices and are susceptible to damage from electrostatic discharge
(ESD).
Electrostatic charge introduced to the sensor window surface can induce charge buildup
on the underside of the window that cannot be readily dissipated by the dry nitrogen gas
in the sensor package cavity. When charge buildup occurs, surface-gated photodiodes
(SGPDs) may exhibit higher image lag. Some SGPD sensors, such as the IL-P4 and the ITP4 used in the Spyder3 GigE cameras, may also exhibit a highly non-uniform response
when affected by charge buildup, with some pixels displaying a much higher response
when the sensor is exposed to uniform illumination. The charge normally dissipates
within 24 hours and the sensor returns to normal operation.
WARNING:
!
erroneous calibration, ensure that you perform flat-field correction only after a charge buildup
Charge buildup will affect the camera’s flat-field correction calibration. To avoid an
has dissipated over 24 hours.
5.2 Protecting Against Dust, Oil and Scratches
The CCD window is part of the optical path and should be handled like other optical
components, with extreme care.
Dust can obscure pixels, producing dark patches on the sensor response. Dust is most
visible when the illumination is collimated. The dark patches shift position as the angle of
illumination changes. Dust is normally not visible when the sensor is positioned at the
exit port of an integrating sphere, where the illumination is diffuse.
Dust can normally be removed by blowing the window surface using a compressed air
blower, unless the dust particles are being held by an electrostatic charge, in which case
either an ionized air blower or wet cleaning is necessary.
Oil is usually introduced during handling. Touching the surface of the window
barehanded will leave oily residues. Using rubber fingercots and rubber gloves can
prevent oil contamination. However, the friction between the rubber and the window
may produce electrostatic charge that may damage the sensor. To avoid ESD damage and
to avoid introducing oily residues, only hold the sensor from the edges of the ceramic
package and avoid touching the sensor pins and the window.
Scratches can be caused by improper handling, cleaning or storage of the sensor. Vacuum
picking tools should not come in contact with the window surface. CCDs should not be
stored in containers where they are not properly secured and can slide against the
container.
Scratches diffract incident illumination. When exposed to uniform illumination, a sensor
with a scratched window will normally have brighter pixels adjacent to darker pixels. The
location of these pixels changes with the angle of illumination.
DALSA 03-032-10158-04
44
PRELIMINARY Spyder3 GigE User Manual
5.3 Cleaning the Sensor Window
1. Use compressed air to blow off loose particles. This step alone is usually sufficient to
clean the sensor window.
2. If further cleaning is required, use a lens wiper moistened with alcohol or acetone.
3. We recommend using lint-free ESD-safe cloth wipers that do not contain particles that
can scratch the window. The Anticon Gold 9”x 9” wiper made by Milliken is both ESD
safe and suitable for class 100 environments. Another ESD acceptable wiper is the
TX4025 from Texwipe.
4. An alternative to ESD-safe cloth wipers is Transplex swabs that have desirable ESD
properties. There are several varieties available from Texwipe. Do not use regular
cotton swabs, since these can introduce charge to the window surface.
5. Wipe the window carefully and slowly.
6. When cleaning long linear sensors, it may be easier to wipe along the width (i.e. as
LED ....................................................................................................................................................................................257H47
Power Supply Voltages......................................................................................................................................................261H47
Camera Operation and Test Patterns................................................................................................................................263H48
Communications and Verify Parameters...........................................................................................................................264H48
Create an Error Report ......................................................................................................................................................268H48
6.2 Specific Solutions ____________________________________________________ 269H49
No Output or Erratic Behavior...........................................................................................................................................270H49
Line Dropout......................................................................................................................................................................271H49
Dark Patches......................................................................................................................................................................273H49
Horizontal Lines or Patterns in Image..............................................................................................................................274H50
256H47
6.3 Product Support _____________________________________________________ 275H51
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
47
6.1 Troubleshooting
The information in this chapter can help you solve problems that may occur during the
setup of your camera. Remember that the camera is part of the entire acquisition system.
You may have to troubleshoot any or all of the following:
• power supplies • cabling
• Ethernet hardware & software • host computer
• light sources • optics
• operating environment • encoder
LED
When the camera is first powered up, the LED will glow on the back of the camera. Refer
to section
276H2.4.1 for information on the LED.
Connections
The first step in troubleshooting is to verify that your camera has all the correct
connections. Refer to section
connectors.
277H2.4 Camera Connectors for more information on the proper
Cable Length/Type
Ensure that cable lengths are no longer than 100m.
Equipment Requirements
Ensure that you are using compatible equipment as outlined in section 278H2.2 Equipment
Recommendations.
Power Supply Voltages
Check for the presence of all voltages at the camera power connector. Verify that all
grounds are connected. Refer to the Diagnostics tab in QuickCam to verify your voltage
level.
EXSYNC
When the camera is received from the factory, it defaults (no external input required) to
exposure mode 7 (5000 Hz line rate, internal Sync to trigger readout). After a user has
saved settings, the camera powers up with the saved settings.
If you change to an exposure mode that requires an external sync, ensure that you
properly providing an external sync
DALSA 03-032-10158-04
48
PRELIMINARY Spyder3 GigE User Manual
Camera Operation and Test Patterns
To validate camera and Ethernet connections, have the camera send out a test pattern and
verify it is being properly received.
To send a test pattern:
Under Test Pattern on the Diagnostics tab in QuickCam:
1. Select a test pattern from the Camera dropdown box to confirm camera functionality
2. Select a test pattern from the Ethernet dropdown box to confirm your Ethernet
connection.
Communications and Verify Parameters
To quickly verify serial communications, check the Diagnostics tab in QuickCam.
Communication is working properly if the camera settings are properly displayed in the
Camera Settings section.
Verify Voltage
To check the camera’s input voltage, refer to the Temperature/Voltage section on the
Diagnostics tab in QuickCam.
Verify Temperature
To check the internal temperature of the camera, refer to the Temperature/Voltage
section on the Diagnostics tab in QuickCam. The camera will shut itself down if the
internal temperature exceeds 75°C.
QuickCam Message Window
Refer to the Message Window in QuickCam for a list of messages sent from the camera
and a list of all commands sent to the camera.
Create an Error Report
You can create an error report in order to review test patterns and xml log files sent from
the camera. This is useful for your own information as well as when you have to contact
Product Support.
To create an error report:
1. Click the
In the Save As dialog box:
2. Select the location on your computer to save the file.
3. In the File name text box, enter a name for the error report.
03-032-10158-04 DALSA
button on QuickCam toolbar.
Spyder3 GigE User’s Manual PRELIMINARY
4. Click Save.
To view the error report:
1. Select View→Error Report.
In the Open dialog box:
2. In the Look in list, click the drive or folder that contains the error report you want to
open.
3. In the folder list, locate and open the folder that contains the error report.
4. Click the error report, and then click Open.
49
6.2 Specific Solutions
No Output or Erratic Behavior
If your camera provides no output or behaves erratically, it may be picking up random
noise from long cables acting as antennae. Do not attach wires to unused pins. Verify that
the camera is not receiving spurious inputs (e.g. EXSYNC if camera is in exposure mode
that requires external signals).
Line Dropout, Bright Lines, or Incorrect Line Rate
Verify that the frequency of the internal sync is set correctly, or when the camera is set to
external sync that the EXSYNC signal supplied to the camera does not exceed the
camera’s useable Line rate under the current operating conditions.
Noisy Output
Check your power supply voltage outputs for noise. Noise present on these lines can
result in poor video quality.
Dark Patches
If dark patches appear in your output the optics path may have become contaminated.
Clean your lenses and sensor windows with extreme care.
1. Take standard ESD precautions.
2. Wear latex gloves or finger cots
3. Blow off dust using a filtered blow bottle or dry, filtered compressed air.
4. Fold a piece of optical lens cleaning tissue (approx. 3" x 5") to make a square pad that
5. is approximately one finger-width
6. Moisten the pad on one edge with 2-3 drops of clean solvent—either alcohol or
acetone. Do not saturate the entire pad with solvent.
7. Wipe across the length of the window in one direction with the moistened end first,
followed by the rest of the pad. The dry part of the pad should follow the moistened
DALSA 03-032-10158-04
50
PRELIMINARY Spyder3 GigE User Manual
end. The goal is to prevent solvent from evaporating from the window surface, as this
will end up leaving residue and streaking behind.
8. Repeat steps 2-4 using a clean tissue until the entire window has been cleaned.
9. Blow off any adhering fibers or particles using dry, filtered compressed air.
Horizontal Lines or Patterns in Image
A faulty or irregular encoder signal may result in horizontal lines due to exposure time
fluctuations; ensure that your exposure time is regular. If you have verified that your
exposure time is consistent and patterns of low frequency intensity variations still occur,
ensure that you are using a DC or high frequency light source.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
51
6.3 Product Support
If there is a problem with your camera, collect the following data about your application
and situation and call your DALSA representative.
Note: You may also want to photocopy this page to fax to DALSA.
Customer name
Organization name
Customer phone number
fax number
email
Complete Product Model
Number
(e.g. SG-10-01k40...)
Complete Serial Number
Your DALSA Agent or Dealer
Acquisition System hardware
(frame grabber, host computer,
light sources, etc.)
Power supply setting and
current draw
Data rate used
Control signals used in your
application, and their frequency
or state (if applicable)
Results when you run an error
report
Detailed description of problem
encountered.
In addition to your local DALSA representative, you may need to call DALSA Technical
Sales Support:
EXSYNC BIN
LVDS/TTL Other _______
please attach text received from the camera after initiating
an error report
please attach description with as much detail as appropriate
• The 14Hrc(reset camera) command will not reset the camera to
the power-on baud rate and will reboot using the last used
baud rate.
sbr 57600
Camera ASCII Command Help
For quick help, the camera can return all available commands and parameters through
the serial interface.
There are two different help screens available. One lists all of the available commands to
configure camera operation. The other help screen lists all of the commands available for
retrieving camera parameters (these are called “get” commands).
To view the help screen listing all of the camera configuration commands, use the command:
Syntax:
To view a help screen listing all of the “get” commands, use the command:
Syntax:
h
gh
Notes: For more information on the camera’s “get” commands, refer to
section
279HA4.7 Returning Camera Settings.
The camera configuration command help screen lists all commands available. Parameter
ranges displayed are the extreme ranges available. Depending on the current camera
operating conditions, you may not be able to obtain these values. If this occurs, values are
clipped and the camera returns a warning message.
Some commands may not be available in your current operating mode. The help screen
displays NA in this case.
DALSA 03-032-10158-04
54
PRELIMINARY Spyder3 GigE User Manual
Parameters
i = integer
f = floating point number
m = member of a set
s = string
t = tap
x = pixel column number
y = pixel row number
Example ASCII Command Help Screen (1k 2 Tap Model)
cao calibrate analog offset ti 0-2:1-255
ccf correction calibrate fpn
ccg calibrate camera gain iti 1-4:0-2:1024-4055
ccp correction calibrate prnu
cpa calibrate PRNU algorithm ii 1-3:1024-4055
css correction set sample m 256/512/1024/
dgc display gpio configuration
dpc display pixel coeffs xx 1-1024:1-1024
els end of line sequence i 0-1
epc enable pixel coefficients ii 0-1:0-1
gcm get camera model
gcp get camera parameters
gcs get camera serial
gcv get camera version
get get values s
gfc get fpn coeff x 1-1024
gh get help
gl get line xx 1-1024:1-1024
gla get line average xx 1-1024:1-1024
gpc get prnu coeff x 1-1024
gsf get signal frequency i 1-4
gsl get status led
h help
lpc load pixel coefficients i 0-4
rc reset camera
rfs restore factory settings
roi region of interest xyxy 1-1024:1-1:1-1024:1-1
rpc reset pixel coeffs
rus restore user settings
sag set analog gain tf 0-2:-10.0-+10.0
sao set analog offset ti 0-2:0-255
sbh set binning horizontal m 1/2/
sbr set baud rate m 9600/19200/57600/115200/
scd set ccd direction i 0-2
sdm set data mode m 2/3
sdo set digital offset ti 0-2:0-2048
sem set exposure mode m 2/3/4/5/6/7/8/
set set exposure time f 3-1000
sfc set fpn coeff xi 1-1024:0-2047
sgi set gpio input ii 0-3:0-2
sgo set gpio output ii 0-3:0-2
slt set lower threshold i 0-4095
spc set prnu coeff xi 1-1024:0-28671
ssb set subtract background ti 0-2:0-4095
ssf set sync frequency f 300-68000
ssg set system gain ti 0-2:0-65535
ssm set sensitivity mode i 0-2
sut set upper threshold i 0-4095
svm set video mode i 0-2
ugr update gain reference
vt verify temperature
vv verify voltage
wfc write FPN coefficients i 1-4
wpc write PRNU coefficients i 1-4
wus write user settings
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
55
A1 Sensor Output Format
A1.1 Sensitivity Mode
Purpose: Sets the camera’s sensitivity mode. When using high sensitivity
mode, the camera’s responsivity increases. High sensitivity mode
permits much greater scanning speeds in low light, or allows
reduced lighting levels.
Syntax:
ssm i
Syntax Elements:
Notes:
Example:
i
• To obtain the current sensitivity mode, use the command
• The scd (set ccd direction) command is not available in low
ssm 0
A1.2 CCD Shift Direction
Purpose: When in high sensitivity mode, selects the forward or reverse
CCD shift direction or external direction control. This
accommodates object direction change on a web and allows you
to mount the camera “upside down”.
Syntax:
Syntax Elements:
Notes:
Related Commands:
scd i
i
• To obtain the current value of the exposure mode, use the
• Available in high sensitivity mode only.
• Refer to 280HFigure 6: Object Movement and Camera Direction
0 = Forward CCD shift direction.
1 = Reverse CCD shift direction.
2 = Externally controlled direction control via Camera Link
control CC3 (CC3=1 forward, CC3=0 reverse).
command
Example using an Inverting Lens for an illustration of when
you should use forward or reverse shift direction.
17Hgcp or 18Hget scd.
Example:
DALSA 03-032-10158-04
scd 0
56
PRELIMINARY Spyder3 GigE User Manual
A1.3 Setting the Bit Depth and Data Mode
Purpose: Selects the camera’s bit depth, number of taps, and data rate.
Syntax:
sdm i
Syntax Elements:
Example:
i
Camera bit depth. Allowable values are:
For SG-10-01K40 and SG-10-02K40
0 = 8 bits, 1 tap, 40MHz data rate
1 = 12 bits, 1 tap, 40MHz data rate
For SG-10-01K80 and SG-10-02K80
2 =8 bits, 2 taps, 80Mhz data rate
3 =12 bits, 2 taps, 80MHz data rate
sdm 0
A1.4 Exposure Mode, Line Rate and Exposure Time
Overview
You have a choice of operating in one of seven modes. The camera’s line rate
(synchronization) can be generated internally through the software command
externally with an EXSYNC signal, depending on your mode of operation. To select how
you want the camera’s line rate to be generated:
1. You must first set the camera mode using the 20Hsem command.
ssf or set
2. Next, if using mode 2, 7 or 8 use the commands 21Hssf and/or 22Hset to set the line rate and
exposure time.
Setting the Exposure Mode
Purpose: Sets the camera’s exposure mode allowing you to control your
sync, exposure time, and line rate generation.
Syntax:
Syntax Elements:
Notes:
Related Commands:
Example:
sem i
i
Exposure mode to use. Factory setting is 7.
• Refer to 281HTable 11: Spyder3 GigE Exposure Modes for a quick
list of available modes or to the following sections for a more
detailed explanation.
• To obtain the current value of the exposure mode, use the
command
25Hssf, 26Hset
sem 3
23Hgcp or 24Hget sem.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
57
Table 11: Spyder3 GigE Exposure Modes
Programmable Line Rate Programmable Exposure Time
Mode SYNC PRIN Description
2
3
4
5
6
7
8
Internal Internal Yes Yes Internal frame rate and exposure time.
Exposure mode enabled (ECE).
External Internal No No Maximum exposure time. Exposure
control disabled (ECD).
External Internal No No Smart EXSYNC. ECE.
External External No No External sync, external pixel reset.
ECE.
External Internal No Yes Fixed integration time. ECE.
Internal Internal Yes No Internal line rate, maximum exposure
time. ECD.
Internal Internal No Yes Maximum line rate for exposure time.
ECE.
Note: When setting the camera to external signal modes, EXSYNC and/or PRIN must be supplied.
Exposure Modes in Detail
Mode 2: Internally Programmable Line Rate and Exposure Time (Factory Setting)
Mode 2 operates at a maximum line rate and exposure time.
•When setting the line rate (using the
if necessary, to accommodate the new line rate. The exposure time will always be set
to the maximum time (line period – line transfer time – pixel reset time) for that line
rate when a new line rate requiring reduced exposure time is entered.
27Hssf command), exposure time will be reduced,
• When setting the exposure time (using the
28Hset command), line time will be
increased, if necessary, to accommodate the exposure time. Under this condition, the
line time will equal the exposure time + line transfer time.
Example 1: Exposure Time less than Line Period
Programmable Period (
Readout
CRExposure Time
Line Period
Programmable Period (ssf command)
set command)
Readout
CRExposure Time
Line Period
Programmable Period
CR=Charge Reset
Programmable Period
DALSA 03-032-10158-04
58
PRELIMINARY Spyder3 GigE User Manual
Mode 3: External Trigger with Maximum Exposure
Line rate is set by the period of the external trigger pulses. The falling edge of the external
trigger marks the beginning of the exposure.
Example 2: Line Rate is set by External Trigger Pulses.
EXSYNC
Mode 4: Smart EXSYNC, External Line Rate and Exposure Time
In this mode, EXSYNC sets both the line period and the exposure time. The rising edge of
EXSYNC marks the beginning of the exposure and the falling edge initiates readout.
Example 3: Trigger Period is Repetitive and Greater than Read Out Time.
EXSYNC
CR=Charge Reset
Readout
Line Period
Line Period
Exposure Time
Falling Edge
Ignored During
Readou
Readout
EXSYNC Falling
Edge ignored
during readout
Readout
Exposure Time
Falling Edge
Ignored During
Readout
Line Period
Line Period
Readout
EXSYNC Falling
Edge ignored
during readout
Mode 5: External Line Rate (EXSYNC) and External Pixel Reset (PRIN)
In this mode, the falling edge of EXSYNC sets the line period and the rising edge of PRIN
sets the start of exposure time.
Figure 20: EXSYNC controls Line Period and PRIN controls Exposure Time
Line Period
Readou
EXSYNC
PRIN
cr=Charge Reset
03-032-10158-04 DALSA
Line Period
Line Period
Readou
Spyder3 GigE User’s Manual PRELIMINARY
d
59
Mode 6: External Line Rate and Internally Programmable Exposure Time
Figure 21: EXSYNC controls Line Period with Internally controlled Exposure Time
EXSYNC
CR=Charge Reset
Mode 7: Internally Programmable Line Rate, Maximum Exposure Time
In this mode, the line rate is set internally with a maximum exposure time.
Figure 22: Mode 7 Camera Timing
Internal Sync set
with Command
Line Period
Programmable Period
set
Using Command
ssf
Readou
Line Period
Exposure Time
Readout
EXSYNC Falling
Edge ignored
during readout
Line Period
Programmable Period
set
Using command
Line Period
Exposure Time
Readout
EXSYNC Falling
Edge ignored
during readout
Readou
Mode 8: Maximum Line Rate, Programmable Exposure Time
In this mode, the exposure time is set internally with a maximum line rate.
Figure 23: Mode 8 Timing
Programmable Perio
Readout
Frame Period
CR=Charge Reset
Exposure Time
CR
Readout
Frame Period
Programmable Period
CR Exposure Time
DALSA 03-032-10158-04
60
PRELIMINARY Spyder3 GigE User Manual
Setting the Line Rate
i
Applies to Modes 2 and
7
i
Applies to Modes 2 and
8
Purpose: Sets the camera’s line rate in Hz. Camera must be operating in
exposure mode 2 or 7.
Syntax:
Syntax Elements:
Notes:
Related Commands:
Example:
ssf f
i
Desired line rate in Hz. Allowable values are:
1k 1 tap:
1k 2 tap:
2k 1 tap:
2k 2 tap:
• To read the current line frequency, use the command 29Hgcp or
30Hget ssf.
• If you enter an invalid line rate frequency, an error message is
Purpose: Sets the camera’s exposure time is µs. Camera must be operating in
mode 2, 6, or 8.
Syntax:
set f
Syntax Elements:
Notes:
Related Commands:
Example:
i
Desired exposure time in µs. Allowable range is 3 to 3300µs.*
• To read the current line frequency, use the command 33Hgcp or
34Hget set.
• If you enter an invalid line rate frequency, an error message is
returned.
• *The exposure time range is based on the current line rate.
• To determine the maximum exposure time allowed for the
current line rate, use the command
35Hsem, 36Hssf
set 400.5
get ger.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
61
A1.5 Configuring the GPIO Connector
Overview
The following commands provide a connection between the GPIO controller and the
Spyder3 GigE camera’s internal functions.
Setting the GPIO Output Signal
Purpose: Sets the signal type for the selected output.
Syntax:
sgo i i
Syntax Elements:
Notes:
Related Commands:
Example:
i
Output to set.
0 = Output 0, pin 11 (TTL) or 11 and 12 (LVDS)
1 = Output 1, pin 13 (TTL) or 13 and 14 (LVDS)
2 = Output 2, pin 15 (TTL) or 15 and 10 (LVDS)
3 = Output 3, pin 9 (TTL)
i
Signal type.
0 = High impedance (high z)
1 = TTL
2 = LVDS
•To read the current configuration, use the command 37Hdgc or 38Hget
sgo i
• If you enter an invalid configuration, an error message is returned.
39Hsgi
sgo 0 1
where i is the output signal.
DALSA 03-032-10158-04
62
PRELIMINARY Spyder3 GigE User Manual
Setting the GPIO Input Signal
Purpose: Sets the signal type for the selected input.
Syntax:
sgi i i
Syntax Elements:
Notes:
Related Commands:
Example:
i
Input to set.
0 = Input 0, Pin 1 (TTL) or 1 and 2 (LVDS)
1 = Input 1, Pin 3 (TTL) or 3 and 4 (LVDS)
2 = Input 2, Pin 6 (TTL) or 6 and 7 (LVDS)
3 = Input 3, Pin 8 (TTL)
i
Signal type.
0 = Disabled
1 = TTL
2 = LVDS
•To read the current configuration, use the command 40Hdgc or
41Hget sgi i where i is the input signal.
• If you enter an invalid configuration, an error message is
returned.
42Hsgo
sgi 3 1
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
63
A2 Data Processing
A2.1 Setting a Region of Interest (ROI)
Purpose: Sets the pixel range used to collect the end-of-line statistics and
Syntax:
sets the region of pixels used in the
48Hccp commands.
In most applications, the field of view exceeds the required object
size and these extraneous areas should be ignored. It is
recommended that you set the region of interest a few pixels inside
the actual useable image.
roi x1 y1 x2 y2
43H ccg, 44Hcao, 45Hgl, 46Hgla,47H ccf, and
Syntax Elements:
x1
Pixel start number. Must be less than the pixel end number in a
range from
y1
1 to sensor resolution.
Column start number. Since the Spyder3 GigE is a line scan
camera, this value must be
x2
1.
Pixel end number. Must be greater than the pixel start number
in a range from
y2
1 to sensor resolution.
Column end number. Since the Spyder3 GigE is a line scan
Notes:
Related Commands
Example:
camera, this value must be
• To return the current region of interest, use the commands
The following diagram shows a simplified block diagram of the camera’s analog and
digital processing chain. The analog processing chain begins with an analog gain
adjustment, followed by an analog offset adjustment. These adjustments are applied to
the video analog signal prior to its digitization by an A/D converter.
The digital processing chain contains the FPN correction, the PRNU correction, the
background subtract, and the digital gain and offset. All of these elements are user
programmable.
Figure 24: Signal Processing Chain
analogvideo
Analog Processing
analog
gain
sag,ccg
sao,cao
analog
offset
FPN
coefficients
ccf
Digital Processing
PRNU
coefficients
ccp,cpassb
digital
offset
sdo
background
subtract
digitalsystem
gain
ssg
Analog Processing
Optimizing offset performance and gain in the analog domain allows you to achieve a
better signal-to-noise ratio and dynamic range than you would achieve by trying to
optimize the offset in the digital domain. As a result, perform all analog adjustments
prior to any digital adjustments.
1. Analog gain (
signal strength before the A/D conversion. It is used to take advantage of the full
dynamic range of the A/D converter. For example, in a low light situation the
brightest part of the image may be consistently coming in at only 50% of the DN. An
analog gain of 6 dB (2x) will ensure full use of the dynamic range of the A/D
converter. Of course the noise is also increased.
59Hsag or 60Hccg command) is multiplied by the analog signal to increase the
digitalvideo
2. The analog offset (
introduced into the video path to ensure that the A/D is functioning properly. The
analog offset should be set so that it is at least 3 times the rms noise value at the
current gain.
Digital Processing
03-032-10158-04 DALSA
61Hsao or 62Hcao command) or black level is an “artificial” offset
Spyder3 GigE User’s Manual PRELIMINARY
65
To optimize camera performance, digital signal processing should be completed after any
analog adjustments.
1. Fixed pattern noise (FPN) calibration (calculated using the
63Hccf command) is used to
subtract away individual pixel dark current.
2. The digital offset (
64Hsdo command) enables the subtraction of the “artificial” A/D
offset (the analog offset) so that application of the PRNU coefficient doesn’t result in
artifacts at low light levels due to the offset value. You may want to set the
65Hsdo value
if you are not using FPN correction but want to perform PRNU correction.
3. Photo-Response Non-Uniformity (PRNU) coefficients (calculated using the
67Hcpa commands) are used to correct the difference in responsivity of individual pixels
66Hccp or
(i.e. given the same amount of light different pixels will charge up at different rates)
and the change in light intensity across the image either because of the light source or
due to optical aberrations (e.g. there may be more light in the center of the image).
PRNU coefficients are multipliers and are defined to be of a value greater than or
equal to 1. This ensures that all pixels will saturate together.
4. Background subtract (
68Hssb command) and system (digital) gain (69Hssg command) are
used to increase image contrast after FPN and PRNU calibration. It is useful for
systems that process 8-bit data but want to take advantage of the camera’s 12 bit
digital processing chain. For example, if you find that your image is consistently
between 128 and 255DN(8 bit), you can subtract off 128 (
multiply by 2 (
ssg 0 8192) to get an output range from 0 to 255.
ssb 2048) and then
Analog Signal Processing: Setting Analog Gain and Offset
All analog signal processing chain commands should be performed prior to FPN and
PRNU calibration and prior to digital signal processing commands.
Setting Analog Gain
Purpose: Sets the camera’s analog gain value. Analog gain is multiplied by
the analog signal to increase the signal strength before the A/D
conversion. It is used to take advantage of the full dynamic range
of the A/D converter.
Syntax:
Syntax Elements:
sag t f
t
Tap selection. Use 0 for all taps or 1 to 2 for individual tap
selection.
Gain value in a range from
Notes:
Example:
Related Commands:
f
–10 to +10dB.
• To return the current analog gain setting, use the command
70Hgcp or 71Hget sag.
sag 0 5.2
72Hccg
Calibrating Camera Gain
DALSA 03-032-10158-04
66
PRELIMINARY Spyder3 GigE User Manual
Purpose: Instead of manually setting the analog gain to a specific value, the
camera can determine appropriate gain values. This command
calculates and sets the analog gain according to the algorithm
determined by the first parameter.
Syntax:
ccg i t i
Syntax Elements:
i
Calibration algorithm to use.
1 = This algorithm adjusts analog gain so that 8% to 13% of
tap region of interest (ROI) pixels are above the specified
target value.
2 = This algorithm adjusts analog gain so that the average
pixel value in tap’s ROI is equal to the specified target
value.
3 = This algorithm adjusts digital gain so that the average
pixel value in tap’s ROI is equal to the specified target.
4 = This algorithm adjusts the analog gain so that the peak
tap ROI pixels are adjusted to the specified target.
t
Tap value. Use 0 for all taps or 1 to 2 for individual tap
selection if you are using the two tap model.
i
Calculation target value in a range from 1024 to 4055DN
(12 bit LSB).
Notes:
• This function requires constant light input while executing.
• If very few tap pixels are within the ROI, gain calculation
may not be optimal.
• When all taps are selected, taps outside of the ROI are set to
the average gain of the taps that are within the ROI.
• Perform analog gain algorithms before performing FPN and
PRNU calibration.
• All digital settings affect the analog gain calibration. If you
do not want the digital processing to have any effect on the
camera gain calibration, then turn off all digital settings by
Example:
sending the commands:
76Hssg 0 4096
ccg 2 0 3040
73Hsdo 0 0, 74Hepc 0 0, 75Hssb 0 0, and
Related Commands:
Setting Analog Offset
03-032-10158-04 DALSA
77Hsag, 78Hssg
Spyder3 GigE User’s Manual PRELIMINARY
67
Purpose: Sets the analog offset. The analog offset should be set so that it is
at least 3 times the rms noise value at the current gain. DALSA
configures the analog offset for the noise at the maximum
specified gain and as a result you should not need to adjust the
analog offset.
Syntax:
sao t i
Syntax Elements:
t
Tap selection. Use 0 for all taps or 1 to 2 for individual tap
selection if you are using the two tap model.
Offset value in a range from
Notes:
Example:
Related Commands:
i
0 to 255DN (12 bit LSB).
• To return the current analog offset value, use the command
79Hgcp or 80Hget sao.
sao 2 35
81Hcao
Calibrating Analog Offset
Purpose: Instead of manually setting the analog offset to a specific value,
the camera can determine appropriate offset values. This
command calculates and averages each tap’s pixels within the
region of interest and sets the offset to achieve the specified
average target value.
Syntax:
Syntax Elements:
Notes:
Example:
cao t i
t
Tap selection. Use 0 for all taps or 1 to 2 for individual tap
selection if you are using the two tap model.
i
Average target value in a range from 1 to 255DN (12 bit
Note: Due to the sensor dark current, the range of
LSB).
operation of the
dependent. Lower
cao command is temperature and line rate
cao values cannot be achieved when
using lower line rates and higher temperatures. The camera
sends a warning message when this occurs.
• Perform analog offset calibration before performing FPN and
PRNU coefficients.
• To return the current analog offset values, use the command
82Hgcp or 83Hget cao.
cao 1 50
Related Commands:
To update the analog gain reference:
Purpose: Sets the current analog gain setting to be the 0dB point. This is
Syntax:
DALSA 03-032-10158-04
84Hsao
useful after tap gain matching allowing you to change the gain on
all taps by the same amount.
ugr
68
PRELIMINARY Spyder3 GigE User Manual
Calibrating the Camera to Remove Non-Uniformity (Flat
Field Correction)
Flat Field Correction Overview
Note: The QuickCam software that ships with the Spyder3 GigE camera has a flat field correction
wizard. For easy flat field correction, use the wizard located on the Calibration tab.
This camera has the ability to calculate correction coefficients in order to remove nonuniformity in the image. This video correction operates on a pixel-by-pixel basis and
implements a two point correction for each pixel. This correction can reduce or eliminate
image distortion caused by the following factors:
• Fixed Pattern Noise (FPN)
• Photo Response Non Uniformity (PRNU)
• Lens and light source non-uniformity
Correction is implemented such that for each pixel:
V
output
Note: If your
illumination or white
reference does not
extend the full field of
view of the camera,
the camera will send a
warning.
=[(V
- FPN( pixel ) - digital offset) * PRNU(pixel) – Background Subtract] x System Gain
input
where V
V
PRNU( pixel) = PRNU correction coefficient for this pixel
FPN( pixel ) = FPN correction coefficient for this pixel
Background Subtract = background subtract value
System Gain = digital gain value
The algorithm is performed in two steps. The fixed offset (FPN) is determined first by
performing a calibration without any light. This calibration determines exactly how much
offset to subtract per pixel in order to obtain flat output when the CCD is not exposed.
The white light calibration is performed next to determine the multiplication factors
required to bring each pixel to the required value (target) for flat, white output. Video
output is set slightly above the brightest pixel (depending on offset subtracted).
= digital output pixel value
output
= digital input pixel value from the CCD
input
Flat Field Correction Restrictions
It is important to do the FPN correction first. Results of the FPN correction are used in the
PRNU procedure. We recommend that you repeat the correction when a temperature
change greater than 10°C occurs or if you change the analog gain, integration time, or line
rate.
PRNU correction requires a clean, white reference. The quality of this reference is
important for proper calibration. White paper is often not sufficient because the grain in
the white paper will distort the correction. White plastic or white ceramic will lead to
better balancing.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
For best results, ensure that:
• 50 or 60 Hz ambient light flicker is sufficiently low not to affect camera performance
and calibration results.
• For best results, the analog gain should be adjusted for the expected operating
conditions and the ratio of the brightest to darkest pixel in a tap should be less than 3
to 1 where:
69
Brightest Pixel (per tap)
3>
Darkest Pixel (per tap)
•The camera is capable of operating under a range of 8 to 1, but will clip values larger
than this ratio.
• The brightest pixel should be slightly below the target output.
• When 6.25% of pixels from a single row within the region of interest are clipped, flat
field correction results may be inaccurate.
•Correction results are valid only for the current analog gain and offset values. If you
change these values, it is recommended that you recalculate your coefficients.
DALSA 03-032-10158-04
70
PRELIMINARY Spyder3 GigE User Manual
Set up the camera operating environment
(i.e. line rate, exposure, offset, gain, etc.)
Set the calibration sample size using
the command css. It is recommended that
you use the default setting.
Set the region of interest to include all
of the image’s pixels of importance using
the command roi x1 y1 x2 y2. You can use
Note: All commands listed above are described in detail in the following sections in the order
that they should be performed.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
i
71
Digital Signal Processing
To optimize camera performance, digital signal processing should be completed after any
analog adjustments.
FPN Correction
Performing FPN Correction
Syntax: Performs FPN correction and eliminates FPN noise by subtracting
away individual pixel dark current.
Syntax:
ccf
Notes:
•Perform all analog and digital adjustments before
performing FPN correction.
• Perform FPN correction before PRNU correction.
• Refer to
(Flat Field Correction)on page
282HCalibrating the Camera to Remove Non-Uniformity
283H68 for a procedural overview
on performing flat field correction.
•To save FPN coefficients after calibration, use the
command. Refer to section
284HA3.1 Saving and Restoring
PRNU and FPN Coefficients for details.
•The QuickCam software that ships with the Spyder3 GigE
camera has a flat field correction wizard. For easy flat field
correction, use the wizard located on the Calibration tab.
•
Related Commands:
Example:
86Hccp, 87Hwfc
ccf
Setting a Pixel’s FPN Coefficient
Purpose: Sets an individual pixel’s FPN coefficient.
Syntax
Syntax Elements:
sfc x i
x
85Hwfc
Example:
DALSA 03-032-10158-04
The pixel number from 1 to sensor pixel count.
Coefficient value in a range from 0 to 2047 (12 bit LSB).
sfc 10 50
72
PRELIMINARY Spyder3 GigE User Manual
Setting Digital Offset
Purpose: Sets the digital offset. Digital offset is set to zero when you
Syntax:
perform FPN correction (
perform FPN correction, you can partially remove FPN by
adjusting the digital offset.
sdo t i
88Hccf command). If you are unable to
Syntax Elements:
t
Tap selection. Allowable range is 1 to 2 depending on
camera model, or
i
Subtracted offset value in a range from
FPN Coefficient=
Notes:
• When subtracting a digital value from the digital video
0 for all taps.
0 to 2048 where
i (12 bit LSB Justified)
signal, the output can no longer reach its maximum unless
Related Commands:
Example:
you apply digital gain using the
previous section for details on the
91Hssg
sdo 0 100
89Hssg command. See the
90Hssg command.
PRNU Correction
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
73
Performing PRNU to a user entered value
Purpose: Performs PRNU calibration to user entered value and eliminates the
difference in responsivity between the most and least sensitive pixel
creating a uniform response to light. Using this command, you must
provide a calibration target.
Syntax:
Executing these algorithms causes the
(no background subtraction) and the
digital gain). The pixel coefficients are disabled (
the algorithm execution but returned to the state they were prior to
command execution.
cpa i i
ssb command to be set to 0
ssg command to 4096 (unity
epc 0 0) during
Syntax Elements:
i
PRNU calibration algorithm to use:
1 = This algorithm first adjusts each tap’s analog gain so that 8-
13% of pixels within a tap are above the value specified in the
target value parameter. PRNU calibration then occurs using the
peak pixel in the region of interest.
This algorithm is recommended for use only when FPN is
negligible and FPN coefficients are set to zero. Since this
algorithm adjusts the analog gain, it also affects FPN. If FPN is
calibrated prior to running this algorithm, FPN will be
observable in dark conditions and an incorrect FPN value will be
used during PRNU calibration resulting in incorrect PRNU
coefficients.
2 = Calculates the PRNU coefficients using the entered target
value as shown below:
Target
PRNUCo efficient=
The calculation is performed for all sensor pixels but warnings
are only applied to pixels in the region of interest. This
algorithm is useful for achieving uniform output across multiple
cameras. Is is important that the target value (set with the next
parameter) is set to be at least equal to the highest pixel across
all cameras so that all pixels can reach the highest pixel value
during calibration.
3 = This algorithm includes an analog gain adjustment prior to
PRNU calibration. Analog gain is first adjusted so that the peak
pixel value in tap’s ROI is within 97 to 99% of the specified
target value. It then calculates the PRNU coefficients using the
target value as shown below:
i
(AVGPixelValue)‐(FPN+value)
i
sdo
i
Target
PRNUCo efficient=
The calculation is performed for all sensor pixels but warnings
are only applied to pixels in the region of interest. This
algorithm is useful for achieving uniform output across multiple
cameras.
This algorithm is useful for achieving uniform output across
multiple cameras by first adjusting analog gain and then
performing PRNU calibration. This algorithm is recommended
for use only when FPN is negligible and FPN coefficients are set
to zero. Since this algorithm adjusts the analog gain, it also
affects FPN. If FPN is calibrated prior to running this algorithm,
i
(AVGPixelValue)‐(FPN+value)
i
sdo
i
DALSA 03-032-10158-04
74
PRELIMINARY Spyder3 GigE User Manual
FPN will be observable in dark conditions and an incorrect FPN
value will be used during PRNU calibration resulting in
incorrect PRNU coefficients.
This algorithm is more robust and repeatable than algorithm 1
because it uses an average pixel value rather than a number
above target. However, this algorithm is slower.
i
Peak target value in a range from 1024 to 4055DN. The target
value must be greater than the current peak output value.
Notes:
• Perform all analog adjustments before calibrating PRNU.
• This command performs the same function as the
cpp
command but forces you to enter a target value.
•Calibrate FPN before calibrating PRNU. If you are not
performing FPN calibration then issue the
coefficients) command and set the
sdo (set digital offset)
rpc (reset pixel
value so that the output is near zero under dark.
•The QuickCam software that ships with the Spyder3 GigE
camera has a flat field correction wizard. For easy flat field
correction, use the wizard located on the Calibration tab.
Example:
cpa 1 600
Performing PRNU Correction to a Camera Calculated Value
Purpose: Performs PRNU correction and eliminates the difference in
responsivity between the most and least sensitive pixel creating a
uniform response to light.
Syntax
Notes:
Related Commands:
ccp
• Perform all analog adjustments before calculating PRNU.
• Perform FPN correction before PRNU correction.
• If FPN cannot be calibrated, use the
92Hrpc command to reset
all coefficients to zero, and save them to memory with the
93Hwfc command. You can then adjust the digital offset (94Hsdo
command) to remove some of the FPN.
•Ensure camera is operating at its expected analog gain,
integration time, and temperature.
•Refer to
Uniformity (Flat Field Correction)on page
285HCalibrating the Camera to Remove Non-
286H68 for a
procedural overview on performing flat field correction.
•To save FPN coefficients after calibration, use the
command. Refer to section
287HA3.1 Saving and Restoring
PRNU and FPN Coefficients for details.
•The QuickCam software that ships with the Spyder3 GigE
camera has a flat field correction wizard. For easy flat
field correction, use the wizard located on the Calibration
tab.
96Hccf, 97Hcpa
95Hwpc
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
75
• Perform all analog adjustments before calibrating PRNU.
• This command performs the same function as the
command but forces you to enter a target value.
•Calibrate FPN before calibrating PRNU. If you are not
performing FPN calibration then issue the
coefficients) command and set the
value so that the output is near zero under dark.
•Note: Refer to
288HCalibrating the Camera to Remove Non-
Uniformity (Flat Field Correction)on page
overview on performing flat field correction.
Setting a Pixel’s PRNU Coefficient
Purpose: Sets an individual pixel’s PRNU coefficient.
Syntax:
Syntax Elements:
Example:
spc i i
i
The pixel number from 1 to sensor pixel count.
i
Coefficient value in a range from 0 to 28671 where:
i
PRNUcoefficient
1+
4096
spc 1024 10000
cpp
rpc (reset pixel
sdo (set digital offset)
289H68 for a procedural
Subtracting Background
Purpose: Use the background subtract command after performing flat field
correction if you want to improve your image in a low contrast
scene. It is useful for systems that process 8 bit data but want to
take advantage of the camera’s 12 bit digital processing chain.
You should try to make your darkest pixel in the scene equal to
zero.
Syntax:
Syntax Elements:
Tap selection. Allowable range is 1 to 2 depending on
Subtracted value in a range in DN from
Notes:
Related Commands:
Example
ssb t i
t
camera model, or
i
0 for all taps.
0 to 4095.
• When subtracting a digital value from the digital video signal
the output can no longer reach its maximum. Use the
98Hssg
command to correct for this where:
ssgval ue =
maxoutputvalue
maxoutputvalue ‐ssbvalue
See the following section for details on the
100Hssg
99Hssg command.
ssb 0 25
DALSA 03-032-10158-04
76
i
PRELIMINARY Spyder3 GigE User Manual
Setting Digital System Gain
Purpose: Improves signal output swing after a background subtract. When
subtracting a digital value from the digital video signal, using the
101Hssb command, the output can no longer reach its maximum. Use
this command to correct for this where:
maxoutputvalue
maxoutputvalue ‐ssbvalue
Syntax:
ssgval ue =
ssg t i
Syntax Elements:
t
Tap selection. Allowable range is 1 to 2, or 0 for all taps.
Gain setting. The gain ranges are 0 to 65535. The digital
video values are multiplied by this value where:
i
4096
102Hssb command.
Related Commands:
Example:
DigitalGain=
Use this command in conjunction with the
103Hssb
ssg 1 15
Returning Calibration Results and Errors
Returning All Pixel Coefficients
Purpose: Returns all the current pixel coefficients in the order FPN, PRNU,
Syntax:
Syntax Elements:
FPN, PRNU… for the range specified by
also returns the pixel number with every fifth coefficient.
dpc x1 x2
x1
x1 and x2. The camera
Notes:
Example:
03-032-10158-04 DALSA
Start pixel to display in a range from 1 to sensor pixel
count
.
x2
End pixel to display in a range from x1 to sensor pixel
count
.
This function returns all the current pixel coefficients in the
order FPN, PRNU, FPN, PRNU… The camera also returns the
pixel number with each coefficient.
dpc 10 20
Spyder3 GigE User’s Manual PRELIMINARY
77
Returning FPN Coefficients
Purpose: Returns a pixel’s FPN coefficient value in DN (12 bit LSB)
Syntax:
gfc i
Syntax Elements:
Example:
i
The pixel number to read in a range from 1 to sensor
pixel count
gfc 10
.
Returning PRNU Coefficients
Purpose: Returns a pixel’s PRNU coefficient value in DN (12 bit LSB)
Syntax:
Syntax Elements:
Example:
gpc i
i
The pixel number to read in a range from 1 to sensor
pixel count
gpc 10
.
Enabling and Disabling Pixel Coefficients
Purpose: Enables and disables FPN and PRNU coefficients.
Purpose: Produces an end-of-line sequence that provides basic calculations
including "line counter", "line sum", "pixels above threshold",
"pixels below threshold", and "derivative line sum" within the
region of interest. These basic calculations are used to calibrate
Syntax:
analog offset (
To further aid in debugging and cable/data path integrity, the
first three pixels after Line Valid are "aa", "55", "aa". Refer to the
following table. These statistics refer only to pixels within the
region of interest.
els i
104Hcao) and calibrate analog gain (105Hccg).
Syntax Elements:
Notes:
Example:
i
Disable end-of-line sequence
0
Enable end-of-line sequence
1
• LVAL is not high during the end-of-line statistics.
els 1
Table 12: End-of-Line Sequence Description
Location Value Description
1 A’s
2 5’s
3 A’s
4 4 bit counter LSB justified
5 Line sum (7…0)
6 Line sum (15…8)
7 Line sum (23…16)
8 Line sum (31…24)
By ensuring these values consistently
toggle between "aa" and "55", you can
verify cabling (i.e. no stuck bits)
Counter increments by 1. Use this value to
verify that every line is output
Use these values to help calculate line
average and gain
9 Pixels above threshold (7…0)
10 Pixels above threshold
11 Pixels below threshold (7…0)
12 Pixels below threshold (15…8)
13 Differential line sum (7..0)
14 Differential line sum (15…8)
15 Differential line sum (23…16)
16 Differential line sum (31…24)
03-032-10158-04 DALSA
(15…8)
Monitor these values (either above or
below threshold) and adjust camera
digital gain and background subtract to
maximize scene contrast. This provides a
basis for automatic gain control (AGC)
Use these values to focus the camera.
Generally, the greater the sum the greater
the image contrast and better the focus.
Spyder3 GigE User’s Manual PRELIMINARY
79
Setting Thresholds
Setting an Upper Threshold
Purpose: Sets the upper threshold limit to report in the end-of-line
sequence.
Syntax:
sut i
Syntax Elements:
Upper threshold limit in range from 0 to 4095.
Notes:
Related Commands:
Example:
i
• LVAL is not high during the end-of-line statistics.
• 106Hels, 107Hslt
sut 1024
Setting a Lower Threshold
Purpose: Sets the lower threshold limit to report in the end-of-line
sequence.
Syntax:
Syntax Elements:
Upper threshold limit in range from 0 to 4095.
Notes:
Related Commands:
Example:
slt i
i
• LVAL is not high during the end-of-line statistics.
• 108Hels, 109Hsut
slt 1024
A3 Saving and Restoring Settings
For each camera operating mode (high sensitivity forward direction, high sensitivity
reverse direction, low sensitivity, or tall pixel), the camera has distinct factory settings,
current settings, and user settings. In addition, there is one set of factory pre-calibrated
pixel coefficients and up to four sets of user created pixel coefficients for each operating
mode.
DALSA 03-032-10158-04
80
PRELIMINARY Spyder3 GigE User Manual
Figure 25: Saving and Restoring Overview
For each camera operating mode:
Low Sensitivity
High Sensitivity Forwar d
High Sensitivity Reverse
Tall Pixel
rus lpc,
Current
Session
User
Settings
wus wpc,wfc,
4 sets of user
pixel coefficients
Factory
Settings
1 set of factory
pixel coefficients
Factory Settings
On first initialization, the camera operates using the factory settings. You can restore the
original factory settings at any time using the command
rfs.
User Settings
You can save or restore your user settings to non-volatile memory using the following
commands. Pixel coefficients are stored separately from other data.
•To save all current user settings to EEPROM, use the command
will automatically restore the saved user settings when powered up.
settings are being written to nonvolatile memory, do not power down camera or
camera memory may be corrupted.
• To restore the last saved user settings, use the command
• To save the current pixel coefficients, use the command
wpc and wfc.
• To restore the last saved pixel coefficients, use the command
wus. The camera
Note: While
rus.
lpc.
Current Session Settings
These are the current operating settings of your camera. To save these settings to nonvolatile memory, use the command
03-032-10158-04 DALSA
wus.
Spyder3 GigE User’s Manual PRELIMINARY
81
A3.1 Saving and Restoring PRNU and FPN Coefficients
Saving the Current PRNU Coefficients
Purpose:
Syntax:
Saves the current PRNU coefficients. You can save up to four sets
of pixel coefficients
wpc i
Syntax Elements:
PRNU coefficients set to save.
Example:
i
1 = Coefficient set one
2 = Coefficient set two
3 = Coefficient set three
4 = Coefficient set four
wpc 2
Saving the Current FPN Coefficients
Purpose: Saves the current FPN coefficients. You can save up to four sets of
pixel coefficients
Syntax:
Syntax Elements:
FPN coefficients set to save.
Example:
wfc i
i
1 = Coefficient set one
2 = Coefficient set two
3 = Coefficient set three
4 = Coefficient set four
wfc 2
Loading a Saved Set of Coefficients
Purpose: Loads a saved set of pixel coefficients. A factory calibrated set of
coefficients is available.
Syntax:
lpc i
Syntax Elements:
FPN coefficients set to save.
Example:
Resetting the Current Pixel Coefficients
Purpose: Resets the current pixel coefficients to zero. This command does
Syntax:
Notes: The digital offset is not reset.
DALSA 03-032-10158-04
i
0 = Factory calibrated pixel coefficients.
1 = Coefficient set one
2 = Coefficient set two
3 = Coefficient set three
4 = Coefficient set four
lpc 0
not reset saved coefficients.
rpc
82
PRELIMINARY Spyder3 GigE User Manual
A3.2 Rebooting the Camera
The command rc reboots the camera. The camera starts up with the last saved settings
and the baud rate used before reboot. Previously saved pixel coefficients are also
restored.
A4 Diagnostics
A4.1 Generating a Test Pattern
Purpose: Generates a test pattern to aid in system debugging. The test
patterns are useful for verifying camera timing and connections.
The following tables show each available test pattern.
Syntax:
svm i
Syntax Elements:
i
Video.
0
12 bit ramp test pattern.
1
8 bit step test pattern.
2
2 tap model
1 tap model
03-032-10158-04 DALSA
2 tap model
Spyder3 GigE User’s Manual PRELIMINARY
1 tap model
Example:
svm 1
83
A4.1.1 Ethernet Test Pattern
A third test pattern—Ethernet—is accessible using the QuickCam GUI.
Purpose: Generates a test pattern to aid in system debugging. The test
patterns are useful for verifying camera timing and connections.
The following table shows the ethernet test pattern available
through the QuickCam GUI.
Availability:
Under the Diagnostics tab in the Test Patter drop-down list.
Ethernet.
2 tap model
1 tap model
DALSA 03-032-10158-04
84
PRELIMINARY Spyder3 GigE User Manual
A4.2 Returning Video Information
The camera’s microcontroller has the ability to read video data. This functionality can be
used to verify camera operation and to perform basic testing without having to connect
the camera to a frame grabber. This information is also used for collecting line statistics
for calibrating the camera.
Returning a Single Line of Video
Purpose: Returns a complete line of video (without pixel coefficients
applied) displaying one pixel value after another. After pixel
values have been displayed it also displays the minimum,
maximum, and mean value of the line sampled within the region
of interest (the region of interest command is explained in section
290HA2.1 Setting a Region of Interest (ROI)).
gl command, or the following 110Hgla command, to ensure
Syntax:
Use the
the proper video input range into the processing chain before
executing any pixel calibration commands.
gl x1 x2
Syntax Elements:
Pixel start number. Must be less than the pixel end number in
Pixel end number. Must be greater than the pixel start number
Notes:
Related Commands
Example:
x1
a range from
x2
• If x2≤x1 then x2 is forced to be x1.
• Values returned are in 12-bit DN.
111Hroi
gl 10 20
in a range from
1 to sensor resolution.
2 to sensor resolution.
Returning Averaged Lines of Video
Setting the Number of Lines to Sample
Purpose: Sets the number of lines to sample when using the gla command
or when performing FPN and PRNU calibration.
Syntax:
Syntax Elements:
Number of lines to sample. Allowable values are 256, 512,
Notes:
Related Commands:
Example:
css m
m
1024 (factory setting).
or
• To return the current setting, use the 112Hgcp command or 113Hget
css.
114Hgla, 115Hccf, 116Hccp, 117Hcpa
css 1024
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
85
Returning the Average of Multiple Lines of Video
Purpose: Returns the average for multiple lines of video data (without pixel
coefficients applied). The number of lines to sample is set and
Syntax:
adjusted by the
Max., and Mean statistics for the pixels in the region of interest (the
region of interest command is explained in section
Region of Interest (ROI)).
gla x1 x2
css command. The camera displays the Min.,
291HA2.1 Setting a
Syntax Elements:
Pixel start number. Must be less than the column end number
Pixel end number. Must be greater than the column start
Notes:
Related Commands:
Example:
x1
in a range from
x2
• If x2≤x1 then x2 is forced to be x1.
• Analog gain, analog offset, digital offset, background subtract,
• Values returned are in 12 bit DN.
118Hcss, 119Hroi
gla 10 20
number in a range from
and digital system gain are applied to the data. FPN and
PRNU coefficients are not included in the data.
A4.3 Temperature Measurement
The temperature of the camera can be determined by using the vt command. This
command will return the internal chip case temperature in degrees Celsius. For proper
operation, this value should not exceed 75°C.
Note: If the camera reaches 75°C, the camera will shutdown and the LED will flash red. If
this occurs, the camera must be rebooted using the command,
down manually. You will not be able to restart the camera until the temperature is less
than 65°C. You will have to correct the temperature problem or the camera will shutdown
again. The camera allows you to send the
this state.
1 to sensor resolution.
2 to column resolution.
rc or can be powered
vt (verify temperature) command while it is in
A4.4 Voltage Measurement
The command vv displays the camera’s input voltage. Note that the voltage
measurement feature of the camera provides only approximate results (typically within
10%). The measurement should not be used to set the applied voltage to the camera but
only used as a test to isolate gross problems with the supply voltage.
DALSA 03-032-10158-04
86
PRELIMINARY Spyder3 GigE User Manual
A4.5 Camera Frequency Measurement
Purpose: Returns the frequency for the requested Camera Link control
•Camera operation may be impacted when entering the gsf
command (i.e., poor time response to direction change or
video may have artifacts (gain changes) for several lines
while the camera returns signal information)
•This command is not available when operating the camera
with external CCD direction control (scd 2)
gsf 1
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
87
A4.6 Returning the LED Status
Purpose: Returns the status of the camera’s LED.
Syntax:
gsl
The camera returns one of the following values:
1 = red (loss of functionality)
2 = green (camera is operating correctly)
5 = flashing green (camera is performing a function)
6 = flashing red (fatal error)
Notes:
•Refer to section 292H2.5 Camera LED for more information on
the camera LED
A4.7 Returning Camera Settings
Returning All Camera Settings with the Camera Parameter
Screen
The camera parameter (gcp) screen returns all of the camera’s current settings. The table
below lists all of the gcp screen settings.
To read all current camera settings, use the command:
Syntax:
GCP Screen Description
GENERAL CAMERA SETTINGS
Camera Model No.: SG-10-01K80
Camera Serial No.: xxxxxxxxx
Firmware Version: xx-xx-xxxxx-xx
CCI Version: xxxxx.xx
FPGA Version: xxx.xx
UART Baud Rate: 9600
Dual Scan Mode: High Sensitivity
Camera Mode: 2 taps, 8 bits
gcp
Camera model number.
Camera serial number.
Firmware design
revision number.
CCI version number.
FPGA revision number.
Serial communication
connection speed set
with the
293HSetting Baud Rate
See
on page
Current sensitivity
mode set with the
command. See section
295HA1.1 Sensitivity Mode
for details.
Current bit depth
setting set with the sdm
command. Refer to
section
296HA1.3 Setting the
Bit Depth for details.
120Hsbr command.
294H53 for details.
121Hshm
DALSA 03-032-10158-04
88
PRELIMINARY Spyder3 GigE User Manual
Exposure Mode: 2
SYNC Frequency: 5000 Hz
Exposure Time: 200 uSec
CCD Direction: internal/forward
Horizontal Binning: 1
Video Mode: video
Region of Interest: (1,1) to (1024, 1)
End-Of-Line Sequence:on
FFC Coefficient Set: 0
Current exposure mode
value set with the
122Hsem
command. See section
297HA1.4 Exposure Mode,
Line Rate and Exposure
Time for details.
Current line rate. Value
is set with the
123Hssf
command. See section
298HA1.4 Exposure Mode,
Line Rate and Exposure
Time for details.
Current exposure time
setting. Value is set
with the
See section
124Hset command.
299HA1.4
Exposure Mode, Line
Rate and Exposure
Time for details.
Current direction
setting set with scd
command. Refer to
section
300HA1.2 CCD Shift
Direction for details.
Current horizontal
binning factor set with
the
sbh command.
Current video mode
value set with the
125Hsvm
command. See section
301HA4.1 Generating a Test
Pattern for details.
Region of interest size
set with the
126Hroi
command. See section
302HA2.1 Setting a Region of
Interest (ROI) for
details.
States whether an end
of line sequence is
turned on or off. Set
using the
127Hels
command. See section
303HA2.3 End-of-line
Sequence for details.
Current pixel coefficient
set loaded. Refer to
section
304HA3.1 Saving and
Restoring PRNU and
FPN Coefficients for
details.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
89
FPN Coefficients: off
PRNU Coefficients: off
States whether FPN
coefficients are on or
off. Set with the
128Hepc
command. Refer to
section
305HA2.2 Analog
and Digital Signal
Processing Chain for
details.
States whether PRNU
coefficients are on or
off. Set with the
129Hepc
command. Refer to
section
306HA2.2 Analog
and Digital Signal
Processing Chain for
details.
DALSA 03-032-10158-04
90
PRELIMINARY Spyder3 GigE User Manual
Number of Line
Samples:
1024
Number of lines
samples set with the
130Hcss command. See
section
Test Pattern
307HA4.1.1 Ethernet
A
t
h
ir
d
t
e
st
p
a
tt
e
r
n
—
E
t
h
e
r
n
e
t
—
is
a
c
c
e
s
si
b
l
e
u
si
n
g
t
h
e
Q
u
ic
k
C
a
m
G
U
03-032-10158-04 DALSA
I.
Purpose:
Spyder3 GigE User’s Manual PRELIMINARY
91
Upper Threshold 400
Lower Threshold 3600
Analog Gain (dB): 0.0 0.0
Analog Gain
0.0 0.0
Reference(dB):
Total Analog Gain
5.5 5.5
(dB):
Analog Offset: 80 80
Digital Offset: 0 0
Background Subtract: 0 0
System Gain (DN): 4096 4096
Upper threshold value
set with the
131Hsut
command.
See section
308HA2.3 End-of-
line Sequence for
details.
Lower threshold value
set with the
132Hslt
command. See section
309HA2.3 End-of-line
Sequence for details.
Analog gain settings set
with the
See section
133Hsag command.
310HA2.2 Analog
and Digital Signal
Processing Chain for
details.
Analog reference gain
set with the
ugr
command.
See section
311HA2.2 Analog
and Digital Signal
Processing Chain for
details.
This is the sum of the
analog gain and analog
gain reference values
and is the total analog
gain being used by the
camera.
Current GPIO pinout
configuration. Refer to
section
316HA1.5
Configuring the GPIO
Connector for details.
Returning Camera Settings with Get Commands
You can also return individual camera settings by inserting a “get” in front of the
command that you want to query. If the command has a tap or pixel number parameter,
you must also insert the tap number or pixel number that you want to query. Refer to
317HTable 13 below for a list of available commands. To view a help screen listing the
following get commands, use the command
Table 13: Get Commands
Syntax Parameters Description
get cao
get ccf
get ccp
get css
get dgc
t
x1 x2
x1 x2
Returns the analog offset for the tap indicated
t = tap selection, either 1 to 2 depending on camera
model, or
Returns the FPN pixel coefficients for the pixel range
indicated.
x1 = Pixel start number
x2= Pixel end number
Returns the PRNU pixel coefficients for the pixel range
indicated.
x1 = Pixel start number
x2= Pixel end number
Returns the number of line samples averaged for pixel
coefficient calculations or for output of
Returns the current GPIO configuration.
gh.
0 for all taps
gla command.
get dpc
get els
get epc
get gcm
03-032-10158-04 DALSA
x1 x2
Returns pixel coefficients without formatting.
Returns whether the end-of-line statistics are turned off or
on.
0: Off
1: On
Returns whether pixel coefficients are enabled or
disabled.
The first parameter returns the FPN coefficients setting
where:
t = tap id
i = integer value
f = float
m = member of a set
s = string
x
= pixel column number
y = pixel row number
get svm
get ugr
get vt
get vv
t
Returns the current video mode.
0: Normal video mode
1: Test pattern
2: Test pattern
Returns the gain reference value.
t = tap selection, either 1 to 2 depending on camera
model, or
Returns the camera’s internal chip temperature in degrees
Celsius.
Returns the camera’s supply voltage.
0 for all taps
get wfc
get wpc
get wus
Returns whether FPN coefficients have been saved.
0 = No FPN coefficients saved
1 = Pixel coefficients have been saved
Returns whether PRNU coefficients have been saved.
0 = No PRNU coefficients saved
1 = Pixel coefficients have been saved
Returns whether user settings have been saved.
0 = No user settings saved
1 = User settings have been saved
ASCII Commands: Reference
The following table lists all of the camera’s available ASCII commands. Refer to
Appendix A for detailed information on using these ASCII commands.
Table 14: Command Quick Reference
Mnemonic Syntax Parameters Description
calibrate analog offset
correction calibrate fpn
cao
ccf
t i
Performs FPN calibration and
Calibrates the analog gain and averages
each tap’s pixels within the ROI to the
specified average target value.
t = tap selection, either 1 or 2
depending on camera model, or
all taps
i = target value in a range from 1 to
255DN (12 bit LSB)
eliminates FPN noise by subtracting
away individual pixel dark current.
0 for
DALSA 03-032-10158-04
96
PRELIMINARY Spyder3 GigE User Manual
Mnemonic Syntax Parameters Description
calculate camera gain
correction calibrate prnu
ccg
ccp
i t i
Performs PRNU calibration and
Calculates the camera gain according to
the selected algorithm.
i = Calibration algorithm to use.
1 = This algorithm adjusts analog
gain so that 8% to 13% of tap ROI
pixels are above the specified target
value.
2 = This algorithm adjusts analog
gain so that the average pixel value
in tap’s ROI is equal to the
specified target value.
3 = This algorithm adjusts digital
gain so that the average pixel value
in tap’s ROI is equal to the
specified target.
4= This algorithm adjusts the
analog gain so that the peak tap
ROI pixels are adjusted to the
specified target.
t = Tap value. Use 0 for all taps or 1
2 for individual tap selection
or
depending on camera model.
i = Calibration target value in a range
1024 to 4055DN (12 bit LSB).
from
eliminates the difference in responsivity
between the most and least sensitive
pixel creating a uniform response to
light.
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
t
)
97
Mnemonic Syntax Parameters Description
calculate PRNU
algorithm
correction set sample
display gpio
configuration
display pixel coeffs
cpa
css
dgc
dpc
i i
m
x1 x2
Performs PRNU calibration according
to the selected algorithm.
The first parameter is the algorithm
where
i is:
1 = This algorithm first adjusts each
tap’s analog gain so that 8-13% of pixels
within a tap are above the value
specified in the target value parameter.
PRNU calibration then occurs using the
peak pixel in the region of interest.
(Identical to
ccp)
2 = Calculates the PRNU coefficients
using the entered target value as shown
below:
PRNU Coefficie nt =
(AVG Pix el Value) - (FP N + v alue
Targe
sdo
The
calculation is performed for all sensor
pixels but warnings are only applied to
pixels in the region of interest. This
algorithm is useful for achieving
uniform output across multiple
cameras.
3 = This algorithm includes an analog
gain adjustment prior to PRNU
calibration. Analog gain is first adjusted
so that the peak pixel value in tap’s ROI
is within 97 to 99% of the specified
target value. It then calculates the
PRNU coefficients using the target
value as shown below:
PRNUCoefficient=
i
(AVGPixelValu e)‐ (FPN+value)
Tar g et
i
sdo
i
The calculation is performed for all
sensor pixels but warnings are only
applied to pixels in the region of
interest. This algorithm is useful for
achieving uniform output across
multiple cameras.
The second parameter is the target
value to use in a range from
1024 to
4055DN.
Sets the number of lines to sample
when using the gla command or when
performing FPN and PRNU calibration
where m is
256, 512, or 1024
Displays the current configuration of
the GPIO connector.
Displays the pixel coefficients in the
order FPN, PRNU, FPN, PRNU, …
x1 = Pixel start number
x2= Pixel end number
in a range from
1 to 1024 or 2048
DALSA 03-032-10158-04
98
PRELIMINARY Spyder3 GigE User Manual
Mnemonic Syntax Parameters Description
end of line sequence
enable pixel coefficients
get camera model
els
epc
gcm
i
i i
Sets the end-of-line sequence:
0: Off
1: On
Sets whether pixel coefficients are
enabled or disabled.
The first parameter sets the FPN
coefficients where
Gets a line of video (without pixel
coefficients applied) displaying one
pixel value after another and the
minimum, maximum, and mean value
of the sampled line.
x = Pixel start number
x = Pixel end number
in a range from
count
.
1 to sensor pixel
Read the average of line samples.
x = Pixel start number
x = Pixel end number
in a range from
count
.
1 to sensor pixel
Read the PRNU coefficient.
x = pixel number to read in a range
1 – sensor pixel count.
from
Reads the requested Camera Link
control frequency.
1 = EXSYNC frequency
2 = Spare
3 = Direction
4 = Spare
03-032-10158-04 DALSA
Spyder3 GigE User’s Manual PRELIMINARY
99
Mnemonic Syntax Parameters Description
get status led
help
load pixel coefficients
reset camera
restore factory settings
region of interest
reset pixel coeffs
gsl
h
lpc
rc
rfs
roi
rpc
x y x y
Returns the current state of the
camera’s LED where:
1 = Red
2 = Green
5 = Blinking green
6 = Blinking red
Display the online help. Refer to
318HCamera ASCII Command Help on page
319H53 for details.
Loads the previously saved pixel
coefficients from non-volatile memory
where
i is:
0 = Factory calibrated coefficients
1 = Coefficient set one
2 = Coefficient set two
3 = Coefficient set three
4 = Coefficient set four
Resets the entire camera (reboot). Baud
rate is not reset and reboots with the
value last used.
Restores the camera’s factory settings.
FPN and PRNU coefficients reset to 0.
Sets the pixel range affected by the cag,
cao, gl, gla, ccf, and ccp commands.
The parameters are the pixel start and
end values (
end values (
x) and the column start and
y) in a range from 1 to
sensor pixel count.
Resets the pixel coefficients to 0.
restore user settings
rus
Restores the camera's last saved user
settings and FPN and PRNU
coefficients.
set analog gain
sag
t f
Sets the analog gain in dB.
t = tap selection, either 1 or 2
depending on camera model, or
0 for
all taps.
f= gain value specified from –10 to
+10
set analog offset
sao
t i
Sets the analog offset.
t = tap selection, either 1 or 2
depending on camera model, or
0 for
all taps.
i= Offset value in a range from 0 to
255 (12-bit LSB). Offset increases with
higher values.
set binning horizontal
sbh
m
Sets the horizontal binning value.
Available values are
1 and 2.
DALSA 03-032-10158-04
100
PRELIMINARY Spyder3 GigE User Manual
Mnemonic Syntax Parameters Description
set baud rate
set ccd direction
set data mode
set digital offset
set exposure mode
set exposure time
set fpn coeff
sbr
scd
sdm
sdo
sem
set
sfc
i
i
i
t i
m
f
x i
Set the speed of camera serial
communication port. Baud rates: