Color Scan Direction Sensor Readout Direction (Mirroring Mode) 3.7 Data Output Setting the Camera Link Mode Setting the Camera’s Pixel Rate (Throughput) 3.8 Set Color Correction 3.9 Camera Selection Variables 3.10 Exposure Control Overview Setting the Exposure Mode DALSA 03-032-10211-03 9/27/2007...
Page 4
Returning the LED Status Returning Camera Settings 4.1 Mechanical Interface 4.2 Lens Mounts 4.3 Optical Interface 5.1 Electrostatic Discharge and the CCD Sensor 5.2 Protecting Against Dust, Oil and Scratches 5.3 Cleaning the Sensor Window 6.1 Troubleshooting DALSA 03-032-10211-03 9/27/2007...
Page 5
Piranha Color Camera User’s Manual 6.2 Specific Solutions 6.3 Product Support Appendix A: ASCII Command Reference ASCII Commands: Reference A5 Error Handling Appendix B: Blue Correction Command Enabling blue correction Appendix C: EMC Declaration of Conformity Appendix D: Revision History Index DALSA 03-032-10211-03 9/27/2007...
Page 6
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...
Pixel Size μm 14 x 14 Antiblooming Operating Ranges Units Notes Minimum Line Rate Operable to 1 Hz from external Maximum Line Rate 22.7 (2k60) or 32.3 (2k80) Pixel RGB Throughput up to 80 Gain -10 to +10 DALSA 03-032-10211-03 9/27/2007...
Page 9
± 50 μm ± 250 ° Lens Mount M72 x 0.75, M42x1 and F-mount. Mechanical Interface Units Value Notes Camera Size mm (l x h x w) 67 x 105 x 76 Mass Connectors power connector data connector DALSA 03-032-10211-03 9/27/2007...
Maximum Line Rate 12.1 (4k60) or 17.6 (4k80) Pixel RGB Throughput up to 80 Gain -10 to +10 Operating Unit -10 dB 0 dB +10 dB Specification Responsivity (8 bit) (nJ/cm Responsivity (12 bit) (nJ/cm Dynamic Range DALSA 03-032-10211-03 9/27/2007...
Page 11
M72 x 0.75, M42x1 and F-mount. Mechanical Interface Units Value Notes Camera Size mm (l x h x w) 67 x 105 x 76 Mass Connectors power connector data connector Electrical Interface Units Notes Input Voltage Volts +12 to +15 Power Dissipation DALSA 03-032-10211-03 9/27/2007...
The three color lines are 30 µm (4k) separated Red Tap 2 42 µm (2k) Green Tap 30 µm (4k) or 42 µm (2k) apart center to 30 µm (4k) center. 42 µm (2k) Red Tap Green Tap 2 DALSA 03-032-10211-03 9/27/2007...
Piranha Color Camera User’s Manual 1.3 Responsivity Blue Green 1000 1100 Wavelength (nm) 2K sensor spectral responsivity DALSA 03-032-10211-03 9/27/2007...
Page 14
Piranha Color Camera User’s Manual Blue Green 1000 1100 Wavelength (nm) 4K sensor spectral responsivity DALSA 03-032-10211-03 9/27/2007...
High-density 26-pin MDR26 connectors for Camera Link control signals, data signals, and serial communications. Refer to section 2.2.3 Camera Link Data Connector for details. One 6-pin Hirose connector for power. Refer to section 2.2.2 Power Connector for details. DALSA 03-032-10211-03 9/27/2007...
WARNING: When setting up the camera’s power supplies follow these guidelines: Ensure +12V to +15V at the camera power input (after the voltage drop across the power cable. This may mean that the power supply will have to provide a voltage DALSA 03-032-10211-03 9/27/2007...
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 http://mv.dalsa.com/, for the standard location of these signals.
One Channel Link Chip + Camera Control + Serial Communication Camera Right Angle Channel Link Connector 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 DALSA 03-032-10211-03 9/27/2007...
A Medium Configuration uses 2 MDR26 connectors and 2 Channel Link chips. The main characteristics of the Base Configuration are: Ports supported: A, B, C, D, E, F Serializer bit width: 28 Number of chips: 2 Number of MDR26 connectors: 2 DALSA 03-032-10211-03 9/27/2007...
Page 21
BLUE Data 1 Rn 2 Rn Rn 4 R12 R14 Rn 8 Rn 6 RED Data 2 Gn 2 Gn Gn 8 Gn 6 Gn 4 GREEN Data 2 Bn 4 Bn 2 Bn 6 Bn 8 DALSA 03-032-10211-03 9/27/2007...
Page 22
9. The maximum line rate for SOT 60 for the 80 model is greater than the 60 model as a result of the different readout clocking scheme 10. Time multiplexing (CLM 9 and 10) is not supported in all frame grabbers. DALSA 03-032-10211-03 9/27/2007...
The following parameter conventions are used in the manual: = integer value = real number = member of a set = string = tap id = pixel column number = pixel row number Example: to return the current camera settings: gcp <CR> DALSA 03-032-10211-03 9/27/2007...
Only one copy of this setting is saved in the camera (rather than with each setting). Using the lfs (load factory settings) command, the cable length will be set to the factory default of 100. The cable parameter is a relational value. Increase the value for DALSA 03-032-10211-03 9/27/2007...
0-1:0-1 get command log get camera model get camera parameters get camera serial get camera version get values get fpn coeff get help get input lut get line 1-2048:1-2048 DALSA 03-032-10211-03 9/27/2007...
Page 26
1-32362 set system gain 0-0:0-65535 set set number set upper threshold 0-4095 set video mode 0-10 update gain reference verify temperature verify voltage write FPN coefficients write input lut write PRNU coefficients write user settings DALSA 03-032-10211-03 9/27/2007...
Sensor Readout Direction (Mirroring Mode) Purpose: Selects the camera’s horizontal readout direction. Syntax: smm i Syntax Elements: Direction of sensor readout 0 = Left to right = 1 to n 1 = Right to left = n to 1 DALSA 03-032-10211-03 9/27/2007...
• To obtain the current data mode, use the command gcp or get clm. • The bit patterns are defined by the DALSA Camera Link Roadmap and the Camera Link Standard. Example: clm 5 Setting the Camera’s Pixel Rate (Throughput)
Syntax: scl s Syntax Elements: rgb = adjust all colors (red, green, and blue). Power on setting. r = adjust red DALSA 03-032-10211-03 9/27/2007...
Page 30
Column end. Must be greater than the pixel start number in a range from 1 to sensor resolution. Notes: To return the current region of interest, use the commands gcp or get roi. Related Commands ccg, gl, gla, ccf, ccp, cpa, els DALSA 03-032-10211-03 9/27/2007...
Each color may have a different exposure time. External Internal Each color may have a different exposure time. Internal None All colors share the same exposure time. Note: When setting the camera to external signal modes, EXSYNC and/or PRIN must be supplied. DALSA 03-032-10211-03 9/27/2007...
Piranha Color Camera User’s Manual Exposure Modes in Detail DALSA 03-032-10211-03 9/27/2007...
Page 33
Desired exposure time in µs. Allowable range is 5.0 to 9997.000.0µs. Notes: To read the current exposure time, use the command gcp or get set. The ssf and set commands will "push" each other when set. Related Commands: sem, ssf DALSA 03-032-10211-03 9/27/2007...
As the object travels along the web, the object passes the three color lines at different points in time. As a result, the camera uses spatial correction to reconstruct the image. The Piranha Color sensor uses DALSA’s proprietary design to minimize the center to center spacing to 30 µm (4k) or 42 µm (2k).
Page 35
In the above case, the Line Delay is 3. In general, Inter-array spacing (30 µm or 42 µm) Line Delay = ----------------------------------------------------- Step of encoder (µm) x magnification DALSA 03-032-10211-03 9/27/2007...
Averaging reduces the pixel noise and decreases the horizontal resolution. The charge collected in adjacent pixels is averaged together. Syntax: sah i Syntax Elements: The number of horizontal pixels to average. Available values are 1 (factory setting) and 2. DALSA 03-032-10211-03 9/27/2007...
All of these elements are user programmable. Figure 7: Signal Processing Chain Analog Processing Digital Processing analog video digital video digital video analog analog digital system background background PRNU background offset gain addition gain addition addition coefficients subtract sag,ccg ccp,cpa digital offset coefficients DALSA 03-032-10211-03 9/27/2007...
For example, if the analog gain is calibrated to an average of 3,000 DN using “CCG 2 0 3000” while SSB is 100, the average video output will be 2,900 DN not 3,000 DN. This applies to: CCG: calibrate analog gain (SAG) or system gain (SSG) DALSA 03-032-10211-03 9/27/2007...
C2 = (-0.15 x 4096) = -614 C3 = 0.8 x 4096 = 3276 OK>scl RGB OK>scc 100 1024 -614 3276 3.9 Camera Selection Variables for details on commands that should be set before performing any analog or digital adjustments. DALSA 03-032-10211-03 9/27/2007...
1 = This algorithm adjusts analog gain so that 8% to 13% of tap region of interest (ROI) pixels are above the specified target value. Algorithm One 10% Above Target Before Calibration 2 = This algorithm adjusts analog gain so that the average pixel value in tap’s DALSA 03-032-10211-03 9/27/2007...
Page 41
Tap value. Use 0 for all taps. Color selection limits the taps that may be selected by this command. See scl for further information. Calculation target value in a range from 1024 to 4055DN (12 bit LSB). DALSA 03-032-10211-03 9/27/2007...
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.
The analog gain should be adjusted for the expected operating conditions. The ratio of the brightest to darkest pixel in a tap should be less than 3 to 1, where: Brightest Pixel (per tap) 3> Darkest Pixel (per tap) DALSA 03-032-10211-03 9/27/2007...
. If the signal level is too low, increase your light level, adjust the analog gain ( ) or use the automated algorithm ccg i 0 i DALSA recommends a target value of about 80% of saturation. If you change the gain, FPN coefficients should be recalculated. 3. Issue the command . The camera will respond with OK>( if no error occurs).
Page 45
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 DALSA 03-032-10211-03 9/27/2007...
Page 46
• Calibrate FPN before calibrating PRNU. If you are not performing FPN calibration then issue the (reset pixel coefficients) command and set the (set digital offset) value so that the output is near zero under dark. DALSA 03-032-10211-03 9/27/2007...
Page 47
1024 10000 Setting a range of Pixel PRNU Coefficients Purpose: Sets a range of pixel PRNU coefficients. Syntax: spr i1 i2 i3 Syntax Elements: The first pixel number of the range. The last pixel number of the range. DALSA 03-032-10211-03 9/27/2007...
Page 48
Syntax Elements: The pixel number to read in a range from 1 to sensor pixel count. Notes: Before sending this command, use the scl command to select the color you want to adjust. Example: gpc 10 DALSA 03-032-10211-03 9/27/2007...
You should try to make your darkest pixel in the scene equal to zero. Syntax: ssb t i Syntax Elements: Tap selection. Allowable range is 1 to 4 depending on color selected, or 0 for all taps. Subtracted value in a range in DN from 0 to 4095. DALSA 03-032-10211-03 9/27/2007...
Page 50
Tap selection. 0 for all taps. Color selection limits the taps that may be selected. See the scl command for details. Background add values. The range is from 0 to 4095. Related Commands: ssg, scl Example: sab 1 25 DALSA 03-032-10211-03 9/27/2007...
Look-Up Table (LUT) has been implemented in the FPGA for each tap immediately after the ADC. The LUT adds a signed value (-256 to +255) indexed by the 10 MSB of the input value. DALSA 03-032-10211-03 9/27/2007...
Page 52
Enables or disables the use of the input look-up tables for the correction of the analog chain non-linearity. Syntax: eil flag Syntax Elements: Disable Enable Notes: Coefficients must be created first with the cil command. Setting saved with the wfs and wus commands. Example: DALSA 03-032-10211-03 9/27/2007...
To load the user settings from non-volatile memory, use the command lus. To write and load the LUTs, use the wil and lil commands, respectively. DALSA 03-032-10211-03 9/27/2007...
Before issuing this command, select the set you wish to load with the SSN command 0 = Factory set 1 to 4 = User sets 5 = Selects transfer from PC Unlike LFS, LUS only restores the settings and not the FPN, PRNU, and LUT. DALSA 03-032-10211-03 9/27/2007...
Page 55
LUT would be 4007 / 4 = 1001.75. If the LUT were enabled, then the value at index 1001 (zero based) in the LUT would be added to the value coming out of the A/D converter. DALSA 03-032-10211-03 9/27/2007...
Page 56
Provided so that user can generate their own coefficients to File send to the camera Binary file ((2 bytes, LSB first) x (number of pixels)) x (3 colors – red, green, blue) 32 bytes reserved 2 byte CRC-16 of previous bytes DALSA 03-032-10211-03 9/27/2007...
Page 57
0x5c64, 0x4c45, 0x3ca2, 0x2c83, 0x1ce0, 0x0cc1, 0xef1f, 0xff3e, 0xcf5d, 0xdf7c, 0xaf9b, 0xbfba, 0x8fd9, 0x9ff8, 0x6e17, 0x7e36, 0x4e55, 0x5e74, 0x2e93, 0x3eb2, 0x0ed1, 0x1ef0 unsigned int CalcCrc(unsigned char *ptr, // pointer to buffer to process unsigned int count) // number of bytes in buffer DALSA 03-032-10211-03 9/27/2007...
Page 58
Format of PRNU PC Provided so that user can generate their own coefficients to File send to the camera Binary file ((2 bytes, LSB first) x (number of pixels)) x (3 colors – red, green, blue) 32 bytes reserved DALSA 03-032-10211-03 9/27/2007...
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. Syntax: els i DALSA 03-032-10211-03 9/27/2007...
You must first select the color or colors you want to adjust using the scl command. RGB: all outputs R: red output G: green output B: blue output To change just the white (luminance) value, first change all DALSA 03-032-10211-03 9/27/2007...
Page 61
8 pixels of 0x00 followed by 8 pixels of 0xFF on all colors, repeating DC value FPN demo PRNU demo All 4095 (to get FPN) All 2048 (to get PRNU) Notes: Example: svm 1 Examples of the horizontal ramp test pattern (svm 1): PC-30-02K80 DALSA 03-032-10211-03 9/27/2007...
1 to n (sensor resolution), where n = 2048 or 4086. ≤ Notes: If x2 x1 then x2 is forced to be x1. Values returned are in 12-bit DN. Related Commands Example: gl 10 20 DALSA 03-032-10211-03 9/27/2007...
The camera allows you to send the (verify temperature) command while it is in this state. 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 DALSA 03-032-10211-03 9/27/2007...
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: DALSA 03-032-10211-03 9/27/2007...
Page 65
SYNC Frequency [Hz]: 10498.7 Exposure Time [uSec]: 95.25 CCD Direction: Internal/Forward Horizontal Averaging: Camera Link Mode: 16, Medium, 1 taps, 12 bits, no time MUX Cable Parameter: Output Throughput: Spatial Alignment Mirroring Mode: 0, left to right DALSA 03-032-10211-03 9/27/2007...
Page 66
Returns the FPN pixel coefficients for the pixel range indicated. x1 = Pixel start number x2= Pixel end number get ccp x1 x2 Returns the PRNU pixel coefficients for the pixel range indicated. x1 = Pixel start number x2= Pixel end number get clm DALSA 03-032-10211-03 9/27/2007...
Page 67
1 to 4 for individual tap selection, depending on camera model. get sag Returns the analog gain in dB for the tap indicated t = Tap value. 0 for all taps or 1 to 4 for individual tap selection. get sah Returns the horizontal averaging factor. DALSA 03-032-10211-03 9/27/2007...
Page 68
Returns the current background subtract value. t = Tap value. 0 for all taps or 1 to 4 for individual tap selection depending on camera model. get ssf Returns the current line rate in Hz. Only available while DALSA 03-032-10211-03 9/27/2007...
Page 69
Returns the camera’s supply voltage. get wfc Returns the current coefficient set number. get wil Returns the current coefficient set number. get wpc Returns the current coefficient set number. get wus Returns the current coefficient set number. DALSA 03-032-10211-03 9/27/2007...
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, http://mv.dalsa.com/, provides an introduction to this potentially complicated issue. See “Radiometry and Photo Responsivity”...
Page 72
Piranha Color Camera User’s Manual lens surface to the second focal point. The object distance (OD) is the distance from the first principal point to the object. DALSA 03-032-10211-03 9/27/2007...
Page 73
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 µm 45 mm — — OD=450 mm (0.450 m) 100 µm DALSA 03-032-10211-03 9/27/2007...
Page 74
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...
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 DALSA 03-032-10211-03 9/27/2007...
Wipe the window carefully and slowly. When cleaning long linear sensors, it may be easier to wipe along the width (i.e. as opposed to the length) of the sensor. DALSA 03-032-10211-03 9/27/2007...
Verify Voltage To check the camera’s input voltage, use the vv command. The supplied voltage must be within specification. Erratic behavior may occur at low voltages. Voltages will be reduced through the use of lengthy power supple cables. DALSA 03-032-10211-03 9/27/2007...
The goal is to prevent solvent from evaporating from the window surface, as this will end up leaving residue and streaking behind. Repeat steps 3-5 using a clean tissue until the entire window has been cleaned. DALSA 03-032-10211-03 9/27/2007...
Page 79
Piranha Color Camera User’s Manual Blow off any adhering fibers or particles using dry, filtered compressed air. DALSA 03-032-10211-03 9/27/2007...
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...
Selects the CameraLink mode. calculate PRNU i1 i2 Performs PRNU calibration according algorithm to the selected algorithm. i1 = The calibration algorithm: 1 = The algorithm first adjusts each DALSA 03-032-10211-03 9/27/2007...
Page 82
= Tap number: 0 for all. The range is modified by the color selected. a1 = Range start address: 0 to 1023. a2 = Range stop address: 0 to 1023. a1 ≤ a2 display pixel coeffs x1 x2 Displays the pixel coefficients in the DALSA 03-032-10211-03 9/27/2007...
Page 83
= Pixel start number x2 = Pixel end number in a range from 1 to n. Where n = 2048 or 4096. DALSA 03-032-10211-03 9/27/2007...
Page 84
= Value to add set analog gain Sets the analog gain in dB. t = tap selection, either 1 or 4 depending on the color selected, or 0 for all taps. f= gain value specified from –10 to DALSA 03-032-10211-03 9/27/2007...
Page 85
6 = External SYNC, internal exposure time set using SET command 7 = Internal line rate, maximum exposure time. Factory setting. set exposure time Sets the exposure time. Refer to the camera help screen (h command) for DALSA 03-032-10211-03 9/27/2007...
Page 86
60% of maximum line rate 1 = Always clears dark; reduces the maximum line rate 2 = Off set spatial alignment Set line delay between colors. 0 to 6. set subtract background Subtract this value from the output signal. DALSA 03-032-10211-03 9/27/2007...
Page 87
Write current FPN coefficients to non- volatile memory set previously using the ssn command. write input LUT Write current LUT’s to non-volatile memory set previously using the ssn command. write PRNU coeffs Write current PRNU coefficients to DALSA 03-032-10211-03 9/27/2007...
Description Error 01: Internal Where xx is a code list below. error xx> Only output during power up. Customer should contact Dalsa customer support. Error 02: Command is not valid (or not available at the current access level). Unrecognized command>...
Page 89
WUS. Also present during manufacturing before settings saved for first time. Error 08: Unable to Cannot calibrate a tap that is not part of the end of line statistics. calibrate - tap outside ROI> DALSA 03-032-10211-03 9/27/2007...
Page 90
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...
Enabling blue correction Syntax: ebc i Syntax Elements: 0: disable 1: enable Notes This value is saved using the wus command. This value may be viewed on the gcp screen or by sending the get ebc command. DALSA 03-032-10211-03 9/27/2007...
Page 92
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...
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 xxxxx 2006 Name and Signature of Hank Helmond authorized person Quality Manager, DALSA Corp. This Declaration corresponds to EN 45 014. DALSA 03-032-10211-03 9/27/2007...
Page 94
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...
-RoHS designation added, including camera model numbers. -SOT 30 parameter removed from the Help screen description, page 25, the Data Ouput section, page 28, and from the list of all available commands, page 81. -"Pending" added to declarations of CE compliance in manual. DALSA 03-032-10211-03 9/27/2007...
Page 96
Piranha Color Camera User’s Manual DALSA 03-032-10211-03 9/27/2007...