Dalsa Spyder2 S2-2x-04K40 User Manual

Dalsa Spyder2 S2-2x-04K40 User Manual

Line scan ccd cameras
Table of Contents

Advertisement

S2-2x-04K40
Camera User's Manual
23-Sep-10
Printed 9/23/2010 3:20:00 PM
03-032-10195-04
www.dalsa.com

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the Spyder2 S2-2x-04K40 and is the answer not in the manual?

Questions and answers

Summary of Contents for Dalsa Spyder2 S2-2x-04K40

  • Page 1 S2-2x-04K40 Camera User’s Manual 23-Sep-10 Printed 9/23/2010 3:20:00 PM 03-032-10195-04 www.dalsa.com...
  • Page 2 Spyder2 4k User’s Manual © 2010 DALSA. All information provided in this manual is believed to be accurate and reliable. No responsibility is assumed by DALSA for its use. DALSA reserves the right to make changes to this information without notice. Reproduction of this manual in whole or in part, by any means, is prohibited without prior permission having been obtained from DALSA.
  • Page 3: Table Of Contents

    3.14 How to Calibrate the Camera ............................ 31 3.15 Setting and Reading FPN Coefficients ........................34 3.16 Setting and Reading PRNU Coefficients ........................35 3.17 Generating Test Patterns ............................35 3.18 Monitoring the Camera ............................. 36 3.19 Rebooting the Camera ............................... 37 03-032-10195-04 DALSA...
  • Page 4 C3 Command Format and Examples ..........................57 C4 Networking Mode ................................. 58 C5 Error Handling ................................61 C6 Camera Parameter Screen............................64 C7 Commands ..................................67 DC Offset De-rating Curve _________________________________________________ 73 Revision History ________________________________________________________ 75 Index _______________________________________________________________ 77 03-032-10195-04 DALSA...
  • Page 5: Introduction To The Spyder2 4K Line Scan Camera

    4096 pixels, 10 µm x 10 µm, and 100% fill factor • Line rates up to 10 kHz Programmability • Simple ASCII protocol controls gain, offset, line rates, trigger mode, pixel correction, test pattern output, and camera diagnostics. 03-032-10195-04 DALSA...
  • Page 6 The Spyder2 4k is ideal for applications requiring high speed, superior image quality, and high responsivity. Applications include: • Flat panel display inspection • Electronics manufacturing inspection • Postal/parcel sorting • High performance document scanning/image lift • Narrow and large web inspection • High-end industrial inspection 03-032-10195-04 DALSA...
  • Page 7: Image Sensors

    9 kHz, the amount of dark current will be reduced by 9x or greater. Table 1. Spyder2 4k Operating Requirements and Ranges Operating Requirements Units Typical Notes Power Power Supply Current (Vin = +12V) Time to power up, typ sec. Time to calibrate (FPN/PRNU) sec. Specification Units Notes Throughput Line Rate 03-032-10195-04 DALSA...
  • Page 8 All measurements taken in 8 bit output mode. • All measurements are valid for front plate temperatures in still air. • All measurements used a Tungsten halogen light source, 3200 K bulb temp., and 750 nm cutoff filter 03-032-10195-04 DALSA...
  • Page 9 Measurements taken at maximum line rates. Exposure control enabled to set the maximum integration time to 200 µs. Refer to Appendix D for a DC Offset de-rating curve. Figure 2: Spyder2 4k Responsivity Spyder2 4k Responsivity @ 10 dB 1000 Wavelength (nm) 03-032-10195-04 DALSA...
  • Page 10 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 11: Camera Hardware Interface

    2.2 Input/Output Camera Link™ Diagnostic LED +12V to +15V and Ground WARNING: It is extremely important that you apply the appropriate voltages to your camera. Incorrect voltages will damage the camera. See section 2.4 for more details. 03-032-10195-04 DALSA...
  • Page 12: Connectors, Pinouts, And Cables

    Frame Grabber Signal inner shield inner shield Xclk- Xclk+ SerTC+ SerTC- SerTFG- SerTFG+ CC1- CC1+ CC2+ CC2- CC3- CC3+ CC4+ CC4- inner shield inner shield Unused pairs should be terminated in 100 ohms at both ends of the cable. 03-032-10195-04 DALSA...
  • Page 13: Power Supplies

    11, 24 Spare 12, 25 See Appendix B for the complete DALSA Camera Link configuration table, and refer to the DALSA Web site, vfm.dalsa.com, for the official Camera Link documents. Hirose 6-pin Circular Male Mat ing Par t: HIRO SE...
  • Page 14: Data Bus, Camera Link

    These signals indicate when data is valid, allowing you to clock the data from the camera to your acquisition system. These signals are part of the Camera Link configuration and you should refer to the DALSA Camera Link Implementation Road Map, available at vfm.dalsa.com, for the standard location of these signals:...
  • Page 15 (AGC) Pixels below threshold LSB Pixels below threshold Derivative line sum LSB Use these values to focus the camera. Generally, the greater the sum the greater the Derivative line sum Mid image contrast Derivative line sum MSB 03-032-10195-04 DALSA...
  • Page 16: Timing

    Spyder2 4k User’s Manual 2.7 Timing Figure 3. Spyder2 4K Overview Timing Showing Input and Output Relationships Figure 4. Spyder2 4K Fixed (Programmed) Integration Timing with External EXSYNC 03-032-10195-04 DALSA...
  • Page 17 Failure to meet this requirement may result in blooming in the Horizontal Shift Register. *SMART EXSYNC refers to exposure mode 4. Refer to section 3.9 Setting Line Rate and Exposure Mode for further information on exposure modes. 03-032-10195-04 DALSA...
  • Page 18: Camera Link Serial Communication

    2.8 Camera Link Serial Communication Camera features can be controlled through the Camera Link™ serial communication (LVDS, 9600 baud). The serial interface uses simple ASCII-based protocol. The following chapter describes how to configure the camera using the serial interface. 03-032-10195-04 DALSA...
  • Page 19: Software Interface: How To Control The Camera

    To generate this list, send the command to the camera. Retrieving Camera Settings To read current camera settings, send the command . For an explanation of the camera parameter screen, see section C6 Camera Parameter Screen on page 64. 03-032-10195-04 DALSA...
  • Page 20: Command Format

    For example, the analog gain value can be set to –5db in calibrated mode and 6dB in uncalibrated mode. When switching between calibrated and uncalibrated modes, the camera automatically uses the corresponding value. 03-032-10195-04 DALSA...
  • Page 21: Startup

    To save all current pixel coefficients to EEROM, use the command • To restore the last saved user settings and the FPN and PRNU coefficients, use the command Factory User Settings / Settings EEROM restore write / restore Current Session 03-032-10195-04 DALSA...
  • Page 22: Setting Baud Rate

    In the table below, ports A-F refer to ports in the Camera Link specification. Table 6: Mode Selection Values Mode Description 8-bit, using A/B/C/D ports for single processor configuration 10-bit, using A/B/C and D/E/F for single processor configuration To obtain the current data mode, use the command 03-032-10195-04 DALSA...
  • Page 23: Setting The Video Mode

    Overview: Setting Line Rate and Exposure Time The camera’s line rate (synchronization) can be generated internally through software commands or input externally from a frame grabber/host system. To select how you want the camera’s line rate to be generated: 03-032-10195-04 DALSA...
  • Page 24: Setting The Exposure Mode

    • Notes: To read the current line rate frequency, use the command gcp. • If you enter an invalid line rate frequency, the valid range of values will be displayed. Related Commands: sem, set Example: ssf 3000 03-032-10195-04 DALSA...
  • Page 25: Setting A Region Of Interest

    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. 03-032-10195-04 DALSA...
  • Page 26: Returning A Single Line Of Video

    You can also return the average for multiple lines of video data. The number of lines to sample is set and adjusted by the command. The camera displays the Min., Max., and Mean statistics. If you are using a region of interest, the camera displays the statistics for the region of interest only. 03-032-10195-04 DALSA...
  • Page 27: Optimizing Offset Performance

    10 20 3.12 Optimizing Offset Performance Optimizing offset performance in the analog domain allows you to achieve a better signal-to-noise ratio (dynamic range) than you would achieve by trying to optimize the offset in the digital domain. 03-032-10195-04 DALSA...
  • Page 28 To add video scene offset to the output from video signal, use the command: Syntax: sab t i Syntax Elements: Tap selection. Allowable range is 1 to 2, or 0 for all taps. Offset value to add in a range from 0 to 1023. Example: sab 0 20 03-032-10195-04 DALSA...
  • Page 29 8 bit: 1 to 100DN 10 bit: 4 to 400DN See section 3.11 Returning Video Information for more information on line averages Notes: This command sets offset in uncalibrated mode (svm 0). Example: cao 0 100 03-032-10195-04 DALSA...
  • Page 30: Setting Gains

    Note: This function requires a constant light input while it executes. This feature is beneficial for achieving a common output level for multiple cameras in a system. 03-032-10195-04 DALSA...
  • Page 31: How To Calibrate The Camera

    The calibration 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. 03-032-10195-04 DALSA...
  • Page 32 10 °C occurs. Dark Calibration Dark calibration is used to remove the fixed analog offset from the video path. It is recommended you repeat the calibration when a temperature change greater than 10 °C occurs. 03-032-10195-04 DALSA...
  • Page 33 2x, the camera will not be able to compensate for extremely non-uniform light. These restrictions are all tested within the calibration algorithm and the camera will report an informal message code if any of these conditions could not be met. 03-032-10195-04 DALSA...
  • Page 34: Setting And Reading Fpn Coefficients

    You can set or read an individual pixel’s FPN coefficient. To set the FPN coefficient, use the command: Syntax: sfc i i Syntax Elements: The pixel number from 1 to the pixel count. Coefficient value in a range from 0 to 127. Example: sfc 10 50 03-032-10195-04 DALSA...
  • Page 35: Setting And Reading Prnu Coefficients

    End-of-line Sequence To further aid debugging, the camera can generate an end-of-line sequence. The end-of- line-sequence outputs "aa", "55", "aa", "line counter", "line average", "pixels above threshold", "pixels below threshold", "derivative line sum". To activate the end-of-line 03-032-10195-04 DALSA...
  • Page 36: Monitoring The Camera

    Monitors camera temperature External SYNC presence Monitors presence of external SYNC External PRIN presence Monitors presence of external PRIN Gain Out Of Spec Monitors current setting of analog Monitoring gain Line Rate Below 1 KHz Monitors current line rate 03-032-10195-04 DALSA...
  • Page 37: Rebooting The Camera

    Previously saved pixel coefficients are also restored. 3.20 Setting the Pre-trigger A pre-trigger may be required for some frame grabbers. To set the pre-trigger, use the command: Syntax: sp i Syntax Elements: Pretrigger value from 0 to 15. Example: sp 10 03-032-10195-04 DALSA...
  • Page 38 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 39: Optical, Mechanical, And Thermal Considerations

    ±10 °C. Note: Upon initial power-up the front plate camera temperature is near ambient. It is recommended to perform flat-field correction once the camera gets within 10 °C of its 03-032-10195-04 DALSA...
  • Page 40 Convection is the ideal method to minimize camera warm-up times and reduce dark current generation. Both methods— either conduction through heat sinking, or convection through air flow— greatly reduce dark current and will improve your system performance. 03-032-10195-04 DALSA...
  • Page 41 M3x0.5 - 6H (4X) 3.5 (2X) 7.0 DEEP CONTROL M2x0.4 - 6H(4X) DATA 1 7.0 DEEP STATUS POWER 25.0 7.5 (2X) 70.0 (2X) 46.81 (2X) M3x0.5 - 6H (4X) 78.0 (2X) 5.0 DEEP 85.0 All units in mm. 03-032-10195-04 DALSA...
  • Page 42: Optical Interface

    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, vfm.dalsa.com, provides an introduction to this potentially complicated issue. See “Radiometry and Photo Responsivity”...
  • Page 43: Lens Modeling

    This is the governing equation for many object and image plane parameters. Example: An acquisition system has a 512 x 512 element, 10μm pixel pitch area scan camera, a lens with an effective focal length of 45mm, and requires that 100μm in the 03-032-10195-04 DALSA...
  • Page 44 Spyder2 4k User’s Manual object space correspond to each pixel in the image sensor. Using the preceding equation, the object distance must be 450 mm (0.450 m). μ 0 450 μ 03-032-10195-04 DALSA...
  • Page 45: Ccd Handling Instructions

    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. 03-032-10195-04 DALSA...
  • Page 46: Cleaning The Sensor Window

    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 opposed to the length) of the sensor. 03-032-10195-04 DALSA...
  • Page 47: Troubleshooting

    2 (5 kHz line rate, and internal Sync to trigger readout). After a user has saved settings, the camera powers up with the saved settings. Note, a warning appears when switching to exposure mode requiring external signals if external signals are not present (EXSYNC or PRIN). 03-032-10195-04 DALSA...
  • Page 48: Troubleshooting Using The Serial Interface

    The test pattern is a ramp from 0 to 255 DN, then starts svm 2 at 0 again. Use the test pattern to verify the proper timing and connections between the camera and the frame grabber. 03-032-10195-04 DALSA...
  • Page 49: Verify Voltage

    The camera enters a warning state when any of the camera's continuously running monitoring tasks detects a failure. Use the command to display the status of all the defined monitory tasks (if no parameter is passed) and/or to enable/disable specific monitoring tasks. 03-032-10195-04 DALSA...
  • Page 50: Specific Solutions

    8. Blow off any adhering fibers or particles using dry, filtered compressed air. Stuck Bits If data bits seem to be stuck or do not change, check that the camera is not saturated by preventing light from entering. To verify the data path integrity, check the levels of the 2 03-032-10195-04 DALSA...
  • Page 51: Horizontal Lines Or Patterns In Image

    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-10195-04 DALSA...
  • Page 52 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 53: Camera Link™ Reference

    The Channel Link technology is integral to the transmission of video data. Image data and image enable signals are transmitted on the Channel Link bus. Four enable signals are defined as: • FVAL—Frame Valid (FVAL) is defined HIGH for valid lines. • LVAL—Line Valid (LVAL) is defined HIGH for valid pixels. 03-032-10195-04 DALSA...
  • Page 54: Camera Control Signals

    The software API will provide functions to enumerate boards and send or receive a character string. See Appendix B in the Official Camera Link specification on the vfm.dalsa.com web site. Power Power will not be provided on the Camera Link connector. The camera will receive power through a separate cable.
  • Page 55: Emc Declaration Of Conformity

    73/23/EEC and the EMC Directive 89/336/EEC and carries the CE mark accordingly. Place of Issue Waterloo, ON, CANADA Date of Issue September 2006 Name and Signature Hank Helmond of authorized person Quality Manager, DALSA Corp. This Declaration corresponds to EN 45 014. 03-032-10195-04 DALSA...
  • Page 56 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 57: Communications Protocol

    = tap x1, x2 = pixel start and stop values • The camera will answer each command with either "OK >" or "Error x: Error Message >". The ">" is always the last character sent by the camera. 03-032-10195-04 DALSA...
  • Page 58: C4 Networking Mode

    . Where the first sci i i parameter is an ID of A to Z or 0 to 9, and the second, optional, parameter is the camera's serial number. • To read current camera ID, use the command. 03-032-10195-04 DALSA...
  • Page 59 After a broadcast command is sent, and before issuing the next command, each camera on the link must be polled until a READY status is returned. A BUSY status indicates that the camera is not ready to receive the next command. 03-032-10195-04 DALSA...
  • Page 60 Example: reading status from camera ID "a" :a gps Enabling/Disabling Non-Command Messages in the Network Environment To enable/disable camera messages unrelated to the executed command, such as initialization and monitoring task messages, use the command snm i Value Function Enable messages, default Disable messages 03-032-10195-04 DALSA...
  • Page 61: C5 Error Handling

    ( ssf and set ) and in mode 6 ( set ) Command available in ccf , ccp CALIBRATED mode only Command available in cao , cag UNCALIBRATED mode only Command not available in sao , sg VIDEO TEST mode 03-032-10195-04 DALSA...
  • Page 62 Product Support if this error code is returned. Camera settings not saved rus , rfs attempted but settings were not saved. Contact your DALSA representative or Product Support if this error code is returned. Pixel coefficients write failure...
  • Page 63 INFO: Coefficient may be Insufficient analog offset or too much gain inaccurate. A/D clipping has for given light. occured. Monitoring Task Message Codes Code Description Suggested Cause WARNING: One or more At least one of voltages is out of 03-032-10195-04 DALSA...
  • Page 64: C6 Camera Parameter Screen

    Network Message Mode: disabled messages are enabled or disabled. Set with the snm command. See C4 Networking Mode for details. Firmware design revision Firmware Design Rev.: xx-xx-xxxxx-xx number. DSP design revision DSP Design Rev.: xx.xx number. SETTINGS FOR UNCALIBRATED MODE: 03-032-10195-04 DALSA...
  • Page 65 Available only in calibrated mode ( svm 0 ). See section 3.12 Optimizing Offset Performance for details. Calibration status will Calibration Status: FPN(uncalibrated) change to calibrated PRNU(uncalibrated) after a ccf or ccp command has been issued 03-032-10195-04 DALSA...
  • Page 66 See section 3.9 Setting Line Rate and Exposure Mode for details. Current exposure time setting. Exposure Time: 197.950 uSec Value is set with the set command. See section 3.9 Setting Line Rate and Exposure Mode for details. 03-032-10195-04 DALSA...
  • Page 67: C7 Commands

    4 to 400 for 10 bit. correction_calibrate_prnu Start PRNU coefficient calibration. Use css to set sample size. Values range from 64 to 251 DN for 8 bit mode and 256 to 1007 DN for 10 bit. 03-032-10195-04 DALSA...
  • Page 68 1 to sensor pixel count. get_prnu_coeff Read the PRNU coefficient. get_processing_status Read the status of last executed command and coded value for all pending monitoring task warnings. get_sensor_serial Read the sensor serial number. help Display the online help. 03-032-10195-04 DALSA...
  • Page 69 Z, or 0 to 9. The second optional parameter is the serial number of the addressed camera. set_data_mode Set the data mode of camera output to: 0: 8 bit, A/B/C/D ports, single processor 1: 10 bit, A/B/C and D/E/F ports, single processor 03-032-10195-04 DALSA...
  • Page 70 Set the lower threshold to a value from 0 to 255 for 8-bit data modes, and 0 to 1023 for 10-bit. set_netmessage_mode Enable/disable camera messages unrelated to the executed network command: 0 : Enable messages, default 1 : Disable messages 03-032-10195-04 DALSA...
  • Page 71 Check the camera voltages and return OK or fail. warning_enable_disable Read enable/disable status of [i] [i] all defined monitoring tasks. Optionally, the first parameter selects a monitoring task and the second parameter enables/disable the selected task. 03-032-10195-04 DALSA...
  • Page 72 = tap selector write_user_settings Write all of the user settings to s = string EEROM except pixel x1 = pixel start coefficients which are written number using the wpc command. x2= pixel end number []= optional parameter 03-032-10195-04 DALSA...
  • Page 73: Dc Offset De-Rating Curve

    39 for more information. • Operating the camera at higher line rate and averaging or discarding the extra lines Figure 7: Worst Case Calibrated DC Offset vs. Temperature and Exposure Time 1000µs Integration Time 500µs Integration Time 100µs Integration Time 03-032-10195-04 DALSA...
  • Page 74 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 75: Revision History

    "Pending" stamp removed from EMC Declaration of Conformity, on page 55, and replaced with fulfilled requirements: EN 55022 Class A and EN 61326; and EN 55024 and EN 61326. Maximum line rate updated from 9 kHz to 10 kHz. Preliminary stamp removed. 03-032-10195-04 DALSA...
  • Page 76 Spyder2 4k User’s Manual 03-032-10195-04 DALSA...
  • Page 77: Index

    50 exteranl sync, 14 Data Bus, 14 PRIN, 14 data mode, 22 interface debugging, 15, 35, 47 optical, 42 digital data, 14 serial, 19 software, 19 EIA-644 Reference, 53 EMC Declaration of LED, 36 Conformity, 55 lens 03-032-10195-04 DALSA...
  • Page 78 42 output mode, 22 video data, 26, 53 voltage measurement, 37 performance, 7 pixel statistics, 25 power supplies, 13 warning messages, 36 pretrigger, 37 white light calibration, 33 PRIN, 14 PRNU, 33, 35 03-032-10195-04 DALSA...

Table of Contents