Download Teledyne DALSA Piranha HS-XX Series Manual
Transcript
Piranha HS Camera User’s Manual HS-40-04k40 HS-80-04k40-00-R HS-80-08k40-xx-R HS-80-08k80-00-R HS-82-04k80-00-R 08 March 2013 Document number 03-032-20013-04 Piranha HS-xx RoHS User Manual 2 © 2013 Teled yne DALSA. All inform ation provid ed in this m anual is believed to be accurate and reliable. N o responsibility is assum ed by Teled yne DALSA for its use. Teled yne DALSA reserves the right to m ake changes to this inform ation w ithout notice. Reprod uction of this m anual in w hole or in part, by any m eans, is prohibited w ithout prior perm ission having been obtained from Teled yne DALSA. About Teledyne Technologies and Teledyne D ALSA, Inc. Teled yne Technologies is a lead ing provid er of sophisticated electronic subsystem s, instrum entation and com m unication prod ucts, engin eered system s, aerospace engines, and energy and pow er generation system s. Teled yne Technologies’ operations are prim arily located in the United States, the United Kingd om and Mexico. For m ore inform ation, visit Teled yne Technologies’ w ebsite at w w w .teled y ne.com . Teled yne DALSA, a Teled yne Technologies com pany, is an international lead er in high perform ance d igital im aging and sem icond uctors w ith approxim ately 1,000 em ployees w orld w id e, head quartered in Waterloo, Ontario, Canad a. Established in 1980, the co m pany d esigns, d evelops, m anufactures and m arkets d igital im aging prod ucts and solutions, in ad d ition to provid ing MEMS prod ucts and services. For m ore inform ation, visit Teled yne DALSA’s w ebsite at w w w .teled yned alsa.com . Support For further inform ation not includ ed in this m anual, or for inform ation on Teled yne DALSA’s extensive line of im age sensing prod ucts, please contact: N orth America Europe Asia Pacific 605 McMurray Rd Waterloo, ON N 2V 2E9 Canad a Teled yne DALSA Gm bH Felix-Wankel-Strasse 1 D-82152 Krailling (Munich) Germ any Ikebukuro East 13F 3-4-3 H igashi-Ikebukuro Toshim a-ku, Tokyo 170-0013 Japan Tel: 519 886 6000 Fax: 519 886 8023 w w w .teled yned alsa.com sales.am ericas@teled yned alsa.com support@teled yned alsa.com 03-032-20013-04 Tel: +49 - 89 - 89545730 Fax: +49 - 89 – 895457346 Tel: 81 3 5960 6353 Fax: 81 3 5960 6354 w w w .teled yned alsa.com w w w .teled yned alsa.com sales.europe@teled yned alsa.com support@teled yned alsa.com sales.asia@teled yned alsa.com support@teled yned alsa.com Teledyne DALSA Piranha HS-xx RoHS User Manual 3 Contents Introduction to the Piranha HS-xx Camera ______________________________________ 5 1.1 Camera Highlights ....................................................................................................................................................... 5 1.2 Camera Performance Specifications............................................................................................................................. 7 1.3 Image Sensor ............................................................................................................................................................... 14 1.4 Responsivity ................................................................................................................................................................. 15 Camera Hardware Interface ________________________________________________ 16 2.1 Installation Overview ................................................................................................................................................... 16 2.2 Input/Output Connectors and LED ............................................................................................................................... 16 2.2.1 LED Status Indicator............................................................................................................................... 18 2.2.2 Power Connector .................................................................................................................................... 18 2.2.3 Camera Link Data Connector ................................................................................................................. 19 2.3 Camera Link Video Timing .......................................................................................................................................... 21 Optical and Mechanical Considerations________________________________________ 24 3.1 Mechanical Interface .................................................................................................................................................... 24 3.2 Lens Mounts ................................................................................................................................................................. 25 3.3 Optical Interface ........................................................................................................................................................... 26 Software Interface: How to Control the Camera __________________________________ 28 4.1 First Power Up Camera Settings .................................................................................................................................. 32 4.2 Command Categories ................................................................................................................................................... 33 4.3 Sensor Output Format ................................................................................................................................................. 34 4.3.1 Selecting TDI or Area Mode Operation .................................................................................................. 34 4.2 Selecting the Number of CCD Integration Stages...................................................................................... 35 4.3.3 Setting the Camera’s CCD Shift Direction .............................................................................................. 36 4.3.4 Increasing Sensitivity with Binning ........................................................................................................ 37 4.3.5 Exposure Mode and Line/Frame Rate .................................................................................................... 39 4.4 Camera Output Format ................................................................................................................................................ 42 4.4.1 How to Configure Camera Output .......................................................................................................... 42 4.4.2 Setting the Camera Link Mode............................................................................................................... 47 4.4.3 Setting the Camera Throughput............................................................................................................. 48 4.4.4 Setting the Pixel Readout Direction ....................................................................................................... 48 4.4.5 Setting a Pretrigger ............................................................................................................................... 50 4.5 Data Processing ........................................................................................................................................................... 50 Teledyne DALSA 03-032-20013-04 4 Piranha HS-xx RoHS User Manual 4.5.1 Setting a Region of Interest ................................................................................................................... 50 4.5.2 Analog and Digital Signal Processing Chain ........................................................................................ 51 4.5.3 End-of-line Sequence ............................................................................................................................. 66 4.6 Saving and Restoring Settings ..................................................................................................................................... 68 4.6.1 Saving and Restoring Factory and User Settings ................................................................................... 68 4.6.2 Saving and Restoring PRNU and FPN Coefficients ................................................................................ 69 4.6.3 Rebooting the Camera ........................................................................................................................... 71 4.7 Diagnostics ................................................................................................................................................................... 72 4.7.1 Generating a Test Pattern ...................................................................................................................... 72 4.7.2 Returning Video Information ................................................................................................................. 74 4.7.3 Temperature Measurement.................................................................................................................... 75 4.7.4 Voltage Measurement ............................................................................................................................ 76 4.7.5 Camera Frequency Measurement ........................................................................................................... 76 4.7.6 Returning Camera Settings .................................................................................................................... 76 Error Handling and Command List ___________________________________________ 83 Error Handling ................................................................................................................................................................... 83 Commands: Quick Reference ............................................................................................................................................. 85 Camera Link™ Reference, Timing, and Configuration Table _________________________ 95 Camera Link Bit Definitions .............................................................................................................................................. 97 Camera Link Configuration Tables .................................................................................................................................... 97 EMC Declaration of Conformity _____________________________________________ 106 Troubleshooting ________________________________________________________ 107 Common Solutions ............................................................................................................................................................. 107 Troubleshooting Using the Serial Interface ....................................................................................................................... 108 Specific Solutions ............................................................................................................................................................... 109 CCD Handling Instructions _________________________________________________ 112 Electrostatic Discharge and the CCD Sensor ....................................................................................................................... 112 Protecting Against Dust, Oil and Scratches ........................................................................................................................ 112 Cleaning the Sensor Window ............................................................................................................................................. 113 Revision History ________________________________________________________ 114 Index _______________________________________________________________ 115 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 5 1 Introduction to the Piranha HS-xx Camera 1.1 Camera Highlights Features 4096 or 8192 pixels, 7 µm x 7 µm or 14 µm x 14 µm (H S-82) pixel pitch, 90% fill factor 4 or 8 taps, bid irectional TDI Up to 160, 320, or 640 m egapixels/ second throu ghpu t Greater than 100 kH z line rate (H S-82 m od el) 100x antibloom ing Broad band responsivity of 1170 DN (nJ/ cm ) 6 ind epend ently stage-selectable Tim e Delay and Integration (TDI) im aging regions for rem arkable u ser-controlled sensitivity CE com pliant The follow ing m od els are RoH S com pliant: H S-80-04k40, H S-80-08k40, H S-80-08k80, and H S-82-04k80 2 Programmability Teledyne DALSA Serial interface (ASCII, 9600 bau d , ad ju stable to 19200, 57600, 115200), throu gh Cam era Link™ Program m able gain, offset, fram e rates, trigger m od e, test pattern ou tpu t, and cam era d iagnostics Mirroring and d irection control Selectable Area or TDI Mod e of operation. Area Mod e facilitates cam era alignm ent and focu sing. Area m od e can also be u sed for regu lar operation 03-032-20013-04 Piranha HS-xx RoHS User Manual 6 Selectable pixel size (binning) Flat-field correction—m inim izes lens vignetting, non-u niform lighting, and sensor FPN and PRN U Selectable Base, Med iu m , or Fu ll Cam era Link configu ration, d epend ing on cam era m od el Description The Piranha H S cam era fam ily represent Teled yne DALSA's latest generation of high sensitivity, TDI based cam eras. The Piranha H S fam ily m axim izes system throu ghpu t and provid es the largest nu m ber of pixels available in a TDI cam era. All cam eras are capable of bi-d irectionality w ith u p to 96 stages of integration. Applications The Piranha H S fam ily is id eal for applications requ iring high speed , su perior im ag e qu ality, and high responsivity. These applications inclu d e: Postal sorting (flats) Flat panel d isplay inspection Printed circu it board inspection H igh perform ance d ocu m ent scanning Large w eb inspection Low -light applications Models The Piranha H S-xx cam eras are available in the follow ing m od el configu rations: Table 1: Piranha HS-xx Camera Models Overview Model Number Description H S-40-04k40 4k resolution, program m able 2 or 4 taps, up to 160 m egapixels/ second through put, 40/ 80MH z strobe rate, Base or Med ium Cam era Link configuration H S-80-04k40 4k resolution, program m able 4 or 8 taps, up to 320 m egapixels/ second throughput, 40/ 80MH z strobe rate, Med ium or Full Cam era Link configuration. RoH S com pliant. H S-80-08k40 8k resolution, program m able 4 or 8 taps, up to 320 m egapixels/ second throughput, 40/ 80MH z strobe rate, Med ium or Full Cam era Link configuration. RoH S com pliant. H S-80-08k80 8k resolution, program m able 4 or 8 taps, up to 640 m egapixels/ second throughput, 40/ 80MH z strobe rate, Med ium or Full Cam era Link configuration. RoH S com pliant. H S-82-04k80 4k resolution, program m able 4 or 8 taps, up to 640 m egapixels / second throughput, 40/ 80MH z strobe rate, over 100 kH z line rate, Med ium or Full Cam era Link configuration. RoH S com pliant. Throu ghou t the m anu al, the cam eras are refered to as the Piranha H S-xx cam era fam ily u nless a section is valid to a specific m od el only w here the cam era’s m od el nu m ber is u sed . 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 7 1.2 Camera Performance Specifications Features and Specifications Model Im ager Form at HS-40-04k40 HS-80-04k-40 HS-80-08k40 HS-80-08k80 Bid irectional TDI —all m od els HS-82-04k80 Resolution 4096 pixels 4096 8196 8196 4096 x 48 Pixel Fill Factor 90 % 100 % 90 % 100 % 100 % Pixel Size 7x7 µm 7x7 µm 7x7 µm 7x7 µm 14 x 14 µm Output Form at (# of Cam era Link taps) 2 or 4 4 or 8 4 or 8 4 or 8 4 or 8 16, 32, 48, 64, 80, 96 — all m od els Stage Selection 100 x — all m od els Antibloom ing CCD Shift Direction Change 0.2 second s— all m od els Optical Interface Model Back Focal Distance F Mount M42x1 Mount M72 Mount HS-40-04k40 HS-80-04k-40 HS-80-08k40 HS-80-08k80 HS-82-04k80 46.50 ± 0.18 m m 6.56 ± 0.25 m m — — 6.56 ± 0.25 — — 6.56 ± 0.25 — — 6.56 ± 0.25 — — 6.56 ± 0.25 M72 x 0.75 M72 x 0.75 Sensor Alignm ent (aligned to sid es of cam era) Lens Mount H ole 1 ± 0.05 m m x ± 0.05 m m y ± 0.25 m m z ± 0.2 ° z 62 m m hole. M42 or F m ount ad apter available. M72 x 0.75 M72 x 0.75 Mechanical Interface Model Cam era Size HS-40-04k40 85 (l) x 85 (h) x 55.4 (w ) m m HS-80-04k-40 80 (l) x 150 (h) x 65 (w ) HS-80-08k40 HS-80-08k80 80 (l) x 150 80 (l) x 150 (h) x (h) x 65 (w ) 65 (w ) HS-82-04k80 80 (l) x 150 (h) x 65 (w ) Mass < 500 g < 800 g < 800 g < 800 g Connectors < 800 g 6 pin m ale H irose, pow er MDR26 fem ale, d ata Electrical Interface Model Input Voltage Pow er Dissipation 2 HS-40-04k40 HS-80-04k40 HS-80-08k40 HS-80-08k80 + 12 to + 15 ± 5 % Volts DC — all m od els HS-82-04k80 10 W 19 W < 20 W Teledyne DALSA 19 W 8 or 12 bit user selectable bits — all m od els Bit Wid th Output Data Configuration 14.4 W 0 to 50 °C — all m od els Operating 3 Tem perature Base or Med ium Cam era Link Med ium or Full Cam era Link Med ium or Med ium or Full Full Cam era Cam era Link Link Med ium or Full Cam era Link 03-032-20013-04 Piranha HS-xx RoHS User Manual 8 Operating Ranges Model Minim um Line Rate HS-40-04k40 HS-80-04k40 HS-80-08k40 HS-80-08k80 3.5 kH z — all m od els HS-82-04k80 Maxim um Line Rate 36.563 kH z 68.610 kH z 34.305 kH z Throughput selectable 160 or 320 Mpix/ sec selectable 80, selectable 160, 320 160, or 320 or 640 Mpix/ sec Mpix/ sec selectable 80 or 160 Mpix/ sec 68.610 110 kH z selectable 320 or 640 Mpix/ sec -10 to +10 d B — all m od els Gain 4.3 second s — all m od els Calibration Tim e Performance Table 2: Camera Performance Specifications Gain -10 dB Gain 0 dB Min Typ Max Min Typ Max Gain +10 dB Min Typ Max D ynamic Range H S-40-04k40 313 1140 208 357 63 114 H S-80-04k40 312 1190 166 357 56 119 H S-80-08k40 312 1920 312 607 100 192 H S-80-08k80 312 1190 166 357 56 119 H S-82-04k80 312 1190 166 357 56 119 Random N oise D N rms H S-40-04k40 0.22 0.8 0.70 1.2 2.20 4 H S-80-04k40 0.22 0.8 0.70 1.5 2.1 4.5 H S-80-08k40 0.16 0.8 0.41 0.8 1.3 2.5 H S-80-08k80 0.22 0.8 0.70 1.5 2.1 4.5 H S-82-04k80 0.22 0.8 0.7 1.5 2.1 4.5 2 SEE nJ/cm H S-40-04k40 2.13 0.68 0.21 H S-80-04k40 2.13 0.68 0.21 H S-80-08k40 2.13 0.65 0.21 H S-80-08k80 2.13 0.68 0.21 H S-82-04k80 2.13 0.68 0.21 2 N EE pJ/cm H S-40-04k40 1.9 6.8 1.9 3.2 1.9 3.4 H S-80-04k40 1.9 6.8 1.9 4.1 1.8 3.8 H S-80-08k40 1.1 6.8 1.1 2.2 1.1 2.1 H S-80-08k80 1.9 6.8 1.9 4.1 1.8 3.8 H S-82-04k80 1.9 6.8 1.9 4.1 1.8 3.8 Analog Broadband 2) Responsivity (D N /nJ/ cm H S-40-04k40 117 352 370 389 1170 H S-80-04k40 117 352 370 389 1170 H S-80-08k40 117 352 370 389 1170 H S-80-08k80 117 352 370 389 1170 H S-82-04k80 117 352 370 389 1170 0.5 2 FPN D N p-p w ith correction H S-40-04k40 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual Performance 9 Gain -10 dB Gain 0 dB Gain +10 dB H S-80-04k40 0.5 2 H S-80-08k40 0.5 2 H S-80-08k80 0.5 2 H S-82-04k80 0.5 2 FPN D N p-p w /o correction H S-40-04k40 3 2 6 H S-80-04k40 1 3 4.5 3 9 H S-80-08k40 3 3 3 9 H S-80-08k80 3 4.5 3 9 H S-82-04k80 3 4.5 3 9 PRN U D N p-p w ith correction H S-40-04k40 3 5.5 H S-80-04k40 4.0 8 H S-80-08k40 3.2 5.5 H S-80-08k80 4.0 8 H S-82-04k80 4.0 8 5 PRN U % w /o correction H S-40-04k40 4 18 12 10 25 H S-80-04k40 22 22 10 25 H S-80-08k40 22 22 7 25 H S-80-08k80 22 22 10 25 H S-82-04k80 22 22 10 25 Saturation Output Amplitude DN 255 typ D C Offset DN 3 m in 10 10 5 typ 6 m ax Test conditions for all models, unless otherwise noted: TDI m od e of operation. These specifications are not gu aranteed for area m od e of operation. Line Rate: 10 kH z. N om inal Gain setting. Light Sou rce: Broad band Qu artz H alogen, 3250 k, w ith 700 nm IR cu toff filter installed . All Max specifications are valid over a 0-50 °C tem peratu re range. All Typ specifications are m easu red at 25 °C. All valu es are referenced at 8-bit. 1. Maxim u m u sing highest Cam era Link m od e and m axim u m line rate. 2. Measu red at the front plate. Teledyne DALSA 03-032-20013-04 10 Piranha HS-xx RoHS User Manual Figure 1: PRNU Uncorrected (pk-pk) Forward or Reverse @ 10 kHz line rate and 0 dB Gain over Temperature 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 11 Figure 2: FPN Forward or Reverse @ 10 kHz line rate and 0 dB Gain over Temperature Teledyne DALSA 03-032-20013-04 12 Piranha HS-xx RoHS User Manual Figure 3: Random Noise Forward or Reverse @ 10 kHz line rate and 0 dB Gain over Temperature 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 13 Figure 4: DC Offset Forward or Reverse @ 10 kHz line rate and 0 dB Gain over Temperature Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 14 1.3 Image Sensor The cam era u ses Teled yne DALSA’s new est bid irectional TDI sensors. The cam era can be configu red to read ou t in either Forw ard or Reverse CCD shift d irection. Read ou t d irection is controlled by the softw are com m and scd. Figure 5: 4 Tap Sensor Block Diagram (HS-40-04k40) 1R 2R 4R 3R Reverse CCD Readout Shift Register TDI Colum n 1 TDI Column 2 80 STG 64 STG TDI Column 4095 96 STG TDI Imaging Region 7µm x 7µm pixels 96 TDI Rows 48 STG 32 STG TDI Column 4096 6 Isolation Rows 16 STG 61/4 Isolation Rows Forward CCD Readout Shift Register 1F 2F 3F 4F Figure 6: 16 Tap Sensor Block Diagram (HS-80-04k40, HS-80-08k80) Camera Link Tap T1 T2 T4 T3 T5 T6 T7 T8 1R 2R 3R 4R 5R 6R 7R 8R 9R 10R 11R12R 13R14R 15R16R CCD Tap Reverse CCD Readout Shift Register 64 STG TDI Imaging Region 7µm x 7µm pixels 96 TDI Rows 48 STG 32 STG TDI Column 8192 TDI Column 1 TDI Colum n 2 80 STG TDI Column 8191 6 Isolation Rows 96 STG 16 STG 61/4 Isolation Rows Forward CCD Readout Shift Register CCD Tap 1F 2F 3F 4F 5F 6F 7F 8F 9F 10F 11F12F 13F14F15F16F Camera Link Tap T1 03-032-20013-04 T2 T3 T4 T5 T6 T7 T8 Teledyne DALSA Piranha HS-xx RoHS User Manual 15 1.4 Responsivity Figure 7: Piranha HS Analog Responsivity Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 16 2 Camera Hardware Interface 2.1 Installation Overview When installing you r cam era, you shou ld take these steps: This installation overview assumes you have not installed any system components yet. 1. Pow er d ow n all equ ipm ent. 2. Follow the m anu factu rer’s instru ctions to install the fram egrabber (if applicable). Be su re to observe all static precau tions. 3. Install any necessary im aging softw are. 4. Before connecting pow er to the cam era, test all pow er su pplies. Ensu re that all the correct voltages are present at the cam era end of the pow er cable. Pow er su pplies m u st m eet the requ irem ents d efined in section 2.2.2 Pow er Connector. 5. Inspect all cables and connectors prior to installation. Do not u se d am aged cables or connectors or the cam era m ay be d am aged . 6. Connect Cam era Link and pow er cables. 7. After connecting cables, apply pow er to the cam era. 8. Check the d iagnostic LED. See 2.2.1 LED Statu s Ind icator for an LED d escription. You m u st also set u p the other com ponents of you r system , inclu d ing light sou rces, cam era m ou nts, host com pu ters, optics, encod ers, and so on. 2.2 Input/Output Connectors and LED The cam era u ses: 03-032-20013-04 A d iagnostic LED for m onitoring the cam era. See LED Statu s Ind icator in section 2.2.1 LED Statu s Ind icator for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual 17 H igh-d ensity 26-pin MDR26 connectors for Cam era Link control signals, d ata signals, and serial com m u nications. Refer to section 2.2.3 Cam era Link Data Connector for d etails. One 6-pin H irose connector for pow er. Refer to section 2.2.2 Pow er Connector for d etails. Figure 8: Piranha HS-xx Input and Output Connectors (4k Models) Camera Link (Base Configuration) Camera Link (Medium Configuration) Diagnostic LED +12VDC to +15 VDC and Ground Figure 9: Piranha HS-xx Input and Output Connectors (8k Models) Diagnostic LED Camera Link (Medium or Full Configuration) Camera Link (Medium or Full Configuration) +12VDC to +15VDC and Ground ! Teledyne DALSA WARNING: It is extremely important that you apply the appropriate voltages to your camera. Incorrect voltages will damage the camera. See 2.2.2 Power Connector for more details. 03-032-20013-04 Piranha HS-xx RoHS User Manual 18 2.2.1 LED Status Indicator The cam era is equ ipped w ith a red / green LED u sed to d isplay the operational statu s of the cam era. The table below su m m arizes the operating states of the cam era and the correspond ing LED states. When m ore than one cond ition is active, the LED ind icates the cond ition w ith the highest priority. Error and w arning states are accom panied by correspond ing m essages fu rther d escribing the cu rrent cam era statu s. Table 3: Diagnostic LED Priority Color of Status LED Meaning 1 Flashing Red Fatal Error. Cam era tem perature is too high and cam era therm al shutd ow n has occurred or a pow er on failure has been d etected . 2 Solid Red Warning. Loss of functionality. 3 Flashing Green Cam era initialization or executing a long com m and (e.g., flat field correction com m and s ccp or ccf) 4 Solid Green Cam era is operation al and functioning correctly. 2.2.2 Power Connector Figure 10: Hirose 6-pin Circular Male—Power Connector Hirose 6-pin Circular Male 6 1 5 2 4 3 Mating Part: HIROSE HR10A-7P-6S Table 4: Hirose Pin Description Pin Description Pin Description 1 Min +12 to Max +15VDC 4 GN D 2 Min +12 to Max +15VDC 5 GN D 3 Min +12 to Max +15VDC 6 GN D The cam era requ ires a single voltage inpu t (+12 to +15VDC). The cam era m eets all perform ance specifications u sing stand ard sw itching pow er su pplies, althou gh w ell regu lated linear su pplies provid e optim u m perform ance. ! WARNING: When setting up the camera’s power supplies follow these guidelines: Apply the appropriate voltages Protect the cam era w ith a fast-blow fuse betw een pow er su pply and cam era. Do not u se the shield on a m u lti-cond u ctor cable for grou nd . Keep lead s as short as possible to red u ce voltage d rop. Use high-qu ality linear su pplies to m inim ize noise. Use an isolated type pow er su pply to prevent LVDS com m on m od e range violation. Note: Camera performance specifications are not guaranteed if your power supply does not meet these requirements. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 19 Teled yne DALSA offers a pow er su pply w ith attached 6’ pow er cable that m eets the Piranha H S cam era’s requ irem ents, bu t it shou ld not be consid ered the only choice. Many high qu ality su pplies are available from other vend ors. 2.2.3 Camera Link Data Connector Figure 11: Camera Link MDR26 Connector MDR26 Female 13 1 26 14 Mating Part : 3M 334-31 series Cable: 3M 14X26-SZLB-XXX-0LC** The Cam era Link interface is im plem ented as a Base, Med iu m or Fu ll Configu ration in the Piranha H S cam eras d epend ing on the m od el nu m ber. The follow ing table su m m arizes the d ifferent configu rations and lists the configu rations available to each Piranha H S m od el nu m ber. Teledyne DALSA Table 5: Camera Link Hardware Configuration Summary for Piranha HS-xx Models Configuration 8 Bit Ports Serializer Number Number of Supported Bit Width of Chips MDR26 Connectors Applicable Camera Models Base A, B, C 28 1 1 H S-40-04k40 Med ium A, B, C, D, E, F 28 2 2 H S-40-04k40 H S-80-08k40 H S-80-08k80 Full A, B, C, D, E, F, G, H 28 3 2 H S-80-08k40 H S-80-08k80 03-032-20013-04 Piranha HS-xx RoHS User Manual 20 Table 6: Camera Link Connector Pinout Medium and Full Configurations Up to an additional 2 Channel Link Chips Camera Right Angle Channel Cable Connector Frame Link Signal Name Grabber Base Configuration One Channel Link Chip + Camera Control + Serial Communication Camera Right Angle Channel Connector Frame Link Signal Grabber 1 1 inner shield Inner Shield 1 1 inner shield 14 14 inner shield Inner Shield 14 14 inner shield 2 25 Y0- PAIR1- 2 25 X0- 15 12 Y0+ PAIR1+ 15 12 X0+ 3 24 Y1- PAIR2- 3 24 X1- 16 11 Y1+ PAIR2+ 16 11 X1+ 4 23 Y2- PAIR3- 4 23 X2- 17 10 Y2+ PAIR3+ 17 10 X2+ 5 22 Yclk- PAIR4- 5 22 Xclk- 18 9 Yclk+ PAIR4+ 18 9 Xclk+ 6 21 Y3- PAIR5- 6 21 X3- 19 8 Y3+ PAIR5+ 19 8 X3+ 7 20 100 ohm PAIR6+ 7 20 SerTC+ 20 7 term inated PAIR6- 20 7 SerTC- 8 19 Z0- PAIR7- 8 19 SerTFG- 21 6 Z0+ PAIR7+ 21 6 SerTFG+ 9 18 Z1- PAIR8- 9 18 CC1- 22 5 Z1+ PAIR8+ 22 5 CC1+ 10 17 Z2- PAIR9+ 10 17 CC2+ 23 4 Z2+ PAIR9- 23 4 CC2- 11 16 Zclk- PAIR10- 11 16 CC3- 24 3 Zclk+ PAIR10+ 24 3 CC3+ 12 15 Z3- PAIR11+ 12 15 CC4+ 25 2 Z3+ PAIR11- 25 2 CC4- 13 13 inner shield Inner Shield 13 13 inner shield 26 26 inner shield Inner Shield 26 26 inner shield Notes: *Exterior Overshield is connected to the shells of the connectors on both end s. **3M part 14X26-SZLB-XXX-0LC is a com plete cable assem bly, includ ing connectors. Unused pairs should be term inated in 100 ohm s at both end s of the cable. Inner shield is connected to signal ground insid e cam era Table 7: Teledyne DALSA Camera Control Configuration Signal Configuration 03-032-20013-04 CC1 EXSYN C CC2 Spare CC3 Forw ard CC4 Spare Teledyne DALSA Piranha HS-xx RoHS User Manual 21 See Append ix B for the com plete Teled yne DALSA Cam era Link configu ration table, and refer to the Teled yne DALSA Web site, Know led ge Center application notes, for the official Cam era Link d ocu m ents. Input Signals, Camera Link The cam era accepts control inpu ts throu gh the Cam era Link MDR26F connector. i The camera ships in internal sync, internal programmed integration (exposure mode 7) TDI Mode. EXSYNC (Triggers Frame Readout) Fram e rate can be set internally u sing the serial interface. The external control signal EXSYN C is optional and enabled throu gh the serial interface. This cam era u ses the falling edge of EXSYN C to trigger pixel read ou t. Section Exposu re Mod e and Line/ Fram e Rate for d etails on how to set fram e tim es, exposu re tim es, and cam era m od es. Direction Control You control the CCD shift d irection throu gh the serial interface. With the softw are com m and , scd, you d eterm ine w hether the d irection control is set via softw are control or via the Cam era Link control signal on CC3. Refer to section Setting the Cam era’s CCD Shift Direction for d etails. Output Signals, Camera Link IMPORTANT: These signals ind icate w hen d ata is valid , allow ing you to clock the d ata from the cam era to you r acqu isition system . These signals are part of the Cam era Link configu ration and you shou ld refer to the Teled yne DALSA Cam era Link Im plem entation Road Map, available at Know led ge Center, for the stand ard location of these signals. This camera’s data should be sampled on the rising edge of STROBE. Clocking Signal Indicates LVAL (high) Outputting valid line DVAL (high) Valid d ata STROBE (rising ed ge) Valid d ata FVAL (high) Outputting valid fram e The cam era internally d igitizes 12 bits and ou tpu ts 8 MSB or all 12 bits d epend ing on the cam era’s Cam era Link operating m od e. Refer to 4.4.2 Setting the Cam era Link Mod e for d etails. For a Cam era Link reference refer to Append ix A on page 114. 2.3 Camera Link Video Timing The Piranha H S-xx cam era has tw o d ifferent read ou t tim es. The first read ou t tim e is the CCD Read ou t w here the cam era pixels are read ou t into the cam era’s linestore. The second read ou t is the linestore read ou t w here the linestore pixels are read ou t to you r acqu isition system . The cam era’s m inim u m read ou t tim e is d epend ant on w hich of these tw o read ou t tim es are greater w here the greater read ou t tim e w ill be the cam era’s m inim u m read ou t tim e. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 22 The figu re below illu strates cam era tim ing w hen the CCD rea d ou t is greater than the linestore read ou t. Figure 12: Piranha HS-xx TDI Mode Timing (CCD Limited) CCD Readout EXSYNC Frame Overhead VTrans Time HCCD Time N+1 Linestore Start Overhead Linestore End Overhead oLVal N Linestore Readout The follow ing figu re illu strates cam era tim ing w hen the linestore read ou t is greater than the CCD read ou t. Figure 13: Piranha HS-xx TDI Mode Timing (Linestore Limited) CCD Readout EXSYNC Frame Overhead VTrans Time HCCD Time N Linestore Start Overhead oLVal Linestore End Overhead N Linestore Readout Table 8: Piranha HS-xx Timing Values Symbol Time HCCD Frequency HCCD Pixels/Tap 03-032-20013-04 40MHz (4K40, 8K80) 20MHz (8K40) 1024 (4k camera) 512 (8k camera) Frame Overhead 4 HCCD Frequency VTransTime 33 HCCD Frequency HCCD Read Overhead HTime HS 4k: 35 pixels, HS 8k: 34 pixels CCD Readout Time CCDReadoutTime = FrameOverhead + HTime + VTransTime x Vertical Binning Factor HTime= HCCD Read Overhead + HCCD Pixels/Tap HCCD Frequency Teledyne DALSA Piranha HS-xx RoHS User Manual 23 Symbol Time HCCD Taps 4 (4K40) 16 (8Kxx) 15 clocks Linestore Start Overhead Linestore End Overhead Linestore Readout Time Horizontal Binning Factor Vertical Binning Factor Vertical Readout Rows # of Camera Link Taps Throughput 23 clocks HCCD Pixels/Tap x HCCD Taps # Camera Link Taps x Horizontal Binning Factor +Linestore Start Overhead +Linestore End Overhead x # Camera Link Taps Throughput (MHz) Value set with sbh command Value set with sbv command Stage selection set with stg command Value set with the clm command Value set with sot command Figure 14: Piranha HS-xs Area Mode Timing (CCD Limited) EXSYNC IMPORTANT: This camera uses the falling edge of EXSYNC to trigger line readout, unlike previous DALSA cameras, which used the rising edge. User FVAL Internal HTime User LVAL Figure 15: Piranha HS-xx Area Mode Timing (Linestore Limited) EXSYNC User FVAL Internal HTime User LVAL Table 9: Piranha Input and Output Symbol Time CCD Readout Time (Area Mode) Vertical readout rows + ISORows Frame Overhead CCD ReadoutTime= + HTime+VTransTime x Remainder + HCCD Frequency Vertical Binning Factor HTime + VTrans x Vertical Binning Factor x Integer Teledyne DALSA Vertical readout rows + ISORows Vertical Binning Factor 03-032-20013-04 Piranha HS-xx RoHS User Manual 24 3 Optical and Mechanical Considerations 3.1 Mechanical Interface Figure 16: Piranha HS-xx Mechanical Dimensions 4k Resolution 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 25 8k Resolution 3.2 Lens Mounts Model Number Lens Mount Options H S-40-04k40 62m m hole. M42x1 and F-m ount lens ad apters available through Teled yne DALSA Sales. H S-80 and H S-82 m od els M72x0.75 thread . Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 26 3.3 Optical Interface Illumination The am ou nt and w avelengths of light requ ired to captu re u sefu l im ages d epend on the particu lar application. Factors inclu d e the natu re, speed , and spectral characteristics of objects being im aged , exposu re tim es, light sou rce characteristics, environm ental and acqu isition system specifics, and m ore. It is often m ore im portant to consid er exposu re than illu m ination. The total am ou nt of energy (w hich is related to the total nu m ber of photons reaching the sensor) is m ore 2 im portant than the rate at w hich it arrives. For exam ple, 5J/ cm can be achieved by 2 2 exposing 5m W/ cm for 1m s ju st the sam e as exposing an intensity of 5W/ cm for 1s. Light Sources Keep these gu id elines in m ind w hen setting u p you r light sou rce: LED light sou rces are relatively inexpensive, provid e a u niform field , and longer life span com pared to other light sou rces. H ow ever, they also requ ire a cam era w ith excellent sensitivity, su ch as the H S-xx cam era. H alogen light sou rces generally provid e very little blu e relative t o infrared light (IR). Fiber-optic light d istribu tion system s generally transm it very little blu e relative to IR. Som e light sou rces age; over their life span they prod u ce less light. This aging m ay not be u niform —a light sou rce m ay prod u ce progressively less light in som e areas of the spectru m bu t not others. Filters CCD cam eras are extrem ely responsive to infrared (IR) w avelengths of light. To prevent infrared from d istorting the im ages you scan, u se a ―ho t m irror‖ or IR cu toff filter that transm its visible w avelengths bu t d oes not transm it w avelengths over 750nm . Exam ples are the Schneid er Optics™ B+W 489, w hich inclu d es a m ou nting ring, the CORION ™ LS750, w hich d oes not inclu d e a m ou nting ring, and the CORION ™ H R-750 series hot m irror. Lens Modeling Any lens su rrou nd ed by air can be m od eled for cam era pu rposes u sing three prim ary points: the first and second principal points and the second focal point. The prim ary points for a lens shou ld be available from the lens d ata sheet or from the lens m anu factu rer. Prim ed qu antities d enote characteristics of the im age sid e of the lens. That is, h is the object height and h is the im age height. The focal point is the point at w hich the im age of an infinitely d istant object is brou ght to focu s. The effective focal length (f) is the d istance from the second principal point to the second focal point. The back focal length (BFL) is the d istance from the im age sid e of the 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 27 lens su rface to the second focal point. The object distance (OD) is the d istance from the first principal point to the object. Figure 17: Primary Points in a Lens System Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 28 4 Software Interface: How to Control the Camera All Piranha H S-xx cam era featu res can be controlled throu gh the serial interface. The cam era can also be u sed w ithou t the serial interface after it has been set u p correctly. Fu nctions available inclu d e: i This chapter outlines the more commonly used commands. See section Commands for a list of all available commands. Controlling basic cam era fu nctions su ch as gain and sync signal sou rce . Flat field correction . Mirroring and read ou t control. Generating a test pattern for d ebu gging. The serial interface u ses a sim ple ASCII-based protocol and the PC d oes not requ ire any cu stom softw are. Note: This com m and set has changes from previou s Teled yne DALSA cam eras. Do not assu m e that the Piranha H S com m and s perform sim ilarly to old er cam eras. Serial Protocol Defaults 03-032-20013-04 8 d ata bits 1 stop bit N o parity N o flow control 9.6kbps Cam era d oes not echo characters Teledyne DALSA Piranha HS-xx RoHS User Manual 29 Command Format When entering com m and s, rem em ber that: A carriage retu rn <CR> end s each com m and . A space or m u ltiple space characters separate param eters. Tabs or com m as are invalid param eter separators. Upper and low ercase characters are accepted The backspace key is su pported The cam era w ill answ er each com m and w ith either <CR><LF> ―OK >" or <CR><LF>"Error xx: Error Message >" or <CR><LF>―Warning xx: Warning Message >‖. The ">" is u sed exclu sively as the last character sent by the cam era. The follow ing param eter conventions are u sed in the m anu al: • • • • • • • i = integer valu e f = real nu m ber m = m em ber of a set s = string t = tap id x = pixel colu m n nu m ber y = pixel row nu m ber Example: to return the current camera settings gcp <CR> Setting Baud Rate Purpose: Syntax: Sets the speed in bps of the cam era serial com m unication port. Syntax Elem ents: m sbr m Baud rate. Available baud rates are: 9600 (Default), 19200, 57600, and 115200. N otes: Exam ple: Pow er-on rate is alw ays 9600 baud . The rc (reset cam era) com m and w ill not reset the cam era to the pow er-on baud rate and w ill reboot using the last used baud rate. sbr 57600 Camera Help Screen For qu ick help, the cam era can retu rn all available com m and s and param eters throu gh the serial interface. There are tw o d ifferent help screens available. One lists all of the available com m and s to configu re cam era operation. The other help screen lists all of the com m and s available for retrieving cam era param eters (these are called ―get‖ com m and s). Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 30 To view the help screen listing all of the camera configuration commands, use the command: Syntax: h To view a help screen listing all of the ―get‖ commands, use the command: Syntax: gh N otes: For m ore inform ation on the cam era’s ―get‖ com m and s, refer to section 4.7.6 Returning Cam era Settings. The cam era configu ration com m and help screen lists all com m and s available. Param eter ranges d isplayed are the extrem e ranges available. Depend ing on the cu rrent cam era operating cond itions, you m ay not be ab le to obtain these valu es. If this occu rs, valu es are clipped and the cam era retu rns a w arning m essage. Som e com m and s m ay not be available in you r cu rrent operating m od e. The help screen d isplays N A in this case. Example Help Screen for HS-80-08k80 TDI Mode Operation Command 03-032-20013-04 cao ccf ccg ccp clm cpa css dpc els epc gcm gcp gcs gcv get get gh gl gla gpc gsf h lpc rc rfs roi rpc rus sag sao sbh sbr sbv scd sdo sem sfc sfr slt calibrate analog offset correction calibrate fpn calibrate camera gain correction calibrate prnu camera link mode calculate prnu algorithm correction set sample display pixel coeffs end of line sequence enable pixel coefficients get camera model get camera parameters get camera serial get camera version get values fpn coeff get help get line get line average get prnu coeff get signal frequency help load pixel coefficients reset camera restore factory settings region of interest reset pixel coeffs restore user settings set analog gain set analog offset set binning horizontal set baud rate set binning vertical set ccd direction set digital offset set exposure mode set fpn coeff set fpn range set lower threshold ti 0-16:0-255 iti 1-4:0-16:1024-4055 m ii m xx i ii 15/16/21/ 1-4:1024-4055 256/512/1024/ 1-8191:1-8192 0-1 0-1:0-1 Parameters i = integer f = floating point number m = member of a set s = string t = tap x = pixel column number y = pixel row number s x 1-8192 xx xx x i 1-8191:1-8192 1-8191:1-8192 1-8192 1-4 i 0-4 xyxy 1-8192:1-1:1-8192:1-1 tf ti m m i i ti m xi xxi i 0-16:-10.0-+10.0 0-16:0-255 1/2/4/8/ 9600/19200/57600/115200/ 1-8 0-2 0-16:0-255 3/7/ 1-8192:0-2048 1-8192:1-8192:0-2048 0-4095 Parameter Range - = range : = multiple parameter separator / = member of a set separator NA = command not available in current operating mode Teledyne DALSA Piranha HS-xx RoHS User Manual smm sot spc spr spt ssb ssf ssg stg sut svm tdi ugr vt vv wfc wpc wus 31 set mirroring mode set output throughput set prnu coeff set prnu range set pretrigger set subtract background set sync frequency set system gain set stage set upper threshold set video mode set area or TDI mode update gain reference verify temperature verify voltage write FPN coefficients write PRNU coefficients write user settings i m xi xxi i ti f ti m i i i 0-1 160/320/640/ 1-8192:0-28671 1-8192:1-8192:0-28671 0-16 0-16:0-4095 3499.87-68610.6 [Hz] 0-16:0-65535 16/32/48/64/80/96/ 0-4095 0-2 0-1 i i 1-4 1-4 Example Help Screen for HS-80-08k80 Area Mode Operation cao ccf ccg ccp clm cpa css dpc els epc gcm gcp gcs gcv get gfc gh gl gla gpc gsf gss h lpc rc rfs roi rpc rus sag sao sbh sbr sbv scd sdo sem sfc sfr slt smm Teledyne DALSA calibrate analog offset correction calibrate fpn calibrate camera gain correction calibrate prnu camera link mode calculate prnu algorithm correction set sample display pixel coeffs end of line sequence enable pixel coefficients get camera model get camera parameters get camera serial get camera version get values get fpn coeff get help get line get line average get prnu coeff get signal frequency get sensor serial help load pixel coefficients reset camera restore factory settings region of interest reset pixel coeffs restore user settings set analog gain set analog offset set binning horizontal set baud rate set binning vertical set_ccd_direction set digital offset set exposure mode set fpn coeff set fpn range set lower threshold set mirroring mode ti m ii m xx i ii 0-16:0-255 NA 1-3:0-16:1024-4055 NA 5/16/21/ NA NA NA 0-1 NA s x NA xx xx x i NA NA NA 1-4 i NA xyxy 1-8192:1-96:1-8192:1-96 tf ti m m i i ti m xi xxi i i 0-16:-10.0-+10.0 0-16:0-255 1/2/4/8/ 9600/19200/57600/115200/ 1-8 0-1 0-16:0-2048 3/7/ NA NA 0-4095 0-1 iti 03-032-20013-04 Piranha HS-xx RoHS User Manual 32 sot spc spr spt ssb ssf ssg stg sut svm tdi ugr vt vv wfc wpc wus set output throughput set prnu coeff set prnu range set pretrigger set subtract background set sync frequency set system gain set stage set upper threshold set video mode set TDI or area mode update gain reference verify temperature verify voltage write FPN coefficients write PRNU coefficients write user settings m xi xxi i ti f ti m i i i 160/320/640/ NA NA 0-16 0-16:0-4095 1-6169.03 [Hz] 0-16:0-65535 16/32/48/64/80/96/ 0-4095 0-2 0-1 i i NA NA 4.1 First Power Up Camera Settings When the cam era is pow ered u p for the first tim e, it operates u sing the follow ing factory settings: TDI m od e Left to right pixel read ou t Forw ard CCD shift d irection 96 integration stages N o binning Cam era Link Mod e 4k: 15 (8 bit, 4 taps, 40MH z strobe rate) 8k: 21 (8 bit, 8 taps, 40MH z strobe rate) Exposu re m od e 7 10kH z line rate 160 (H S-4k) or 320 (H S-8k) throu ghpu t Factory calibrated analog gain and offset Factory calibrated FPN and PRN U coefficients u sing the follow ing process: ssf 10000 (line rate of 10000H z) ccg 2 0 3280 (analog gain calibrated to an average pixel valu e of 3280) ccf 03-032-20013-04 (fpn calibration) cpa 2 3920 (calcu late PRN U algorithm ) ssg 0 4096 (set system gain) Teledyne DALSA Piranha HS-xx RoHS User Manual 33 4.2 Command Categories The follow ing d iagram categorizes and lists all of the cam er a’s com m and s. This chapter is organized by com m and category. Figure 18: Command Categories Sensor Output Format TDI or Area Mode (tdi) Number of Integration Stages (stg) CCD Shift Direction (scd) Binning (sbv and sbh) Set Exposure Mode (sem) Set Frame/Line Rate (ssf) Camera Output Format Camera Link Mode (clm) Camera Throughput (sot) Pixel Readout Direction (smm) Generate a Test Pattern (svm) Set Upper Threshold (sut) Set Lower Threshold (slt) End of Line Sequence (els) Set Pretrigger (spt) Data Processing Region of Interest (roi) Set Analog Gain (sag or ccg) Update Gain Reference (ugr) Set Analog Offset (sao) Calibrate Analog Offset (cao) Correction Set Sample (css) Calculate FPN (ccf) Set Digital Offset (sdo) Calculate PRNU (ccp) Calculate PRNU Algorithm (cpa) Enable Pixel Coefficients (epc) Set PRNU Coefficient (spc) Set FPN Coefficient (sfc) Set PRNU Range (spr) Set FPM Range (sfr) Set Background Subtract (ssb) Set Digital System Gain (ssg) Teledyne DALSA Saving and Restoring Settings Save Current User Settings (wus) Restore Previously Saved User Settings (rus) Save Current PRNU Coefficients (wpc) Save Current FPN Coefficients (wfc) Load Pixel Coefficients (lpc) Reset Pixel Coefficients (rpc) Restore Factory Settings (rfs) Reboot Camera (rc) Diagnostics Get Line of Data (gl) Get an Average of Multiple Lines (gla) Display Pixel Coefficients (dpc) Measure Internal Temperature (vt) Measure Input Voltage (vv) Get Commands Other Help (h) Set Baud Rate (sbr) 03-032-20013-04 Piranha HS-xx RoHS User Manual 34 4.3 Sensor Output Format 4.3.1 Selecting TDI or Area Mode Operation The Piranha H S-xx cam eras have the ability to operate in both TDI and Area Mod e. In Area Mod e, the cam era operates as an area array cam era u sing a tw o d im ensional array of pixels. Area Mod e is u sefu l for aligning the cam era to you r w eb d irection or w hen you need a rectangu lar 2D im age and the lighting su pports a fu ll fram e im ager. In TDI Mod e, the cam era operates as a TDI high sensitivity line scan cam era and com bines m u ltiple exposu res of an object into one high -resolu tion resu lt. The cam era stores u ser settings for Area Mod e and TDI Mod e separately , allow ing you to sw itch betw een Area and TDI m od e w ithou t losing settings spe cific to each m od e. See section 4.6 Saving and Restoring Settings for an explanation on how u ser settings are stored and retrieved . NOTE: Sensor cosmetic specifications for Area Mode of operation are neither tested nor guaranteed Purpose: Selects the cam era’s operating m od e. Area Mod e is useful for aligning and focusing your cam era. Syntax: tdi i Syntax Elem ents: i N otes: Exam ple 03-032-20013-04 0 Area m od e 1 TDI m od e Rem em ber to save your user settings before changing m od e. Send ing the tdi com m and always restores your last saved user settings for the m od e of operation requested even if you are alread y operating in the requested m od e. See section 4.6 Saving and Restoring Settings for an explanation on how user settings are stored and retrieved for each m od e. Flat field correction is not available in Area Mod e tdi 1 Teledyne DALSA Piranha HS-xx RoHS User Manual 35 4.2 Selecting the Number of CCD Integration Stages Purpose: In TDI Mod e, this com m and ad justs the sensitivity level in your cam era by setting the num ber of CCD integration stages. In Area Mod e, the vertical height of the im age sensor is controlled by the num ber of stages. Syntax: stg m Syntax Elem ents: m N um ber of stages to use. Available values (not includ ing the H S-82 m od el) are 16, 32, 48, 64, 80, and 96. Factory setting is 96. Available values for the H S-82 m od el are 8, 16, 24, 32, 40, and 48 (d efault). Exam ple stg 64 A note on stage selection (stg) and the HS-82 model of camera: The sensitivity level of a cam era can be ad ju sted by setting the nu m ber of CCD integration stages. For su ch pu rpose, the stand ard H S-80-08K80-00-R cam era has six d ifferent allow able settings: 16, 32, 48, 64, 80 and 96. With m od ifications to the binning setu p, the H S-82-04k80-00-R cam era retains this featu re of the stand ard cam era, bu t the nu m ber of stages is halved (8, 16, 24, 32, 40 and 48) to reflect this change. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 36 4.3.3 Setting the Camera’s CCD Shift Direction Purpose: When in TDI Mod e, selects the forw ard or reverse CCD shift d irection or external d irection control. This accom m od ates object d irection change on a w eb and allow s you to m ount the cam era ―upsid e d ow n‖. In Area Mod e, selects the vertical read out d irection. This allow s you to m irror the im age vertically or m ount the cam era ―upsid e d ow n‖. Syntax: scd i Syntax Elem ents: i Read out d irection. Allow able values are: 0 = Forw ard CCD shift d irection. 1 = Reverse CCd shift d irection. 2 = Externally controlled d irection control via Cam era Link control CC3 (CC3=1 forw ard , CC3=0 reverse). Available only in TDI Mod e. N otes: Exam ple The follow ing user settings are stored separately for forw ard and reverse d irection; analog gain, analog offset, d igital gain, d igital offset, background subtract, and pixel coefficients. These settings are autom atically load ed w hen you sw itch d irection. All other settings are com m on to both d irections. See the follow ing figures for an illustration of CCD shift d irection in relation to object m ovem ent. N ote that som e com m and s that require longer processing tim e, like ccg, d elay im plem entation of an external d irection change. scd 1 Figure 19: Object Movement and Camera Direction Example using 4k Model and an Inverting Lens 8K orientation reference Direction of Camera should operate in Forward CCD Shift Direction scd 0 Object Movement Camera should operate in Reverse CCD Shift Direction scd 1 03-032-20013-04 Direction of Object Movement Teledyne DALSA Piranha HS-xx RoHS User Manual 37 4.3.4 Increasing Sensitivity with Binning Binning increases the cam era’s light sensitivity by d ecreasing horizontal and / or vertical resolu tion—the charge collected by ad jacent pixels is ad d ed together. Binning is also u sefu l for increasing fram e rate (vertical binning) or increasing the pixel pitch. For exam ple, if you set you r vertical binning to 2 and you r horizontal binning to 2, you r pixel size increases from 7µm x 7µm (no binning) to 14µm x 14µm (2x2 binning). Figure 20: 2x2 Binning in Area Mode Setting Horizontal Binning Purpose: Increases the horizontal pixel pitch and light sensitivity by d ecreasing horizontal resolution. The am ount of d ata being sent from the cam era is red uced by the horizontal binning factor. Different fram egrabber files are need ed for d ifferent horizontal binning factors. Syntax: sbh m Syntax Elem ents: m H orizontal binning value. Available values are 1 (factory setting, no binning) 2, 4, or 8. N otes: Exam ple: Teledyne DALSA If you are using horizontal binning, the m in, m ax, and m ean statistics generated by the gl or gla com m and are for every second pixel (or valid d ata) only (e.g., if sbh 2, every second pixel). For optim al flat field correction, you should rerun the ccp and ccf com m and s after changing binning values. Changing binning values d oes not autom atically alter gain, fram e rate generation, or other functions of the cam era. Pixel num bering rem ains unchanged for the roi, gl, gla, dpc, gfc, sfc, gpc, and spc com m and s. Refer to Figure 21 for an explanation of pixel num bering and pixel start and stop values w hen using a region of interest. sbh 2 03-032-20013-04 Piranha HS-xx RoHS User Manual 38 Figure 21: Binning Start and End Values when using a Region of Interest roi 4 1 9 1 CCD Pixel Numbering Pixel 1 Pixel data using sbh 2 Pixel 2 Data 1 Pixel 3 Pixel 4 Data 2 Pixel 5 Pixel 6 Data 3 Pixel 7 Pixel 8 Pixel 9 Data 4 Pixel 10 Data 5 In this exam ple a region of interest is set to inclu d e pixels 4 to 9 and horizontal binning is set to 2. Becau se pixel 3 is now inclu d ed in the sam e d ata grou p as pixel 4, the region of interest w ill now inclu d e the d ata from pixel 3. Also, pixel 10 is inclu d ed in the sam e d ata grou p as pixel 9, so pixel 10 is now part of the region of interest. To see how the region of interest start and stop valu es have been rou nd ed , u se the com m and get roi. Setting Vertical Binning Syntax: Increases the vertical pixel pitch and light sensitivity by d ecreasing vertical resolution. Vertical binning is also useful for increasing fram e rate in Area Mod e. Vertical binning in TDI Mod e should only be used if your w eb’s shaft encod er provid es a red uced ratio of pulses to m atch w eb speed . Syntax: sbv i Syntax Elem ents: i Vertical binning value. Available values (not includ ing the H S-82 m od el) are 1 (factory setting, no binning) to 8. Available values for the H S-82 m od el are 1 to 4. N otes: Exam ple: You w ill have to recalibrate the cam era after changing binning values. Increasing the vertical binning, d ecreases the m axim um allow able line rate. You m ay have to enter a new cam era fram e rate after changing vertical binning values if the current value becom es invalid . The cam era send s a w arning m essage in this situation. sbv 2 A note on vertical binning (sbv) and the HS-82 model of camera: Binning increases the cam era’s light sensitivity by d ecreasing horizontal and / or vertical resolu tion — the charge collected by ad jacent pixels is ad d ed together. Binning is also u sefu l for increasing fram e rate (vertical binning) or increasing the pixel pitch. The d efau lt binning setting (1 x 1) in the H S-82-04k80-00-R cam era is essentially equ ivalent to perform ing 2 x 2 binning in stand ard H S-80-08K80-00-R cam era. H orizontal binning is achieved by binning tw o ad jacent colu m ns together d u ring the VCCD to H CCD transfer w hile vertical binning is achieved by transferring tw o VCCD row s into the enlarged H CCD prior to horizontal transfers. This d ifference translates the 1x - 8x 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 39 binning capability of H S-80-08K80-00-R cam era to 1x - 4x binning in the H S-82-04k80-00-R cam era. 4.3.5 Exposure Mode and Line/Frame Rate How to Set Exposure Mode and Line/Frame Rate You have a choice of operating the cam era in one of tw o exposu re m od es. Depend ing on you r m od e of operation, the cam era’s line/ fram e rate (synchronization) can be generated internally throu gh the softw are com m and ssf or set externally w ith an EXSYN C signal (CC1). When operating in TDI Mod e, it is im portant that the line rate u sed m atches the w eb speed . Failu re to m atch the w eb speed w ill resu lt in sm earing. To select how you want the camera’s line/frame rate to be generated: 1. You m ust first set the cam era’s exposure m od e using the sem com m and . Refer to section Setting the Exposure Mod e below for d etails. 2. N ext, if using m od e 7, use the com m and ssf to set the line/ fram e rate. Refer to section Setting Fram e Rate for d etails. Setting the Exposure Mode Purpose: Sets the cam era’s exposure m od e allow ing you to con trol your sync and line/ fram e rate generation. Syntax: sem m Syntax Elem ents: m Exposure m od e to use. Factory setting is 7. N otes: Teledyne DALSA Refer to Table 10: Piranha H S Exposure Mod es for a quick list of available m od es or to the follow ing sections for a m ore d etailed explanation includ ing tim ing d iagram s. To obtain the current value of the exposure m od e, use the com m and gcp or get sem. When setting the cam era to external signal m od es, EXSYN C m u st be su pplied . Refer to section 4.5.1 for m ore inform ation on how to operate you r cam era in TDI or Area Mod e. Exposure Mod es are saved separately for TDI Mod e and Area Mod e. Refer to section 4.6 Saving and Restoring Settings for m ore inform ation on how to save cam era settings. Related Com m and s: ssf Exam ple: sem 3 03-032-20013-04 Piranha HS-xx RoHS User Manual 40 Table 10: Piranha HS Exposure Modes Programmable Frame Rate Programmable Exposure Time Mode SYNC Description 3 External No No Maxim um exposure tim e w ith no charge reset. 7 Internal Yes No Internal sync, m axim um exposure tim e w ith no charge reset. Exposure Modes in Detail When setting the fram e rate (u sing the ssf com m and ), exposu re tim e w ill be red u ced , if necessary, to accom m od ate the new fram e rate. The exposu re tim e w ill alw ays be set to the m axim u m tim e (fram e period – fram e transfer tim e – pixel reset tim e) for that fram e rate w hen a new fram e rate requ iring red u ced exposu re tim e is entered . When setting the exposu re tim e (u sing the set com m and ), fram e tim e w ill be increased , if necessary, to accom m od ate the exposu re tim e. Und er this cond itio n, the fram e periof w ill equ al the Read ou t+Exposu re Pu lse+Exposu re Tim e. Fram e rate is set by the period of the external trigger pu lses. EXSYN C pu lses faster than the read ou t tim e are ignored . The falling ed ge of EXSYN C m arks the start of read ou t. N ote: In TDI m od e the fram e period equ als the line period . Mode 3: External Trigger, Maximum Exposure Time Figure 23: Mode 3 Timing Mode 3 Frame Period Readout Frame Period Readout Exposure Time Exposure Time EXSYNC Falling Edge Ignored During Readout Falling Edge Ignored During Readout In this m od e, the external trigger rate sets both the fram e rate and the exposu re tim e. The rising pu lse of the external trigger m arks the beginning of the exposu re tim e. Read ou t begins on the falling ed ge of EXSYN C. A charge d u m p occu rs at the beginning of the exposu re tim e, clearing any accu m u lated charge gathered u p to this point. An external shu tter or strobe shou ld be u sed to rem ove light d u ring read ou t. Mode 7: Internal Frame Rate, Maximum Exposure Time In this m od e, the fram e rate is set internally u sing the ssf com m and w ith a m axim u m exposu re tim e. N ote: In TDI m od e the fram e period equ als the line period . 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 41 Figure 24: Mode 7 Camera Timing Frame Period Frame Period Exposure Time Exposure Time Readout Readout Internal Sync set with ssf Command Setting Frame Rate Purpose: Sets the cam era’s fram e rate in H z. Cam era m ust be operating in exposure m od e 7. Syntax: ssf i Syntax Elem ents: i Set the fram e rate to a value from : TDI H S-40-4k40: 3499.87-36563.1 H S-80-4k40: 3499.87-68610 H S-80-8k40: 3499.56-34305.3 H S-80-8k80: 3499.87-68610.6 H S-82-4k80: 3499.87-111111 Area H S-40-4k40: 1-3783.58 H S-80-4k40: 1-6169 H S-80-8k40: 1-3084.52 H S-80-8k80: 1-6169.03 H S-82-4k80: 1-9017.13 Valu e round ed up/ d ow n as required . The m axim um line/ fram e rate is affected by horizontal and vertical binning factors, throughput setting, Cam era Link m od e, and num ber of CCD integration stages. N otes: Teledyne DALSA If you enter an invalid fram e rate frequency the value, the cam era clip s the fram e rate to be w ithin the current operating range and a w arning m essage is returned . If you enter a fram e rate frequency outsid e of the range d isplayed on the help screen, an error m essage is returned and the fram e rate rem ains unchan ged . The cam era d oes not autom atically change the fram e rate after you change binning or stage selection values. You m ay have to ad just your fram e rate to avoid ignored syncs. To return the cam era’s fram e rate, use the com m ad gcp or get ssf. Related Com m and s: sem Exam ple: ssf 10000 03-032-20013-04 Piranha HS-xx RoHS User Manual 42 4.4 Camera Output Format 4.4.1 How to Configure Camera Output The Piranha H S cam eras offer great flexibility w hen configu ring you r cam era ou tpu t. Using the clm com m and , you d eterm ine the cam era’s Cam era Link configu ration, nu m ber of ou tpu t taps, and bit d epth. Using the sot com m and , you d eterm in e the cam era’s ou tpu t rate. These tw o com m and s w ork together to d eterm ine you r final cam era ou tpu t configu ration. You can fu rther configu re you r read ou t u sing the smm com m and to select the cam era’s pixel read ou t d irection. The follow ing tables su m m arize the possible cam era configu rations for each of the H S-xx cam era m od els. Refer to the figu re below for a d escription on how to select you r cam era ou tpu t. Figure 25: How to Read the Camera Link Tables Find the rows in the table with a line rate greater than or equal to your desired line rate. From the rows determined by part B, find the Camera Link modes with your desired bit depth. Camera Link Mode Configuration (Controlled by Readout Direction(Controlled by Pixel Rate smm command) Configuration (Controlled by sot command) Bit smm 0 increment =1 Depth smm 1 increment = -1 clm command) Command Camera Link Camera Link Taps Configuration clm 2 Base 2 Camera Link taps where: 1 = CCD taps 1 +2 2 = CCD taps 3+4 8 smm 0 =CL tap 1 (1-2048) CL tap 2 (2049-4096) smm 1 = CL tap 1 (4096-2049) CL tap 2 (2048-1) From the remaining rows determined in part C, select an acceptable Camera Link configuration. If none of the remaining configurations are acceptable for your system, you will have to reduce your bit depth or line rate. sot 160 = 80 MHz strobe (max line rate 36kHz) sot 80 = 40 MHz strobe (Max line rate 18kHz) Set the pixel readout direction. Note: Horizontal binning reduces the number of pixels sent to the frame grabber by the binning factor. From the rows determined in part A, find the sot values in the table with a throughput greater than or equal to your your required throughput. Note: In the follow ing tables, a CCD tap refers to the actu al physical taps on the sensor , w hile the Cam era Link taps refer to the w ay the d ata is configu red for ou tpu t over Cam era Link. For a d iagram illu strating sensor taps, see section 1.3 Im age Sensor. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 43 Table 11: HS-40-04k40 Data Readout Configurations Camera Link Mode Configuration (Controlled by clm command) Readout Direction (Controlled by smm command) Command Camera Link Configuration Camera Link Taps Bit Depth smm 0 increment =1 smm 1 increment = -1 clm 2 Base 2 Cam era Link taps w here: 1 = CCD taps 1+2 2 = CCD taps 3+4 8 smm 0 =CL tap 1 (1-2048) CL tap 2 (2049-4096) smm 1 = CL tap 1 (4096-2049) CL tap 2 (2048-1) clm 3 Base 2 Cam era Link taps w here: 1 = CCD taps 1+2 2 = CCD taps 3+4 12 smm 0 = CL tap 1 (1-2048) CL tap 2 (2049-4096) smm 1 = CL tap 1 (4096-2049) CL tap 2 (2048-1) clm 15 Med iu m 4 Cam era Link taps w here: 1 = CCD tap 1 2 = CCD tap 2 3 = CCD tap 3 4 = CCD tap 4 8 smm 0 = CL tap 1 (1-1024) CL tap 2 (1025-2048) CL tap 3 (2049-3072) CL tap 4 (3073-4096) Pixel Rate Configuration (Controlled by sot command) sot 160 = 80 MH z strobe (m ax line rate 36563H z) sot 80 = 40 MH z strobe (Max line rate 19166H z) sot 160 = 80 MH z strobe (m ax line rate 36563H z) sot 80 = 40 MH z strobe (Max line rate 19166H z) sot 160 = 40 MH z strobe (m ax line rate 36563H z) smm 1 =CL tap 1 (4096-3073) CL tap 2 (3072-2049) CL tap 3 (2048-1025) CL tap 4 (1024-1) clm 16 Med iu m 4 Cam era Link taps w here: 1 = CCD tap 1 2 = CCD tap 2 3 = CCD tap 3 4 = CCD tap 4 12 smm 0 = CL tap 1(1-1024) CL tap 2(1025-2048) CL tap 3(2049-3072) CL tap 4(3073-4096) sot 160 = 40 MH z strobe (m ax line rate 36563H z) smm 1 = CL tap 1(4096-3073) CL tap 2(3072-2049) CL tap 3(2048-1025) CL tap 4(1024-1) Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 44 Table 12: HS-80-04k40 Configurations Camera Link Mode Configuration (Controlled by clm command) Command clm 15 clm 16 Camera Link Configuration Med iu m Med iu m Camera Link Taps Bit Depth 4 Cam era Link taps w here: 1 = CCD tap 1+2 2 = CCD tap 3+4 3 = CCD tap 5+6 4 = CCD tap 7+8 8 4 Cam era Link taps w here: 1 = CCD tap 1+2 2 = CCD tap 3+4 3 = CCD tap 5+6 4 = CCD tap 7+8 12 clm 21 Fu ll 8 Cam era Link taps w here: 1 = CCD tap 1 2 = CCD tap 2 3 = CCD tap 3 4 = CCD tap 4 5 = CCD tap 5 6 = CCD tap 6 7 = CCD tap 7 8 = CCD tap 8 8 clm 15 Med iu m 4 Cam era Link taps w here: 1 = CCD tap 1+2 2 = CCD tap 3+4 3 = CCD tap 5+6 4 = CCD tap 7+8 8 03-032-20013-04 Readout Direction (Controlled by smm command) Pixel Rate Configuration (Controlled by sot command) sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-1024) 2(1025-2048) 3(2049-3072) 4(3073-4096) 1(4096-3073) 2(3072-2049) 3(2048-1025) 4(1024-1) sot 160 = 40 MH z strobe (m ax line rate 37629H z) sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-1024) 2(1025-2048) 3(2049-3072) 4(3073-4096) 1(4096-3073) 2(3072-2049) 3(2048-1025) 4(1024-1) sm m 0 = CL tap CL tap CL tap CL tap CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap CL tap CL tap CL tap CL tap sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-512) 2(513-1024) 3(1025-1536) 4(1537-2048) 5(2049-2560) 6(2561-3072) 7(3073-3584) 8(3585-4096) 1(4096-3585) 2(3584-3073) 3(3072-2561) 4(2560-2049) 5(2048-1537) 6(1536-1025) 7(1024-513) 8(512-1) 1(1-1024) 2(1025-2048) 3(2049-3072) 4(3073-4096) 1(4096-3073) 2(3072-2049) 3(2048-1025) 4(1024-1) sot 320 = 80 MH z strobe (m ax line rate 68610H z) sot 160 = 40 MH z strobe (m ax line rate 37629H z) sot 320 = 80 MH z strobe (m ax line rate 68610H z) sot 320 = 40 MH z strobe (m ax line rate 68610H z) sot 160 = 40 MH z strobe (m ax line rate 37629H z) sot 320 = 80 MH z strobe (m ax line rate 68610H z) Teledyne DALSA Piranha HS-xx RoHS User Manual 45 Table 13: HS-80-08k40 Configurations Camera Link Mode Configuration (Controlled by clm command) Command clm 15 clm 16 clm 21 clm 15 Teledyne DALSA Camera Link Configuration Med iu m Med iu m Fu ll Med iu m Camera Link Taps Bit Depth 4 Cam era Link taps w here: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 4 Cam era Link taps w here: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 8 Cam era Link taps w here: 1 = CCD tap 1+2 2 = CCD tap 3+4 3 = CCD tap 5+6 4 = CCD tap 7+8 5 = CCD tap 9+10 6 = CCD tap 11+12 7 = CCD tap 13+14 8 = CCD tap 15+16 8 4 Cam era Link taps w here: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 8 12 8 Readout Direction (Controlled by smm command) Pixel Rate Configuration (Controlled by sot command) sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-2048) 2(2049-4096) 3(4097-6144) 4(6145-8192) 1(8192-6145) 2(6144-4097) 3(4096-2049) 4(2048-1) sot 80 = 20 MH z strobe (m ax line rate 9583H z) sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-2048) 2(2049-4096) 3(4097-6144) 4(6145-8192) 1(8192-6145) 2(6144-4097) 3(4096-2049) 4(2048-1) sm m 0 = CL tap CL tap CL tap CL tap CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap CL tap CL tap CL tap CL tap sm m 0 = CL tap CL tap CL tap CL tap sm m 1 = CL tap CL tap CL tap CL tap 1(1-1024) 2(1025-2048) 3(2049-3072) 4(3073-4096) 5(4097-5120) 6(5121-6144) 7(6145-7168) 8(7169-8192) 1(8192-7169) 2(7168-6145) 3(6144-5121) 4(5120-4097) 5(4096-3073) 6(3072-2049) 7(2048-1025) 8(1024-1) 1(1-2048) 2(2049-4096) 3(4097-6144) 4(6145-8192) 1(8192-6145) 2(6144-4097) 3(4096-2049) 4(2048-1) sot 160 = 40 MH z strobe (m ax line rate 19157H z) sot 80 = 20 MH z strobe (m ax line rate 9583H z) sot 160 = 40 MH z strobe (m ax line rate 19157H z) sot 160 = 20 MH z strobe (m ax line rate 18814H z) sot 320 = 40 MH z strobe (m ax line rate 34305H z) sot 80 = 20 MH z strobe (m ax line rate 9583H z) sot 160 = 40 MH z strobe (m ax line rate 19157H z) 03-032-20013-04 Piranha HS-xx RoHS User Manual 46 Table 14: HS-80-08k80 Configurations Camera Link Mode Configuration (Controlled by clm command) Command clm 15 clm 16 clm 21 clm 15 03-032-20013-04 Camera Link Configuration Medium Medium Full Medium Camera Link Taps 4 Camera Link taps where: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 4 Camera Link taps where: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 8 Camera Link taps where: 1 = CCD tap 1+2 2 = CCD tap 3+4 3 = CCD tap 5+6 4 = CCD tap 7+8 5 = CCD tap 9+10 6 = CCD tap 11+12 7 = CCD tap 13+14 8 = CCD tap 15+16 4 Camera Link taps where: 1 = CCD tap 1+2+3+4 2 = CCD tap 5+6+7+8 3 = CCD tap 9+10+11+12 4 = CCD tap 13+14+15+16 Bit Depth 8 12 8 8 Readout Direction (Controlled by smm command) Pixel Rate Configuration (Controlled by sot command) smm 0 = CL tap 1(1-2048) CL tap 2(2049-4096) CL tap 3(4097-6144) CL tap 4(6145-8192) smm 1 = CL tap 1(8192-6145) CL tap 2(6144-4097) CL tap 3(4096-2049) CL tap 4(2048-1) sot 320 = 80 MHz strobe (max rate 38314Hz) smm 0 = CL tap 1(1-2048) CL tap 2(2049-4096) CL tap 3(4097-6144) CL tap 4(6145-8192) smm 1 = CL tap 1(8192-6145) CL tap 2(6144-4097) CL tap 3(4096-2049) CL tap 4(2048-1) sot 320 = 80 MHz strobe (max line rate 38314Hz) smm 0 = CL tap 1(1-1024) CL tap 2(1025-2048) CL tap 3(2049-3072) CL tap 4(3073-4096) CL tap 5(4097-5120) CL tap 6(5121-6144) CL tap 7(6145-7168) CL tap 8(7169-8192) smm 1 = CL tap 1(8192-7169) CL tap 2(7168-6145) CL tap 3(6144-5121) CL tap 4(5120-4097) CL tap 5(4096-3073) CL tap 6(3072-2049) CL tap 7(2048-1025) CL tap 8(1024-1) smm 0 = CL tap 1(1-2048) CL tap 2(2049-4096) CL tap 3(4097-6144) CL tap 4(6145-8192) smm 1 = CL tap 1(8192-6145) CL tap 2(6144-4097) CL tap 3(4096-2049) CL tap 4(2048-1) sot 640 = 80 MHz strobe (HS-80-08k80 only) (max line rate 68610Hz) sot 160 = 40 MHz strobe (max line rate 19166Hz) sot 160 = 40 MHz strobe (max line rate 19166Hz) sot 320 = 40 MHz strobe (max line rate 37629Hz) sot 320 = 80 MHz strobe (max rate 38314Hz) sot 160 = 40 MHz strobe (max line rate 19166Hz) Teledyne DALSA Piranha HS-xx RoHS User Manual 47 4.4.2 Setting the Camera Link Mode Purpose: Sets the cam era’s Cam era Link con figuration, num ber of Cam era Link taps and d ata bit d epth. Refer to the tables on the previous pages to d eterm ine w hich configurations are valid for your cam era m od el and how this com m and relates to other cam era configuration com m and s. Syntax: clm m Syntax Elem ents: m Output m od e to use: 2: Base configuration , 2 taps, 8 bit output 3: Base configuration, 2 taps, 12 bit output 15: Med ium configuration, 4 taps, 8 bit output 16: Med ium configuration, 4 taps, 12 bit output 21: Full configuration, 8 taps, 8 bit output N otes: Teledyne DALSA When you change the Cam era Link m od e (clm com m and ), the cam era attem pts to m aintain the current sot throughput (pixels/ sec). If the current throughput is too slow or too fast for the current Cam era Link m od e, the cam era w ill autom atically ad just the throughput value and w ill return a w arning m essage that a related param eter w as ad justed . To obtain the current Cam era Link m od e, use the com m and gcp or get clm. The bit patterns are d efined by the Teled yne DALSA Cam era Link Road m ap available at Teled yne DALSA application notes. Related Com m and s sot Exam ple: clm 15 03-032-20013-04 Piranha HS-xx RoHS User Manual 48 4.4.3 Setting the Camera Throughput Purpose: Works in conjunction w ith the clm com m and (see previous) and d eterm ines the throughput of the cam era. Refer to the tables in section 4.4.1 H ow to Configure Cam era Output to d eterm ine w hich configurations are valid for your cam era m od el and how this com m and relates to other cam era configuration com m and s. Syntax: sot m Syntax Elem ents: m Output throughput. Allow able values are: 80 = 4 taps at 20MH z or 2 taps at 40MH z 160 = 2 taps at 80MH z or 4 taps at 40MH z 320 = 4 taps at 80MH z or 8 taps at 40MH z 640 = 8 taps at 80MH z N otes: Throu ghpu t is calcu lated as: Throughput= (N umber of Camera Link Taps) x (Camera Link Pixel Rate in MHz) To obtain the throughput setting, use the com m an d gcp or get clm. Throughput values are clipped if the cam era is unable to m aintain the current throughput setting and a w arning m essage is d isplayed . Refer to the tables in section 4.4.1 H ow to Configure Cam era Output to d eterm ine w hich configurations are valid for your cam era m od el. Related Com m and s clm Exam ple: sot 160 4.4.4 Setting the Pixel Readout Direction Purpose: Sets the tap read out from left to right or from right to left. This com m and is useful if the cam era m ust be m ounted upsid e d ow n. Syntax: smm i Syntax Elem ents: i Read out d irection. Allow able values are: 0 = All pixels are read out from left to right. 1 = All pixels are read out from right to left. N otes: 03-032-20013-04 To obtain the current read out d irection, use the com m and gcp or get smm. This com m and is available in both TDI and Area Mod e. Refer to the follow ing figures and tables for an explanation of pixel read out and m irror d irection. Refer to section 1.3 Im age Sensor for sensor architecture d iagram s that illustrate sensor read out d irection. Teledyne DALSA Piranha HS-xx RoHS User Manual 49 Figure 26: Left to Right Readout (smm 0) Forward Direction Example Output Figure 27: Right to Left Readout (smm 1) Forward Direction Example Output Figure 28: Camera Pixel Readout Direction Example using 4k Model with Inverting Lens Pixel 1 Pixel 4096 Camera can be imaging in either Forward or Reverse direction 8K orientation reference smm 1 right to left Pixel 1 to 4096 Pixel 4096 to 1 Table 15: HS-40-04k40 Forward or Reverse Pixel Readout Camera Link Readout Tap 1 Tap 2 Direction Teledyne DALSA Tap 3 Tap 4 Left to Right Softw are com m and smm 0 1-1024 1025-2048 2049-3072 3073-4096 Right to Left Softw are com m and smm 1 4096-3073 3072-2049 2048-1025 1024-1 03-032-20013-04 Piranha HS-xx RoHS User Manual 50 Table 16: HS-80-04k40 Forward or Reverse Pixel Readout Readout Direction Tap 1 Tap 2 Tap 3 Tap 4 Tap 5 Tap 6 Tap 7 Tap 8 Left to Right Softw are com m and smm 0 1-512 513-1024 1025-1536 1537-2048 2049-2560 2561-3072 3073-3584 35854096 Right to Left Softw are com m and smm 1 4096-3585 3584-3073 3072-2561 2560-2049 2048-1537 1536-1025 1024-513 512-1 Table 17: HS-80-08k40, HS-80-08k80 Forward or Reverse Pixel Readout Readout Direction Tap 1 Tap 2 Tap 3 Tap 4 Tap 5 Tap 6 Tap 7 Tap 8 Left to Right Softw are com m and smm 0 1-1024 1025-2048 2049-3072 3073-4096 4097-5120 5121-6144 6145-7168 71698192 Right to Left Softw are com m and smm 1 8192-7169 7168-6145 6144-5121 5120-4097 4096-3073 3072-2049 2048-1025 1024-1 4.4.5 Setting a Pretrigger Purpose: Syntax: A pretrigger m ay be requ ired for som e fram e grabbers. Syntax Elem ents: i spt i Pretrigger in a range from 0 to 16. 4.5 Data Processing 4.5.1 Setting a Region of Interest Purpose: Sets the pixel range used to collect the end -of-line statistics and sets the region of pixels used in the ccg, cao, cpa, gl, gla, ccf, and ccp com m and s. In m ost applications, the field of view exceed s the required object size and these extraneous areas should be ignored . It is recom m end ed that you set the region of interest a few pixels insid e the actual useable im age. Syntax: roi x1 y1 x2 y2 Syntax Elem ents: x1 Colum n start num ber. Must be less than or equal to the colum n end num ber in a range from 1 to (colum n resolution – 1). y1 Row start num ber. Must be less than or equal to the row end num ber in a range from 1 to (row end num ber – 1) except in TDI Mod e w here y1 m ust be 1. x2 Colum n end num ber. Must be greater than or equal to the 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 51 colum n start num ber in a range from 2 to colum n resolution. y2 Row end num ber. Must be greater than or equal to the row start num ber in a range from 2 to num ber of stages except in TDI Mod e w here y2 m ust be 1. N otes: If you are using binning, the start pixel is round ed d ow n to the beginning of binned area and end pixel is round ed up to the end of the binned area. Related Com m and s Exam ple: In Area Mod e, th e roi m ust be w ithin the stage. If the requested roi is above the stage, the roi row s w ill be clipped . The start and end row s w ill be clipped to the stage selection if necessary. A ―clipped to m ax‖ w arning m essage is returned . ccg, cao, cpa, gl, gla, ccf, ccp, els roi 10 1 50 1 (TDI Mod e) 4.5.2 Analog and Digital Signal Processing Chain Processing Chain Overview and Description The follow ing d iagram show s a sim plified block d iagram of the cam era’s analog and d igital processing chain. The analog processing chain begins w ith an analog gain ad ju stm ent, follow ed by an analog offset ad ju stm ent. These ad ju stm ents are applied to the vid eo analog signal prior to its d igitization by an A/ D converter. The d igital processing chain contains the FPN correction , the PRN U correction, the backgrou nd su btract, and the d igital gain and offset. All of these elem ents are u ser program m able. Notes: Teledyne DALSA FPN and PRN U correction is not available w hen operating the cam era in Area Mod e. For d etails on how to sw itch cam era operation m od es, refer to section 4.5.1 . The follow ing u ser settings are stored separately for forw ard and reverse d irection; analog gain, analog offset, d igital gain, d igital offset, and backgrou nd su btract. They are saved u sing the wus com m and . FPN and PRN U coefficients are stored separately for forw ard and reverse d irection. To save the cu rrent PRN U coefficients, u se the com m and wpc. To save the cu rrent FPN coefficients, u se the com m and wfc. Settings are saved for the cu rrent d irection only. 03-032-20013-04 Piranha HS-xx RoHS User Manual 52 Figure 29: Signal Processing Chain Analog Processing Optim izing offset perform ance and gain in the analog d om ain allow s you to achieve a better signal-to-noise ratio and d ynam ic range than you w ou ld achieve by trying to optim ize the offset in the d igital d om ain. As a resu lt, perform all analog ad ju stm ents prior to any d igital ad ju stm ents. 1. Analog gain is m u ltiplied by the analog signal to increase the signal strength before the A/ D conversion. It is u sed to take ad vantage of the fu ll d ynam ic range of the A/ D converter. For exam ple, in a low light situ ation the brightest part of the im age m ay be consistently com ing in at only 50% of the DN . An analog gain of 6 d B (2x) w ill ensu re fu ll u se of the d ynam ic range of the A/ D converter. Of cou rse the noise is also increased . 2. The analog offset or black level is an ―artificial‖ offset introd u ced into the vid eo path to ensu re that the A/ D w ill fu nction properly. The analog offset shou ld be set so that it is at least 3 tim es the rm s n oise valu e at the cu rrent gain. Digital Processing To optim ize cam era perform ance, d igital signal processing shou ld be com pleted after any analog ad ju stm ents. 03-032-20013-04 1. Fixed pattern noise (FPN ) calibration (calcu lated u sing the ccf com m and ) is u sed to su btract aw ay ind ivid u al pixel d ark cu rrent. 2. The d igital offset (sdo com m and ) enables the su btraction of the ―artificial‖ A/ D offset (the analog offset) so that application of the PRN U coefficient d oesn’t resu lt in artifacts at low light levels d u e to the offset valu e. You m ay w ant to set the sdo valu e if you are not u sing FPN correction bu t w ant to perform PRN U correction. 3. Photo-Response N on-Uniform ity (PRN U) coefficients are u sed to correct the d ifference in responsivity of ind ivid u al pixels (i.e. given the sam e am ou nt of light d ifferent pixels w ill charge u p at d ifferent rates) and the change in light intensity across the im age either becau se of the light sou rce or d u e to optical aberrations (e.g. there m any be m ore light in the center of the im age). PRN U coefficients are Teledyne DALSA Piranha HS-xx RoHS User Manual 53 m u ltipliers and are d efined to be of a valu e greater than or equ al to 1. This ensu res that all pixels w ill satu rate together. When u sing PRN U correction, it is im portant that the A/ D offset and Fixed Pattern N oise (FPN ) or per pixel offsets are su btracted prior to the m u ltiplication by the PRN U coefficient. The su btraction of these 2 com ponents ensu re that the vid eo su pplied to the PRN U m u ltiplier is nom inally zero and zero m u ltiplied by anything is still zero resu lting in no PRN U coefficient ind u ced FPN . If the offset is not su btracted from the vid eo then there w ill be a rtifacts in the vid eo at low light cau sed by the m u ltiplication of the offset valu e by the PRN U coefficients. 4. Backgrou nd su btract (ssb com m and ) and system (d igital) gain (ssg com m and ) are u sed to increase im age contrast after FPN and PRN U calibration. It is u sefu l for system s that process 8-bit d ata bu t w ant to take ad vantage of the cam era’s 12-bit d igital processing chain. For exam ple, if you find that you r im age is consistently betw een 128 and 255DN (8-bit), you can su btract off 128 (ssb 2048) and then m u ltiply by 2 (ssg 0 8192) to get an ou tpu t range from 0 to 255. The follow ing sections are organized as follow s: 1. Section Analog Signal Processing provid es a d etailed d escription of all analog processing chain com m and s. 2. Section Calibrating the Cam era to Rem ove N on-Uniform ity (Flat Field Correction) provid es an overview of how to perform flat field calibration. 3. Section Digital Signal Processing provid es a d etailed d escription of all d igital processing chain com m and s. Analog Signal Processing: Setting Analog Gain and Offset All analog signal processing chain com m and s shou ld be perform ed prior to FPN and PRN U calibration and prior to d igital signal processing com m and s. Setting Analog Gain Purpose: Sets the cam era’s analog gain value. Analog gain is m ultiplied by the analog signal to increase the signal strength before the A/ D conversion. It is used to take ad vantage of the full d ynam ic range of the A/ D converter. Syntax: sag t f Syntax Elem ents: t Tap selection. Use 0 for all taps or 1 to num ber of CCD taps for ind ivid ual tap selection. f Gain value in a range from –10 to +10d B. Exam ple: Teledyne DALSA sag 0 5.2 03-032-20013-04 Piranha HS-xx RoHS User Manual 54 Calibrating Camera Gain Purpose: Instead of m anually setting the analog gain to a specific value, the cam era can d eterm ine appropriate gain values. This com m and calculates and sets the analog gain accord ing to the algorithm d eterm ined by the first param eter. Syntax: ccg i t i Syntax Elem ents: i Calibration algorithm to use. 1 = This algorithm ad justs analog gain so that 8% to 13% of tap ROI pixels are above the specified target value. 2 = This algorithm ad justs analog gain so that the average pixel value in tap’s ROI is equal to the specified target value. 3 = This algorithm ad justs d igital gain so that the average pixel value in tap’s ROI is equal to the specified target. 4 = This algorithm ad justs the analog gain so that the peak tap ROI pixels are ad justed to the specified target. t Tap value. Use 0 for all taps or 1 to num ber of CCD taps for ind ivid ual tap selection. i Calculation target value in a range from 1024 to 4055DN (12 bit LSB). N otes: Exam ple: All d igital settings (d igital offset, FPN and PRN U coefficients), d igital gain, background subtract) should be turned off before calibrating analog gain to avoid unpred ictable results. This function requires constant light input w hile executing. To use this com m and , the CCD shift d irection (scd) should be set to forw ard (0) or reverse (1). If very few tap pixels are w ithin the ROI, gain calculation m ay not be optim al. When all taps are selected , taps outsid e of the ROI are set to the average gain of the taps that are w ithin the ROI. Perform analog gain algorithm s before perform ing FPN and PRN U calibration. ccg 2 0 3040 The follow ing d iagram s su m m arize and provid e an exam ple of how analog gain is calibrated w hen u sing a region of interest. In the follow ing exam ple, analog gain is being set for a tap insid e the region of interest. The peak valu e of the tap is calibrated to the specified target valu e and all other taps rem ain u nchanged . 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 55 Figure 30: Calculating Analog Gain for a Tap inside the Region of Interest Scenario 2: ccg 1 8 3040 Since tap 8 is within the region of interest, tap 8 gain is adjusted so that the peak value is set to 3040. Gain values for all other taps are left unchanged. 4095 Region of Interest 3040 Video Video 0 Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap Tap 7 8 1 2 3 5 6 9 10 11 12 13 14 15 16 4 0 2600 6400 8192 Pi xel N u m ber After analog gain calibration Before analog gain calibration Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 56 In the follow ing exam ple, analog gain is set for all taps. The peak valu e of each tap w ithin the region of interest is calibrated to the specified target valu e. All taps com pletely ou tsid e the region of interest are calibrated to the average analog gain valu e of the taps insid e the region of interest. Figure 31: Calculating Analog Gain for all Taps 4095 Region of Interest Video 3040 Video 0 0 2600 6400 8192 Pixel Number Scenario 3: ccg 1 0 3040 When calibrating all taps, taps completely outside the region of interest (in this example, taps 1to 4 and 14 to 16) are calibrated to the average analog gain of taps within the region of interest. Taps within the region of interest calibrate to the target value. Note: Seams between taps will be visible until you perform PRNU calculation using the ccp command. After analog gain calibration Before analog gain calibration Setting Analog Offset Purpose: Sets the analog offset. The analog offset should be set so that it is at least 3 tim es the rm s noise value at the current gain. Teled yne DALSA configures the analog offset for the noise at the m axim um specified gain and as a result you should not need to ad just the analog offset. Syntax: sao t i Syntax Elem ents: t Tap selection. Use 0 for all taps or 1 to num ber of CCD taps for ind ivid ual tap selection. i Offset value in a range from 0 to 255DN (12 bit LSB). Exam ple: 03-032-20013-04 sao 3 35 Teledyne DALSA Piranha HS-xx RoHS User Manual 57 Calibrating Analog Offset Purpose: Instead of m anually setting the analog offset to a specific value, the cam era can d eterm ine appropriate offset values.This com m and calculates and averages each tap’s pixels w ithin the ROI and sets the offset to achieve the specified average target value. Syntax: cao t i Syntax Elem ents: t Tap selection. Use 0 for all taps or 1 to num ber of CCD taps for ind ivid ual tap selection. i Average target value in a range from 1 to 255DN (12 bit LSB). N otes: Perform analog offset calibration before perform ing FPN and PRN U coefficients. To use this com m and , CCD shift d irection should be controlled internally, either scd 0 or 1 cao 1 50 Exam ple: Updating the Gain Reference To update the analog gain reference: Purpose: Sets the current analog gain setting to be the 0d B point. This is useful after tap gain m atching allow ing you to change the gain on all taps by the sam e am ount. Syntax: ugr Calibrating the Camera to Remove Non-Uniformity (Flat Field Correction) Flat Field Correction Overview This cam era has the ability to calcu late correction coefficients in ord er to rem ove non u niform ity in the im age w hen operating in TDI Mod e. This vid eo correction operates on a pixel-by-pixel basis and im plem ents a tw o point correction for each pixel. This correction can red u ce or elim inate im age d istortion cau sed by the follow ing factors: Fixed Pattern N oise (FPN ) Photo Response N on Uniform ity (PRN U) Lens and light sou rce non -u niform ity Correction is im plem ented su ch that for each pixel: Voutput =[(Vinput - FPN( pixel ) - digital offset) * PRNU(pixel) – Background Subtract] x System Gain w here Teledyne DALSA Voutput = d igital ou tpu t pixel valu e Vinput = d igital inpu t pixel valu e from the CCD 03-032-20013-04 Piranha HS-xx RoHS User Manual 58 PRN U( pixel) = PRN U correction coefficient for this pixel FPN ( pixel ) = FPN correction coefficient for this pixel Backgrou nd Su btract = backgrou nd su btract valu e System Gain = d igital gain valu e The algorithm is perform ed in tw o steps. The fixed offset (FPN ) is d eterm ined first by perform ing a calcu lation w ithou t any light. This calibration d eterm ines exactly how m u ch offset to su btract per pixel in ord er to obta in flat ou tpu t w hen the CCD is not exposed . The w hite light calibration is perform ed next to d eterm ine the m u ltiplication factors requ ired to bring each pixel to the requ ired valu e (target) for flat, w hite ou tpu t. Vid eo ou tpu t is set slightly above the brightest pixel (d epend ing on offset su btracted ). Flat Field Correction Restrictions It is im portant to d o the FPN correction first. Resu lts of the FPN correction are u sed in the PRN U proced u re. We recom m end that you repeat the correction w hen a tem peratu re change greater than 10°C occu rs or if you change the analog gain, integration tim e, binning, or nu m ber of integration stages. Note: If your illumination or white reference does not extend the full field of view of the camera, the camera will send a warning. PRN U correction requ ires a clean, w hite reference. The qu ality of this reference is im portant for proper calibration. White paper is often not su fficient becau se the grain in the w hite paper w ill d istort the correction. White plastic or w hite ceram ic w ill lead to better balancing. For best resu lts, ensu re that: 1. 60 H z am bient light flicker is su fficiently low not to affect cam era perform ance and calibration resu lts. 2. For best resu lts, the analog gain shou ld be ad ju sted for the expected operating cond itions and the ratio of the brightest to d arkest pixel in a tap shou ld be less than 3 to 1 w here: 3> Brightest Pixel (per tap) Darkest Pixel (per tap) The cam era is capable of operating u nd er a range of 8 to 1, bu t w ill clip valu es larger than this ratio. 3. The brightest pixel shou ld be slightly below the target ou tpu t. 4. When 6.25% of pixels from a single row w ithin the region of interest are clipped , flat field correction resu lts m ay be inaccu rate. 5. Correction resu lts are valid only for the cu rrent stage selection. If you change the nu m ber of stages, it is recom m end ed that you recalcu late you r coefficients. 6. Correction resu lts are valid only for the cu rrent analog gain and offset valu es. If you change these valu es, it is recom m end ed that you recalcu late you r coefficients. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 59 How to Perform Flat Field Correction 1 Set up the camera operating environment (i.e. line rate, CCD shift direcion, exposure, offset, gain, etc.) 2 Set the calibration sample size using the command css 3 Set the region of interest to include all of the image’s pixels of importance using the command roi x1 y1 x2 y2. 4 Perform FPN correction. FPN correction should be performed before PRNU correction. 5 Perform PRNU correction 1. Stop all light from entering the camera. (Tip: Cover lens with a lens cap.) 2. Verify that the output signal level is within range by issuing the command gl or gla. If there are too many zeros in the output data (more than 6.25% of output data within the roi) , increase the analog offset (sao) or use the automated algorithm cao t i. If the average of the pixels is more than 25% of the maximum signal swing, ensure that no light is entering the camera and reduce the analog offset or gain level (sag). 3. Issue the command ccf. The camera will respond with OK> if no error occurs. FPN correction automatically calibrates FPN coefficients. 4. After the correction is complete, you must save these settings to non-volatile memory so they will be remembered and be reusable. To do so, issue the commands wfc i where i is the coefficient set to save and wus. Forward and reverse direction settings are stored separately and coefficients must be saved before switching direction. 5. If you will be operating the camera in the opposite camera shift direction, repeat steps 2 through 4 after changing direction. 6. To verify output, enable the FPN coefficients using the command epc 1 0. You should see close to zero output. Perform PRNU correction next to determine the multiplication factors required to bring each pixel to the required value (balance target) for flat, white output. 1. Place a white reference in front of the camera and remove lens cap. 2. Verify that the output signal level is within range by issuing the command gl or gla. If the signal level is too low, adjust the analog gain (sag) or use the automated algorithm ccg i 0 i. DALSA recommends a target value of about 80% of maximum signal swing per tap. If you change the gain, FPN coefficients should be recalculated. 3. Issue the command ccp or cpa 2 i where i is equal to or greater than the maximum pixel in the image. The camera will respond with OK> if no error occurs. 4. After the correction is complete, you must save these settings to non-volatile memory so they will be remembered and be reusable. To do so, issue the commands wpc i where i is the coefficient set to save and wus. Forward and reverse direction settings are stored separately and coefficients must be saved before switching direction. 5. If you will be operating the camera in the opposite camera shift direction, repeat steps 2 through 4 after changing direction. 6. Enable the coefficients using the command, epc 1 1. You should see a flat line with a couple of DN peak to peak residual patterns. It is necessary to average many lines to see the residual FPN/PRNU. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 60 Digital Signal Processing Subtracting Background Purpse: Use the background subtract com m and after perform ing flat field correction if you w ant to im prove your im age in a low contrast scene. You should try to m ake your d arkest pixel in the scene equal to zero. Sytax ssb t i Syntax Elem ents: t Tap selection. Allow able range is 1 to num ber of CCD taps, or 0 for all taps. i Subtracted value in a range in DN from 0 to 4095 (12 bit LSB). N otes: Related Com m and s ssg Exam ple ssb 0 500 See the follow ing section for d etails on the ssg com m and . Setting Digital Gain Purpose: Im proves signal output sw ing after a background subtract. When subtracting a d igital value from the d igital vid eo signal, using the ssb com m and , the output can no longer reach its m axim um . Use the this com m and to correct for this w here: ssg value = Syntax: ssg t i Syntax Elem ents: t max output value max output value - ssb value Tap selection. Allow able ran ge is 1 to num ber of CCD taps, or 0 for all taps. i Gain setting. The gain ranges are 0 to 65535. The d igital vid eo values are m ultiplied by this value w here: Digital Gain= N otes: 03-032-20013-04 i 4096 Use this com m and in conjunction w ith the ssb com m and (d escribed above). Teled yne DALSA recom m end s that i is never set below 4096. Setting i to 0 w ill result in only 0 output d ata. Digital offset is set to zero after send ing the ccf com m and Related Com m and s: ssb, sdo Exam ple: ssg 1 4500 Teledyne DALSA Piranha HS-xx RoHS User Manual 61 Setting Digital Offset Purpose: Sets the d igital offset. Digital offset is set to zero w hen you perform FPN correction (ccf com m and ). If you are unable to perform FPN correction, you can partially rem ove FPN by ad justing the d igital offset. Syntax: sdo t i Syntax Elem ents: t Tap selection. Allow able range is 1 to num ber of CCD taps, or 0 for all taps. i Subtracted offset value in a range from 0 to 511 (12-bit LSB). N otes: Related Com m and s: ssg, ccf Exam ple: sdo 0 100 When su btracting a d igital valu e from the d igital vid eo signal, the ou tpu t can no longer reach its m axim u m u nless you apply d igital gain u sing the ssg com m and . See the previou s section for d etails on the ssg com m and . Performing FPN Correction Teledyne DALSA Syntax: Perform s FPN correction and elim inates FPN noise by subtracting aw ay ind ivid ual pixel d ark current. For a com plete d escription on how to use this com m and , see the Flat Field Correction Overview on page 57. Syntax: ccf N otes: Before perform ing this com m and , stop all light from entering the cam era. (Tip: cover lens w ith a lens cap.) Perform all analog and d igital ad ju stm ents before perform ing FPN correction. Perform FPN correction before PRN U correction. The ccf com m and is not available w hen the CCD d irection is externally controlled (scd 2) (see Direction Control on page 21). Direction control m u st be stable w hile the cam era is calcu lating coefficients. Available in TDI Mod e only. Save coefficients before changing d irections, changing operating m od e, or pow ering off. Related Com m and s: ccp, cpa Exam ple: ccf 03-032-20013-04 Piranha HS-xx RoHS User Manual 62 Setting a Pixel’s FPN Coefficient Purpose: Syntax Sets an ind ivid ual pixel’s FPN coefficient. Syntax Elem ents: x sfc x i The pixel num ber from 1 to sensor pixel count. i Coefficient value in a range from 0-511 (12-bit LSB). N otes: Exam ple: sfc 10 50 Available in TDI Mod e only. Returning FPN Coefficients Purpose: Syntax: Returns a pixel’s FPN coefficient value in DN (12-bit LSB) Syntax Elem ents: i gfc i The pixel num ber to read in a range from 1 to sensor pixel count. N otes: Exam ple: gfc 10 Available in TDI Mod e only. Setting a Range of FPN Coefficients Purpose: Syntax Sets a range of pixel FPN coefficients. Syntax Elem ents: x1 sfr x1 x2 i The first pixel num ber of the range. x2 The last pixel num ber of the range. i Coefficient value in a range from 0-2048. 03-032-20013-04 N otes: Exam ple: sfr 1 100 80 The first pixel of the range m ust be less than the last. Teledyne DALSA Piranha HS-xx RoHS User Manual 63 Performing PRNU Correction Purpose: Perform s PRN U correction to a cam era calibrated peak value and elim inates the d ifference in responsivity betw een the m ost and least sensitive pixel creating a uniform response to light. For a com plete d escription on how to use this com m and , see the Flat Field Correction Overview on page 57. Syntax ccp N otes: Perform all analog ad ju stm ents before calcu lating PRN U. Perform FPN correction before PRN U correction. If FPN cannot be calibrated , u se the rpc com m and to reset all coefficients to zero, and save them to m em ory w ith the wpc com m and . You can then ad ju st the d igital offset ( sdo com m and ) to rem ove som e of the FPN . The ccp com m and is not available w hen the cam era shift d irection is externally controlled . Direction control m u st be stable w hile the cam era is calcu lating coefficients (see Direction Control on page 21). Ensu re cam era is operating at its expected analog gain, integration tim e, and tem peratu re. To avoid losing you r cu rrent d irection coefficients, you m u st save the PRN U coefficients u sing the com m and wpc before changing cam era shift d irection or changing from TDI to Area Mod e. Available in TDI Mod e only. Execu ting these algorithm s cau ses the ssb com m and to be set to 0 (no backgrou nd su btraction) and the ssg com m and to 4096 (u nity d igital gain). The pixel coefficients are d isabled (epc 0 0) d u ring the algorithm execu tion bu t retu rned to the state they w ere prior to com m and execu tion. Performing PRNU to a user entered value Purpose: Perform s PRN U calibration to user entered value and elim inates the d ifference in responsivity betw een the m ost and least sensitive pixel creating a uniform response to light. Using this com m and , you m ust provid e a calibration target. Executing these algorithm s causes the ssb com m and to be set to 0 (no background subtraction) and the ssg com m and to 4096 (unity d igital gain). The pixel coefficients are d isabled (epc 0 0) d uring the algorithm execution but returned to the state they w ere prior to com m and execution. Syntax: cpa i1 i2 Syntax Elem ents: i1 PRN U calibration algorithm to use: 1 = This algorithm first ad justs each tap’s analog gain so that 813% of pixels w ithin a tap are above the value specified in the target value param eter. PRN U calibration then occurs using the peak pixel in the region of inter est. This algorithm is recom m end ed for use only w hen FPN is negligible and FPN coefficients are set to zero. Since this Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 64 algorithm ad justs the analog gain, it also affects FPN . If FPN is calibrated prior to running this algorithm , FPN w ill be observable in d ark cond itions and an incorrect FPN value w ill be used d uring PRN U calibration resulting in incorrect PRN U coefficients. 2 = Calculates the PRN U coefficients using the entered target value as show n below : Target PRNU Coefficient = i (AVG Pixel Value ) - (FPN + sdo value) i i The calculation is perform ed for all sensor pixels but w arnings are only applied to pixels in the region of interest. This algorithm is useful for achieving uniform output across m ultiple cam eras. Is is im portant that the target value (set w ith the next param eter) is set to be at least equal to the high est pixel across all cam eras so that all pixels can reach the highest pixel value d uring calibration. 3 = This algorithm includ es an analog gain ad justm ent prior to PRN U calibration. Analog gain is first ad justed so that the peak pixel value in tap’s ROI is w ithin 97 to 99% of the specified target value. It then calculates the PRN U coefficients using the target value as show n below : Target PRNU Coefficient = i (AVG Pixel Value ) - (FPN + sdo value) i i The calculation is perform ed for all sensor pixels but w arnings are only applied to pixels in the region of interest. This algorithm is useful for achieving uniform output across m ultiple cam eras. This algorithm is useful for achieving uniform output across m ultiple cam eras by first ad justing analog gain and then perform ing PRN U calibration. This algorithm is recom m end ed for use only w hen FPN is negligible and FPN coefficients are set to zero. Since this algorithm ad justs the analog gain, it also affects FPN . If FPN is calibrated prior to running this algorithm , FPN w ill be observable in d ark cond itions and an incorrect FPN value w ill be used d uring PRN U calibration resulting in incorrect PRN U coefficients. This algorithm is m ore robust and repeatable than algorithm 1 because it uses an average pixel value rather than a num ber above target. H ow ever, this algorithm is slow er. 4 = Calculates the PRN U coefficient in the sam e w ay as cpa 2 w ith the exception that this com m and only calculates PRN U for pixels w ithin the current Region of Interest (ROI). i2 Peak target value in a range from 1024 to 4055DN . The target value m ust be greater than the current peak output value. N otes: 03-032-20013-04 Perform all analog ad ju stm ents before calibrating PRN U. This com m and perform s the sam e fu nction as the cpp com m and bu t forces you to enter a target valu e. Calibrate FPN before calibrating PRN U. If you are not perform ing FPN calibration then issu e the rpc (reset pixel coefficients) com m and and set the sdo (set d igital offset) valu e Teledyne DALSA Piranha HS-xx RoHS User Manual 65 so that the ou tpu t is near zero u nd er d ark. Exam ple: cpa 1 600 Setting a Pixel’s PRNU Coefficient Purpose: Syntax: Sets an ind ivid ual pixel’s PRN U coefficient. Syntax Elem ents: i1 spc i1 i2 The pixel num ber from 1 to sensor pixel count. i2 Coefficient value in a range from 0 to 28671 w here: prnu coefficient = 1 + i 4096 Setting a range of Pixel PRNU Coefficients Purp ose: Syntax: Sets a range of pixel PRN U coefficients. Syntax Elem ents: i1 spr i1 i2 x The first pixel num ber of the range. i2 The last pixel num ber of the range. x Coefficient value in a range from 0 to 28671 w here: prnu coefficient = 1 + N otes: Exam ple: spr 4001 4096 0 i 4096 The first pixel of the range m ust be less than the last. Returning FPN and PRNU Coefficients Purpose: Returns all the current pixel coefficients in the ord er FPN , PRN U , FPN , PRN U… for the range specified by x1 and x2. The cam era also returns the pixel num ber w ith every fifth coefficient. Syntax: dpc x1 x2 Syntax Elem ents: x1 Start pixel to d isplay in a range from 1 to (sensor pixel count -1). x2 End pixel to d isplay in a range from x1 +1 to sensor pixel count. N otes: Teledyne DALSA If x2<x1 then x2 is forced to be x1. 03-032-20013-04 Piranha HS-xx RoHS User Manual 66 dpc 10 20 Exam ple: Enabling and Disabling Pixel Coefficients Purpose: Enables and d isables FPN and PRN U coefficients. Syntax: epc i1 i2 Syntax Elem ents: i1 FPN coefficients. 0 = FPN coefficients d isabled 1 = FPN coefficients enabled i2 PRN U coefficients. 0 = PRN U coefficients d isabled 1 = PRN U coefficients enabled epc 0 1 Exam ple: 4.5.3 End-of-line Sequence Purpose: Prod uces an end -of-line sequence that provid es basic calculations includ ing "fram e counter", "line sum ", "pixels above threshold ", "pixels below threshold ", and "d erivative line sum " w ithin the region of interest. These basic calculations are used to calibrate analog offset (cao) and calibrate analog gain (ccg). To further aid in d ebugging and cable/ d ata path integrity, the first three pixels after Line Valid are "aa", "55", "aa". Refer to the follow ing table. These statistics refer only to pixels w ithin the region of interest. Syntax: els i Syntax Elem ents: i 0 Disable end -of-line sequen ce 1 Enable end -of-line sequence N otes: Exam ple: els 1 LVAL is not high d u ring the end -of-line statistics. Table 18: End-of-Line Sequence Description Location Value 03-032-20013-04 1 A’s 2 5’s 3 A’s 4 4 bit counter LSB justified (Upper 4 bits are row counter in Area Mod e) 5 Line sum (7…0) 6 Line sum (15…8) Description By ensuring these values consistently toggle betw een "aa" and "55", you can verify cabling (i.e. no stuck bits) Counter increm ents by 1. Use this value to verify that every line is output LSB justified . Use these values to help calculate line average and gain Teledyne DALSA Piranha HS-xx RoHS User Manual 67 Location Value Description 7 Line sum (23…16) 8 Line sum (31…24) 9 Line sum (39…32) 10 Pixels above threshold (7…0) 11 Pixels above threshold (15…8) 12 Pixels above threshold (23…16) 13 Pixels below threshold (7…0) 14 Pixels below threshold (15…8) 15 Pixels below threshold (23…16) 16 Differential line sum (7..0) 17 Differential line sum (15…8) 18 Differential line sum (23…16) 19 Differential line sum (31…24) 20 Differential line sum (39…32) Monitor these values (either above or below threshold ) and ad just cam era d igital gain and background subtract to m axim ize scene contrast. This provid es a basis for autom atic gain control (AGC) Use these values to focus the cam era. Generally, the greater the sum the greater the im age contrast and better the focus. Setting Thresholds Setting an Upper Threshold Purpose: Sets the upper threshold lim it to report in the end -of-line sequence. Syntax: sut i Syntax Elem ents: i N otes: Related Com m and s: els, slt Exam ple: sut 1024 Upper threshold lim it in range from 0 to 4095. Teledyne DALSA LVAL is not high d u ring the end -of-line statistics. 03-032-20013-04 Piranha HS-xx RoHS User Manual 68 Setting a Lower Threshold Purpose: Sets the low er threshold lim it to report in the end -of-line sequence. Syntax: slt i Syntax Elem ents: i N otes: Related Com m and s: els, sut Exam ple: slt 1024 Upper threshold lim it in range from 0 to 4095. LVAL is not high d u ring the end -of-line statistics. 4.6 Saving and Restoring Settings 4.6.1 Saving and Restoring Factory and User Settings Figure 32: Saving and Restoring Overview Factory Settings rus,lpc User Settings rfs Current Session wus,wpc,wfc Factory Settings You can restore the original factory settings, inclu d ing the factory calibrated pixel coefficient set, at any tim e u sing the com m and rfs. User Settings There are tw o m ain sets of u ser settings: Area Mod e u ser settings and TDI Mod e u ser settings. After issu ing the u ser settings save com m and , wus, settings are saved d epend ing on w hich m od e the cam era is operating in w hen the com m and is issu ed . Also, w hen operating in TDI Mod e, analog gain and offset, d igital gain and offset, and backgrou nd su btract valu es are saved as d istinct valu es for Forw ard and Reverse d irections. In other w ord s, you can program the cam era to operate w ith an analog gain valu e of +5d b in Forw ard d irection and an analog gain valu e of +3d b in Reverse d irection. Forw ard and Reverse d irection settings are saved sim u ltaneou sly w ith the wus com m and . N ote that w hen you sw itch d irections, the settings saved for that d irection are au tom aticall y load ed . 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 69 Figure 33: How User Settings are Stored in the HS-xx Cameras after issuing the wus Command START User issues wus command Camera is operating in Area Mode Area Mode User Settings All settings saved for Area Mode only Camera is operating in TDI Mode TDI Mode User Settings All settings, except pixel coefficients, saved for TDI Mode only. You can save or restore you r u ser settings to non -volatile m em ory u sing the follow ing com m and s. To save all cu rrent u ser settings to EEPROM for the cu rrent m od e for both TDI shift d irections, u se the com m and wus. The cam era w ill au tom atically restore the saved u ser settings w hen pow ered u p. WARNING: While settings are being written to nonvolatile memory, do not power down camera or camera memory may be corrupted. To restore the last saved u ser settings, inclu d ing the last u sed pixel coefficient set, for the cu rrent m od e, u se the com m and rus. Current Session Settings These are the cu rrent operating settings of you r cam era. These settings are stored in the cam era’s volatile m em ory and w ill not be restored once you pow er d ow n you r cam era. To save these settings for reu se at pow er u p, u se the com m and wus. Settings are saved for the cu rrent operating m od e (TDI or Area) only. 4.6.2 Saving and Restoring PRNU and FPN Coefficients Note: Available in TDI Mode only. Teledyne DALSA Pixel coefficient sets are saved separately for Forw ard and Reverse d irection, d epend ing on w hich d irection the cam era is operating in w hen the wpc or wfc com m and is issu ed . It is im portant that you save pixel coefficients before sw itching CCD shift d irection or cu rrent coefficient valu es w ill be lost. 03-032-20013-04 Piranha HS-xx RoHS User Manual 70 Figure 34: How Pixel Coefficients are saved in the HS-xx Cameras after issuing the wpc or wfc Command START User issues wpc or wfc command. Note: Camera must be operating in TDI Mode Camera is operating in forward direction Camera is operating in reverse direction Coefficients saved for forward direction only Coefficients saved for reverse direction only. Saving the Current PRNU Coefficients Purpose: Syntax: Saves the current PRN U coefficients for the current d irection. Syntax Elem ents: i wpc i PRN U coefficients set to save. 1 = Coefficient set one 2 = Coefficient set tw o 3 = Coefficient set three 4 = Coefficient set four N otes: Exam ple: Available in TDI m od e only. Available only w hen operating the cam era in internal d irection contol (scd 0 or 1) wpc 2 Saving the Current FPN Coefficients Purpose: Syntax: Saves the current FPN coefficients for the current d irection. Syntax Elem ents: i wfc i FPN coefficients set to save. 1 = Coefficient set one 2 = Coefficient set tw o 3 = Coefficient set three 4 = Coefficient set four N otes: Exam ple: 03-032-20013-04 Available in TDI m od e only. Available only w hen operating the cam era in internal d irection contol (scd 0 or 1) wfc 2 Teledyne DALSA Piranha HS-xx RoHS User Manual 71 Loading a Saved Set of Coefficients Purpose: Load s a saved set of pixel coefficients for the current d irection . A factory calibrated set of coefficients is available. Syntax: lpc i Syntax Elem ents: i FPN coefficients set to save. 0 = Factory calibrated pixel coefficients. 1 = Coefficient set one 2 = Coefficient set tw o 3 = Coefficient set three 4 = Coefficient set four N otes: Exam ple: Available in TDI m od e only. Available only w hen operating the cam era in internal d irection contol (scd 0 or 1). When operating in external d irection control, you m u st sw itch to internal d irection control, load the coefficient set, and then retu rn to external d irection contol. lpc 0 Resetting the Current Pixel Coefficients Purpose: Resets the current pixel coefficients to zero. This com m and d oes not reset saved coefficients. Syntax: rpc N otes: The d igital offset is not reset. 4.6.3 Rebooting the Camera The com m and rc reboots the cam era. The cam era starts u p w ith the last saved settings and the bau d rate u sed before reboot. Previou sly saved pixel coefficients are also restored . Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 72 4.7 Diagnostics 4.7.1 Generating a Test Pattern Purpose: Generates a test pattern to aid in system d ebugging. The test patterns are useful for verifying proper tim ing and connections betw een the cam era and the fram e grabber. The follow ing tables show each available test pattern. Syntax: svm i Syntax Elem ents: i 0 Vid eo. 1 12 bit test pattern 1 (ram p) 2 8 bit test pattern 2 (step) N otes: When returning to vid eo (svm 0) after view ing a test pattern, the cam era restores the saved user settings for d igital offset (sdo), enable pixel coefficients (epc), set subtract background (ssb), and set system d igital gain (ssg). The follow ing d iagram s show 12-bit pixel values. When th operating in 8-bit m od e, pixel values w ill be 1/ 16 of pixel values in the d iagram . svm 2 Exam ple: 03-032-20013-04 20 55 95 40 0 47 0 20 72 30 23 10 6 10 24 10 23 71 24 30 10 30 78 30 79 20 48 20 47 30 71 30 72 47 71 20 72 95 48 40 20 54 48 95 20 40 30 10 23 10 24 24 71 10 30 30 47 20 20 Area Mod e Forw ard , smm 0, svm 1 72 30 48 20 0 10 30 10 31 TDI Mod e Reverse, smm 1, svm 1 95 TDI Mod e Forw ard , smm 1, svm 1 23 10 40 TDI Mod e Reverse, smm 0, svm 1 7 TDI Mod e Forw ard , smm 0, svm 1 0 Table 19: 4k Test Patterns 4k Camera Test Pattern Operating Mode Teledyne DALSA Piranha HS-xx RoHS User Manual 73 31 78 10 30 31 30 08 6 80 40 10 7 10 10 30 5 20 32 32 20 30 56 TDI or Area Mod e, smm 0, svm 2 10 08 Area Mod e Reverse, smm1, svm 2 20 30 79 30 78 55 20 78 30 55 20 7 54 54 20 40 80 6 Area Mod e Forw ard , smm1, svm 1 7 30 10 Area Mod e Reverse, smm 0, svm 1 Table 20: 8k Test Patterns 8k Test Pattern Camera Operating Mode 95 84 56 45 17 06 78 67 39 28 00 89 61 50 22 11 83 72 44 33 05 94 66 5 27 16 88 477 749 238 511 40 35 38 33 36 31 33 28 31 26 29 23 26 21 24 19 21 16 19 14 17 11 14 95 12 7 9 12 2 477 7 98 8 23 8 74 9 0 35 7 24 6 51 8 4 91 91 35 6 33 5 6 2 7 36 2 75 31 3 96 2 12 34 73 0 99 6 14 7 01 12 51 14 40 19 13 01 12 40 51 79 90 18 29 57 68 96 07 35 46 74 85 13 24 52 12 17 14 19 16 21 19 24 21 26 23 29 26 31 28 33 31 36 33 96 2 17 12 12 01 19 51 14 40 21 9 16 0 79 24 29 19 18 26 68 21 57 29 07 23 96 31 46 26 35 33 85 73 34 14 12 34 12 85 28 74 31 46 26 35 29 07 23 9 26 6 68 21 57 24 29 19 18 21 90 33 8 0 7 75 7 24 6 99 6 73 51 Area Mod e Forw ard , smm 1, svm 1 6 4 75 48 35 91 38 63 33 52 36 24 Area Mod e Reverse, smm 0, svm 1 7 5 5 1 24 7 6 Area Mod e Forw ard , smm 0, svm 1 0 51 1 TDI Mod e Forw ard , smm 1, svm 1 35 84 40 9 33 5 45 38 3656 17 31 0 28 6 67 33 78 26 28 31 3 23 9 89 29 0 21 0 50 26 6 19 1 11 24 2 16 2 72 21 83 14 33 19 44 11 94 17 05 95 5 14 66 71 6 0 TDI Mod e Reverse, smm 1, svm 1 Teledyne DALSA 1 8 9 7 8 6 6 4 5 3 4 2 3 1 2 0 1 9 0 8 9 7 5 6 7 5 6 4 5 51 23 74 47 98 71 122 95 146 119 170 143 194 167 18 191 242 215 266 238 290 262 313 867 378 310 361 334 85 58 09 2 3 3 4 2 3 TDI Mod e Forw ard , smm 0, svm 1 03-032-20013-04 7 7 51 4 99 5 24 5 40 24 0 80 38 24 49 6 48 35 68 75 2 10 08 33 12 96 1 14 72 72 9 30 56 00 20 64 28 15 12 25 17 76 44 22 20 32 88 20 32 76 20 88 22 17 44 25 15 00 28 64 12 56 30 33 12 10 08 36 23 31 12 28 73 33 84 26 34 31 45 23 95 29 06 21 56 26 67 19 17 24 28 16 78 21 89 14 39 75 2 68 24 35 51 33 49 6 90 35 6 24 0 38 TDI or Area Mod e, Forw ard or Reverse, sm m 1, svm 2 80 TDI or Area Mod e, smm 1 or 2, svm 2 40 Area Mod e Reverse, smm 1, svm 1 12 00 Piranha HS-xx RoHS User Manual 74 4.7.2 Returning Video Information The cam era’s m icrocontroller has the ability to read vid eo d ata w hen operating the cam era in TDI Mod e. This fu nctionality can be u sed to verify cam era o peration and to perform basic testing w ithou t having to connect the cam era to a fram e grabber. This inform ation is also u sed for collecting line statistics for calibrating the cam era. Returning a Single Line of Video Purpose: Returns a com plete line of vid eo (w ithout pixel coefficients or test pattern) d isplaying one pixel value after another. It also d isplays the m inim um , m axim um , and m ean value of the line sam pled w ithin the region of interest (the region of interest com m and is explained in section Setting a Region of Interest). Use the gl com m and , or the follow ing gla com m and , to ensure the proper vid eo input range into the processing chain before executing any pixel calibration com m and s. Syntax: gl x1 x2 Syntax Elem ents: x1 Colum n start num ber. Must be less than the colum n end num ber in a range from 1 to (column resolution – 1). x2 Colum n end num ber. Must be greater than the colum n start num ber in a range from 2 to sensor resolution. N otes: 03-032-20013-04 If x2 x1 then x2 is forced to be x1. Analog gain, analog offset, d igital offset, background subtract, and d igital system gain are applied to the d ata. FPN and PRN U coefficients are not includ ed in the d ata. Values returned are in 12 bit DN . Available in TDI Mod e only. Related Com m and s roi Exam ple: gl 10 20 Teledyne DALSA Piranha HS-xx RoHS User Manual 75 Returning Averaged Lines of Video Setting the Number of Lines to Sample Purpose: Sets the num ber of lines to sam ple w hen using the gla com m and or for pixel coefficient calculations. Syntax: css i Syntax Elem ents: i N um ber of lines to sam ple. Allow able values are 256, 512, or 1024 (factory setting). To return the current setting, use the gcp com m and . gla N otes: Related Com m and s: Exam ple: css 1024 Returning the Average of Multiple Lines of Video Purpose: Returns the average for m ultiple lines of vid eo d ata (w ithout pixel coefficients or test pattern). The num ber of lines to sam ple is set and ad justed by the css com m and . The cam era d isplays the Min., Max., and Mean statistics for the pixels in the region of interest (the region of interest com m and is explained in section Setting a Region of Interest). Syntax: gla x1 x2 Syntax Elem ents: x1 Colum n start num ber. Must be less than the colum n end num ber in a range from 1 to (column resolution – 1). x2 Colum n end num ber. Must be greater than the colum n start num ber in a range from 2 to colum n resolution. N otes: Related Com m and s: Exam ple: If x2 x1 then x2 is forced to be x1. Analog gain, analog offset, d igital offset, background subtract, and d igital system gain are applied to the d ata. FPN and PRN U coefficients are not includ ed in the d ata. Values returned are in 12 bit DN . Available in TDI Mod e only. css, roi gla 10 20 4.7.3 Temperature Measurement The tem peratu re of the cam era can be d eterm ined by u sing the vt com m and . This com m and w ill retu rn the internal chip tem peratu re in d egrees Celsiu s. For proper operation, this valu e shou ld not exceed 75°C. Note: If the cam era reaches 75°C, the cam era w ill shutdow n and the LED w ill flash red. If this occu rs, the cam era must be rebooted u sing the com m and , rc or can be pow ered d ow n m anu ally. You w ill have to correct the tem peratu re problem or the cam era w ill shu td ow n again. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 76 4.7.4 Voltage Measurement The com m and vv d isplays the cam era’s inpu t voltage. N ote that the voltage m easu rem ent featu re of the cam era provid es only approxim ate resu lts (typically w ithin 10%). The m easu rem ent shou ld not be u sed to set the applied voltage to the cam era bu t only u sed as a test to isolate gross problem s w ith the su pply voltage. 4.7.5 Camera Frequency Measurement Purpose: Returns the frequency for the requested Cam era Link control signal Syntax: gsf i Syntax Elem ents: i Cam era Link control signal to m easure: 1: CC1 (EXSYN C) 2: CC2 (Spare) 3: CC3 (Forw ard ) 4: CC4 (Spare) gsf 1 Exam ple: 4.7.6 Returning Camera Settings Returning All Camera Settings with the Camera Parameter Screen The cam era param eter (gcp) screen retu rns all of the cam era’s cu rrent settings. Figu re 35 below d escribes the gcp screen for the Piranha H S-8k cam era. To read all current camera settings, use the command: gcp Syntax: Figure 35: Example GCP Screen for HS-40-04k40 TDI Mode Operation GCP Screen CAMERA 03-032-20013-04 Description SETTINGS Camera Model No.: HS-xx-xxxxx-xx-R Cam era m od el num ber. Sensor Serial No.: xxxxxxxxx Sensor serial num ber. Firmware Design Rev.: xx-xx-xxxxx-xx Firm w are d esign revision num ber. CCI Version: xx-xxx-xxxxx-xx Cam era control inform ation. FPGA Version: xx-xx-xxxx-xx DSP d esign revision num ber. UART Baud Rate: 9600 Serial com m unication connection speed set w ith the sbr com m and . See section Setting Baud Rate for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual 77 GCP Screen Teledyne DALSA Description TDI Mode: tdi Current operating m od e, either TDI or Area set w ith the tdi com m and . See section 4.5.1 for d etails. Exposure Mode: 7 Current exposure m od e value set w ith the sem com m and . SYNC Frequency: 5000.00 Hz Current line rate. Value is set w ith the ssf com m and . CCD Direction: internal/forward CCD shift d irection set w ith the scd com m and . Stage Selection 96 N um ber of integration stages set w ith the stg com m and . See section 4.2 Selecting the N um ber of CCD Integration Stages for d etails. Horizontal Binning 1 H orizontal binning value set w ith the sbh com m and . See section 4.3.4 Increasing Sensitivity w ith Binning for d etails. Vertical Binning 1 Vertical binning value set w ith the sbv com m and . See section 4.3.4 Increasing Sensitivity w ith Binning for d etails. Video Mode: video Current vid eo m od e value set w ith the svm com m and . See section 4.7.1 Generating a Test Pattern for d etails. Region of Interest: (1,1)to(8192,1) Region of interest size set w ith the roi com m and . See section Setting a Region of Interest for d etails. End-Of-Line Sequence: on States w hether an end -ofline sequence is turned on or off. Set using the eol com m and . See section 4.5.3 End -of-line Sequence for d etails. FFC Coefficient Set: 0 Current pixel coefficient set load ed . Refer to section 4.6.2 Saving and Restoring PRN U and FPN Coefficients for d etails. FPN Coefficients: off States w hether FPN coefficients are on or off. Set w ith the epc com m and . Refer to section Digital Signal Processing for d etails. PRNU Coefficients: off States w hether PRN U coefficients are on or off. 03-032-20013-04 Piranha HS-xx RoHS User Manual 78 GCP Screen Description Set w ith the epc com m and . Refer to section Digital Signal Processing for d etails. 03-032-20013-04 Number of Line Samples: 1024 N um ber of lines sam ple w ith the gla com m and set w ith the css com m and . See section 4.7.2 Returning Vid eo Inform ation for d etails. Lower Threshold: 0 Low er threshold value set w ith the slt com m and . See section 4.5.3 End -ofline Sequence for d etails. Upper Threshold: 4095 Upper threshold value set w ith the sut com m and . See section 4.5.3 End -ofline Sequence for d etails. Camera Link Mode: 21, Full, 8 taps, 8 bits, no time MUX Cam era Link configuration set w ith the clm com m and . See section 4.4.2 Setting the Cam era Link Mod e for d etails. Output Throughput: 320 Cam era throughput value set w ith the sot com m and . See section 4.4.3 Setting the Cam era Throughput for d etails. Pretrigger 0 Pretrigger set w ith the spt com m and . See section 4.4.5 Setting a Pretrigger. Mirroring Mode: 0, left to right Read out d irection set w ith the smm com m and . See section 4.4.4 Setting the Pixel Read out Direction for d etails. Analog Gain (dB): 0.0 0.0 0.0 0.0 Analog gain settings set w ith the sag com m and . See section Analog Signal Processing for d etails. Analog Reference Gain (dB): 0.0 0.0 0.0 0.0 Analog reference gain set w ith the ugr com m and . See section Analog Signal Processing for d etails. Total Analog Gain (dB): 0.0 0.0 0.0 0.0 This is the sum of the analog gain and analog gain reference values and is the total analog gain being used by the cam era. Teledyne DALSA Piranha HS-xx RoHS User Manual 79 GCP Screen Description Analog Offset: 80 80 80 80 Analog offset settings set w ith the sao com m and . See section Analog Signal Processing for d etails. Digital Offset: 80 80 80 80 Digital offset settings set w ith the sdo com m and . See section Digital Signal Processing for d etails. Background Subtract: 0 0 0 0 Background subtract settings set w ith the ssb com m and . See section Digital Signal Processing for d etails. System Gain: 4096 4096 4096 4096 Digital gain settings set w ith the ssg com m and . See section Digital Signal Processing for d etails. Returning Camera Settings with Get Commands You can also retu rn ind ivid u al cam era settings by inserting a ― get” in front of the com m and that you w ant to qu ery. If the com m and has a tap or pixel nu m ber param eter, you m u st also insert the tap nu m ber or pixel nu m ber that you w ant to qu ery. Refer to Table 21 below for a list of available com m and s. To view a help screen listing the follow ing get com m and s, u se the com m and gh. Table 21: Get Commands Syntax Parameters t Returns the analog offset for the tap ind icated t = tap selection, either 1 to number of CCD taps, or 0 for all taps get ccf x1 x2 Returns the FPN pixel coefficients for the pixel range ind icated . x1 = Pixel start num ber x2= Pixel end num ber get ccp x1 x2 Returns the PRN U pixel coefficients for the pixel range ind icated . x1 = Pixel start num ber x2= Pixel end num ber get clm Returns the current Cam era Link m od e. get css Returns the num ber of line sam ples averaged for pixel coefficient calculations or for output of gla com m and . get dpc Teledyne DALSA Description get cao X1 X2 Returns the pixel coefficients in the ord er FPN , PRN U, FPN , PRN U, … x1 = Pixel start num ber x2= Pixel end num ber in a range from 1 to sensor pixel count. 03-032-20013-04 Piranha HS-xx RoHS User Manual 80 Syntax Parameters Description get els Returns w hether the end -of-line statistics are turned off or on. 0: Off 1: On get epc Returns w hether pixel coefficients are enabled or d isabled . The first param eter returns the FPN coefficients setting w here: 0 = FPN coefficients d isabled 1 = FPN coefficients enabled The second param eter returns the PRN U coefficients setting w here: 0 = PRN U coefficients d isabled 1 = PRN U coefficients enabled get gcm Returns the cam era’s m od el num ber get gcs Returns the cam era’s serial num ber get gcv Returns the cam era’s softw are version. get gfc x Returns the FPN pixel coefficient for the pixel ind icated . get gl x1 x2 Returns pixel values for the pixel range specified . get gla x1 x2 Returns the average of the pixel range ind icated . get gpc x Returns PRN U coefficient. x = pixel num ber to read in a range from 1 – sensor pixel count. get gsf i Returns the frequency of the Cam era Link control signal ind icated , either 1, 2, 3, or 4. get h Returns the onscreen help m enu . get lpc Returns the current coefficient set num ber. get rc 03-032-20013-04 get rfs Returns w hether factory settings have been saved . The cam era alw ays returns 1 (factory settings have been saved ). get roi Returns the current region of interest. get rus Returns w hether user settings have been saved . 0 = N o user settings saved 1 = User settings have been saved get sag t Returns the analog gain in d B for the tap ind icated t = Tap value. 0 for all taps or 1-number of CCD taps for ind ivid ual tap selection. get sao t Returns the analog offset for the tap ind icated . t = 0 for all taps or 1 to number of CCD taps for ind ivid ual tap selection. get sbh Returns the horizontal binning value. get sbr Returns the speed of cam era serial com m unication port. Teledyne DALSA Piranha HS-xx RoHS User Manual Syntax 81 Parameters get sbv Returns the vertical binning value. get scd Returns the CCD shift d irection w here: 0 = Forw ard TDI shift d irection. 1 = Reverse TDI shift d irection. 2 = Externally controlled d irection control via Cam era Link control CC3. get sdo t get sem Returns the d igital offset value in DN for the tap ind icated . t = Tap value. 0 for all taps or 1-number of CCD taps for ind ivid ual tap selection. Returns the current exposure m od e: 3 = External SYN C, m axim um exposure tim e 7 = Internal program m able SYN C, m axim um exposure tim e. Factory setting. get sfc x Returns the FPN coefficient for the pixel num ber id icated . x =pixel num ber w ithin the range 1 to sensor pixel count. get sfr xx Returns a range of pixel FPN coefficients x1=first pixel num ber of the range. x2=last pixel num ber of the range i=coefficient value in a range from 0 to 2048. get slt Returns the current low er threshold value. get smm Returns the cam era’s m irror m od e: 0: Pixels read out left to right (1 to 4096 or 8192) 1: Pixels read out right to left (8092 or 4096 to 1) get sot Returns the Cam era Link strobe rate. get spc x Returns the PRN U coefficient for the specified pixel num ber. x=pixel num ber w ithin the range 1 to sensor pixel count. get spr xx Returns a range of p ixel PRN U coefficients i1=first pixel num ber of the range i2=last pixel num ber of the range x=coefficient value in a range from 0 to 28671. get spt get ssb Returns the current pretrigger setting. t get ssf get ssg Teledyne DALSA Description Returns the current background subtract value. t = Tap value. 0 for all taps or 1 to number of CCD taps for ind ivid ual tap selection. Returns the current line/ fram e rate in H z. t Returns the current d igital gain setting. t = tap selection, either 1 to number of CCD taps, or 0 for all taps get stg Returns the current num ber of CCD integration stages. get sut Returns the current uppd er threshold value. 03-032-20013-04 Piranha HS-xx RoHS User Manual 82 Syntax Description get svm Returns the current vid eo m od e. 0: N orm al vid eo m od e 1: Test pattern 2: Test pattern 3: Test pattern get tdi Returns the cam era’s current operating m od e. 0: Area Mod e 1: TDI Mod e get ugr 03-032-20013-04 Parameters t Returns the gain reference value get vt Returns the cam era’s internal chip tem perature in d egrees Celcius. get vv Returns the cam era’s supply voltage. get wfc Returns w hether FPN coefficients have been saved . 0 = N o FPN coefficients saved 1 = Pixel coefficients have been saved get wpc Returns w hether PRN U coefficients have been saved . 0 = N o PRN U coefficients saved 1 = Pixel coefficients have been saved get wus Returns w hether user settings have been saved . 0 = N o user settings saved 1 = User settings have been saved Teledyne DALSA Piranha HS-xx RoHS User Manual 83 Appendix A Error Handling and Command List Error Handling The follow ing table lists w arning and error m essages and provid es a d escription and possible cau se. Warning m essages are retu rned w hen the cam era cannot m eet the fu ll valu e of the requ est; error m essages are retu rned w hen the cam era is u nable to com plete the requ est. Table 22: Warning and Error Messages Warning Messages Camera Response Teledyne DALSA Comment OK> Cam era executed com m and Warning 01: Outsid e of specification> Param eter accepted w as outsid e of specified operating range (e.g. gain greater than ±10 d B of factory setting, or SSF below specification). Warning 02: Clipped to m in> Param eter w as clipped to the current operating range. Use GCP or GET to see value used . Warning 03: Clipped to m ax> Param eter w as clipped to the current operating range. Use GCP or GET to see value used . Warning 04: Related param eters ad justed > Internal operating cond ition is ad justed to accom m od ate the entered com m and . E.g. requesting exposure tim e longer than line tim e autom atically ad justs the line tim e to m eet the exposure tim e requirem ent. Warning 07: Coefficient m ay be inaccurate A/ D clipping has occurred > In the region of interest (ROI) greater than 6.251% single or 1% of averaged pixel values w ere zero or saturated . Warning 08: Greater than 1% of coefficients have been clipped Greater than 1% of FPN or PRN U coefficients have been calculated to be greater than the m axim um allow able and so w ere clipped . Warning 09: Internal line rate inconsistent w ith read out tim e> Changing this param eter (e.g. vertical binning) has changed read out tim e and that is greater than the internal SYN C 03-032-20013-04 Piranha HS-xx RoHS User Manual 84 Error Messages Camera Response Comment Error 01: Internal error xx> Where xx is a cod e list below . Only output d uring pow er up. Custom er should contact Teled yne DALSA custom er support. Error 02: Unrecognized com m and > Com m and is not valid . Error 03: Incorrect num ber of param eters> Too m any or too few param eters. Error 04: Incorrect param eter value> This response returned for: Alpha received for num eric or visa versa Float w here integer expected N ot an elem ent of the set of possible values. E.g., Baud Rate Outsid e the range lim it Error 05: Com m and unavailable in this m od e> E.g. SSF w hen in SEM 3 Error 06: Tim eout> Com m and not com pleted in tim e. E.g. CCF or CCP in SEM 3 w hen no external EXSYN C is present. Error 07: Cam era settings not saved > Ind icates that user settings have been corrupted by turning off the pow er w hile executing the WUS com m and . Must build up new settings from factory and re-save w ith WUS. Error 08: Unable to calibrate - tap outsid e ROI> Cannot calibrate a tap that is not part of the end of line statistics. Error 09: The cam era's tem perature exceed s the specified operating range> Ind icates that the cam era has shut itself d ow n to prevent d am age from further overheating. (flashing red ) Shuts d ow n at internal tem perature of 75˚C and w ill not restart until below 65˚C (equivalent to 50˚C at front plate). Error 10: FPGA Flash Program Failed FCS failed either because of com m unication error or a bad file w as sent. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 85 Commands: Quick Reference Parameters: t = tap id i = integer value f = float m = member of a set s = string x = pixel column number y = pixel row number Teledyne DALSA As a qu ick reference, the follow ing table lists all of the cam era configu ration com m and s available to the cam era u ser. For d etailed inform ation on u sing these com m and s, refer to Chapter 3. N ote: This table d oes not list ―get‖ com m and s. Refer to section 4.7.6 Retu rning Cam era Settings for a list of these com m and s. Table 23: Command Quick Reference Mnemonic Syntax calibrate analog offset cao correction calibrate fpn ccf calculate cam era gain ccg Parameters Description t i Calibrates the analog gain and averages each tap’s pixels w ithin the ROI to the specified average target value. t = tap selection, either 1 to number of CCD taps, or 0 for all taps i = target value in a range from 0 to 255DN (12-bit LSB) Refer to Analog Signal Processing: Setting Analog Gain and Offset for d etails. Perform s FPN calibration and elim inates FPN noise by subtracting aw ay ind ivid ual pixel d ark current. Refer to Digital Signal Processing and Processing Chain Overview and Description for d etails. i1 t i2 Calculates the cam era gain accord ing to the selected algorithm . i1 = Calibration algorithm to use. 1 = This algorithm ad justs analog gain so that 8% to 13% of tap ROI pixels are above the specified target value. 2 = This algorithm ad justs analog gain so that the average pixel value in tap’s ROI is equal to the specified target value. 3 = This algorithm ad justs d igital gain so that the average pixel value in tap’s ROI is equal to the specified target. 4 = This algorithm ad justs the analog gain so that the peak tap ROI pixels are ad justed to the specified target. t = Tap value. Use 0 for all taps or 1 to num ber of CCD taps for ind ivid ual tap selection. i2 = Calibration target value in a range from : 1024 to 4055DN (12 bit LSB). 03-032-20013-04 Piranha HS-xx RoHS User Manual 86 03-032-20013-04 Mnemonic Syntax correction calibrate prnu ccp cam era link m od e clm Parameters Description Perform s PRN U calibration and elim inates the d ifference in responsivity betw een the m ost and least sensitive pixel creating a uniform response to light. Refer to Digital Signal Processing and Processing Chain Overview and Description for d etails. m Sets the Cam era Link configuration, num ber of Cam era Link taps, and d ata bit d epth. 2: Base configuration, 2 taps, 8 bit output 3: Base configuration, 2 taps, 12 bit output 15: Med ium configuration, 4 taps, 8 bit output 16: Med ium configuration, 4 taps, 12 bit output 21: Full configuration, 8 taps, 8 bit output Refer to section 4.4.2 Setting the Cam era Link Mod e for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual 87 Mnemonic Syntax Parameters Description calculate PRN U algorithm cpa i1 i2 Perform s PRN U calibration accord ing to the selected algorithm . The first param eter is the algorithm w here i1 is: 1 = This algorithm first ad justs each tap’s analog gain so that 8-13% of pixels w ithin a tap are above the value specified in the target value param eter. PRN U calibration then occurs using the peak pixel in the region of interest. (Id entical to ccp) 2 = Calculates the PRN U coefficients using the entered target value as show n below : Target PRNU Coefficient = (AVG Pixel Value) - (FPN+sdo value) The calculation is perform ed for all sensor pixels but w arnings are only applied to pixels in the region of interest. This algorithm is useful for achieving uniform output across m ultiple cam eras. 3 = This algorithm includ es an analog gain ad justm ent prior to PRN U calibration. Analog gain is first ad justed so that the peak pixel value in tap’s ROI is w ithin 97 to 99% of the specified target value. It then calculates the PRN U coefficients using the target value as show n below : PRNU Coefficient = i Target (AVG Pixel Value ) - (FPN + sdo value) i i The calculation is perform ed for all sensor pixels but w arnings are only applied to pixels in the region of interest. This algorithm is useful for achieving uniform output across m ultiple cam eras. 4 = This algorithm is the sam e as 2 w ith the exception that it only calculates PRN U for the pixels w ithin the current Region of Interest (ROI). The second param eter, i2, is the target value to use in a range from 1024 to 4055DN . correction set sam ple Teledyne DALSA css m Set num ber of line sam ples averaged for pixel coefficient calculations or for output of gla com m and . Values: 256, 512, 1024. Factory setting: 1024 Refer to Returning Averaged Lines of Vid eo on page 75 for d etails. 03-032-20013-04 Piranha HS-xx RoHS User Manual 88 03-032-20013-04 Mnemonic Syntax Parameters Description d isplay pixel coeffs dpc x1 x2 Displays the pixel coefficients in the ord er FPN , PRN U, FPN , PRN U, … x1 = Pixel start num ber x 2= Pixel end num ber in a range from 1 to sensor pixel count. Refer to Setting a range of Pixel PRN U Coefficients for d etails. end of line sequence els i Sets the end -of-line sequence: 0: Off 1: On Refer to Refer to 4.5.3 End -of-line Sequence for d etails. enable pixel coefficients epc i i Sets w hether pixel coefficients are enabled or d isabled . The first param eter sets the FPN coefficients w here i is: 0 = FPN coefficients d isabled 1 = FPN coefficients enabled The second param eter sets the PRN U coefficients w here i is: 0 = PRN U coefficients d isabled 1 = PRN U coefficients enabled Refer to section Enabling and Disabling Pixel Coefficients on page 66 for d etails. get cam era m od el gcm Read s the cam era m od el num ber. get cam era param eters gcp Read s all of the cam era param eters. get cam era serial gcs Read the cam era serial num ber. get cam era version gcv Displays the firm w are version and FPGA version. get values get s Retrieves cam era values. get fpn coeff gfc x Read the FPN coefficient x = pixel num ber to read in a range from 1 – sensor pixel count. Refer to Returning FPN Coefficients on page 61 for d etails. get help gh get line gl Returns the help screen. x1 x2 Gets a line of raw vid eo (no d igital processing or test pattern) d isplaying one pixel value after another and the m inim um , m axim um , and m ean value of the sam pled line. x1 = Pixel start num ber x2 = Pixel end num ber in a range from 1 to sensor pixel count. Refer to Returning a Single Line of Vid eo on page 74 for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual Teledyne DALSA 89 Mnemonic Syntax Parameters Description get line average gla x1 x2 Read the average of line sam ples. x1 = Pixel start num ber x2 = Pixel end num ber in a range from 1 to sensor pixel count. Refer to Returning Averaged Lines of Vid eo on page 75 for d etails. get prnu coeff gpc x Read the PRN U coefficient. x = pixel num ber to read in a range from 1 – sensor pixel count. Refer to Setting a range of Pixel PRN U Coefficients for d etails. get signal frequency gsf i Read s the requested Cam era Link control frequency. 1 = EXSYN C frequency 2 = Spare 3 = Direction (1 = forw ard , 2 = reverse) 4 = Spare help h Display the online help. Refer to section for d etails. load pixel coefficients lpc Load s the previously saved pixel coefficients from non -volatile m em ory w here i is: 0 = Factory calibrated coefficients 1 = Coefficient set one 2 = Coefficient set tw o 3 = Coefficient set three 4 = Coefficient set four Refer to section 4.6.2 Saving and Restoring PRN U and FPN Coefficients for d etails. reset cam era rc Reset the entire cam era (reboot). Baud rate is not reset and reboots w ith the value last used . restore factory settings rfs Restore the cam era’s factory settings. FPN and PRN U coefficients reset to 0. Refer to section 4.6 Saving and Restoring Settings for d etails. region of interest roi reset pixel coeffs rpc x1 y1 x2 y2 Sets the pixel range affected by the ccg, cao, gl, gla, ccf, cpa and ccp com m and s. The param eters are the pixel start and end values (x1 and x2) and the colum n start and end values (y1 and y2) in a range from 1 to sensor pixel count. Refer to section 4.5.1 Setting a Region of Interest for d etails. Reset the pixel coefficients to 0. Refer to section Enabling and Disabling Pixel Coefficients on page 66 for d etails. 03-032-20013-04 Piranha HS-xx RoHS User Manual 90 03-032-20013-04 Mnemonic Syntax Parameters Description restore user settings rus set analog gain sag t f Sets the analog gain in d B. t = Tap value. 0 for all taps or 1number of CCD taps for ind ivid ual tap selection. f= gain value specified from –10 to +10 Refer to Analog Signal Processing: Setting Analog Gain and Offset on page 53 for d etails. set analog offset sao t i Sets the analog offset. t = 0 for all taps or 1 to number of CCD taps for ind ivid ual tap selection. i= Offset value in a range from 0 to 255 (12-bit LSB). Offset increases w ith higher values. Refer to Analog Signal Processing: Setting Analog Gain and Offset for d etails. set binning horizontal sbh m Sets the horizontal binning value. Available values are 1, 2, 4, or 8. Refer to section 4.3.4 Increasing Sensitivity w ith Binning on page 37 for d etails. set baud rate sbr i Set the speed of cam era serial com m unication port. Baud rates: 9600, 19200, 57600, and 115200. Default: 9600. Refer to section Setting Baud Rate on page 29 for d etails. set binning vertical sbv m Sets the vertical binning value. Available values (not includ ing the H S82 m od el) are 1 to 8. Available values for the H S-82 m od el are 1 to 4. Refer to section 4.3.4 Increasing Sensitivity w ith Binning on page 37 for d etails. set ccd d irection scd i Sets the CCD shift d irection w here: 0 = Forw ard TDI shift d irection. 1 = Reverse TDI shift d irection. 2 = Externally controlled d irection control via Cam era Link control CC3. Available only in TDI Mod e Restore the cam era's last saved user settings and FPN and PRN U coefficients. Refer to section 4.6 Saving and Restoring Settings for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual Teledyne DALSA 91 Mnemonic Syntax Parameters Description set d igital offset sdo t i Subtracts the input value from the vid eo signal prior to FPN correction. t = Tap value. 0 for all taps or 1number of CCD taps for ind ivid ual tap selection. i = Offset in a range from 0 to 511DN . Refer to Setting Digital Offset on page61 for d etails. set exposure m od e sem m Set the exposure m od e: 3 = External SYN C, m axim um exposure tim e 7 = Internal program m able SYN C, m axim um exposure tim e. Factory setting. set fpn coeff sfc x i Set the FPN coefficient. x =pixel num ber w ithin the range 1 to sensor pixel count. i= FPN value w ithin the range 0 to 2048 (12-bit LSB). Refer to Perform ing FPN Correction on page 61 for d etails. set fpn range sfr x1 x2 i Set a range of pixel FPN coefficients x1=first pixel num ber of the range. x2=last pixel num ber of the range i=coefficient value in a range from 0 to 2048. Refer to Setting a Range of FPN Coefficients on page 62 for d etails. set low er threshold slt i The pixels below the low er threshold are checked for and reported in the end -of-line sequence in a range from 04095. Refer to section 4.5.3 End -of-line Sequence for d etails. set m irror m od e smm i Set the cam era’s m irror m od e: 0: Pixels read out left to right (1 to 4096 or 8192) 1: Pixels read out right to left (8092 or 4096 to 1) Refer to 4.4.4 Setting the Pixel Read out Direction for d etails. 03-032-20013-04 Piranha HS-xx RoHS User Manual 92 03-032-20013-04 Mnemonic Syntax Parameters Description set output throughput sot m This com m and w orks in conjunction w ith the clm com m and and d eterm ines the Cam era Link strobe rate. 80 = 4 taps at 20MH z or 2 taps at 40MH z 160 = 2 taps at 80MH z or 4 taps at 40MH z 320 = 4 taps at 80MH z or 8 taps at 40MH z 640 = 8 taps at 80MH z Refer to section 4.4.3 Setting the Cam era Throughput for d etails on using this com m and . Available settings are d epend ent on your cam era m od el. set prnu coeff spc x i Set the PRN U coefficient. x=pixel num ber w ithin the range 1 to sensor pixel count. i= PRN U value w ithin the range 0 to 28671. Refer to Setting a range of Pixel PRN U Coefficients for d etails. set prnu range spr i1 i2 x Set a range of pixel PRN U coefficients i1=first pixel num ber of the range i2=last pixel num ber of the range x=coefficient value in a range from 0 to 28671. Refer to Setting a Range of PRN U Coefficients on page 65 for d etails. set pretrigger spt i Set the pretrigger to a value from 0 to 16. set subtract background ssb t i Subtract the input value from the output signal. t = Tap value. 0 for all taps or 1 to number of CCD taps for ind ivid ual tap selection. i = Subtracted value in a range from 0 to 4095. Refer to Subtracting Background on page 60 for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual Teledyne DALSA 93 Mnemonic Syntax Parameters Description set sync frequency ssf i Set the fram e rate to a value from : TDI H S-40-4k40: 3499.87-36563.1 H S-80-8k40: 3499.56-34305.3 H S-80-8k80: 3499.87-68610.6 H S-82-4k80: 3499.87-111111 Area H S-40-4k40: 1-3783.58 H S-80-8k40: 1-3084.52 H S-80-8k80: 1-6169.03 H S-82-4k80: 1-9017.13 Value round ed up/ d ow n as required . Refer to Setting Fram e Rate on page 41 for d etails. set system gain ssg t i Set the d igital gain. t = tap selection, either 1 to number of CCD taps, or 0 for all taps i = Digital gain in a range from 0 to 65535. The d igital vid eo values are m ultiplied by this num ber. Refer to Setting Digital Gain on page 60 for d etails. stage select stg i Sets the num ber of TDI stages. Allow able values (not includ ing the H S82 m od el) are: 16,32, 48, 64,80,96 (d efau lt) Allow able H S-82 values are: 8,16,24,32, 40,48 (d efault) Refer to 4.2 Selecting the N um ber of CCD Integration Stages for d etails. set upper threshold sut i The pixels equal to or greater than the upper threshold are checked for and reported in the end -of-line sequence in a range from 0-4095. Refer to 4.5.3 End -of-line Sequence for d etails. set vid eo m od e svm i Sw itch betw een norm al vid eo m od e and test patterns: 0: N orm al vid eo m od e 1: Test pattern 2: Test pattern 3: Test pattern Refer to section 4.7.1 Generating a Test Pattern for d etails. set TDI m od e tdi i Set the cam era’s operating m od e. 0: Area Mod e 1: TDI Mod e Refer to section 4.5.1 for d etails. 03-032-20013-04 Piranha HS-xx RoHS User Manual 94 03-032-20013-04 Mnemonic Syntax Parameters Description upd ate gain reference ugr Changes 0d B gain to equal the current analog gain value set w ith the sag com m and . Refer to section Analog Signal Processing: Setting Analog Gain and Offset for d etails. verify tem perature vt Check the internal tem perature of the cam era verify voltage vv Check the cam era’s input voltages and return OK or fail w rite FPN coefficients wfc i Write all current FPN coefficients to EEROM w here i is: 1 = FPN coefficient set one 2 = FPN coefficient set tw o 3 = FPN coefficient set one 4 = FPN coefficient set tw o Refer to section 4.6.2 Saving and Restoring PRN U and FPN Coefficients for d etails. w rite PRN U coeffs wpc i Write all current PRN U coefficients to EEROM w here i is: 1 = PRN U coefficient set one 2 = PRN U coefficient set tw o 3 = PRN U coefficient set one 4 = PRN U coefficient set tw o Refer to section 4.6.2 Saving and Restoring PRN U and FPN Coefficients for d etails. w rite user settings wus Write all of the user settings to EEROM. Refer to section 4.6.1 Saving and Restoring Factory and User Settings for d etails. Teledyne DALSA Piranha HS-xx RoHS User Manual 95 Appendix B Camera Link™ Reference, Timing, and Configuration Table Cam era Link is a com m u nication interface for vision applications. It provid es a connectivity stand ard betw een cam eras and fram e grabbers. A stand ard cable connection w ill red u ce m anu factu rers’ su pport tim e and greatly red u ce the level of com plexity and tim e need ed for cu stom ers to su ccessfu lly integrate high speed cam eras w ith fram e grabbers. This is particu larly relevant as signal and d ata transm issions increase both in com plexity and throu ghpu t. A stand ard cable/ connector assem bly w ill also enable cu stom ers to take ad vantage of volu m e pricing, thu s red u cing costs. The cam era link stand ard is intend ed to be extrem ely flexible in ord er to m eet the need s of d ifferent cam era and fram e grabber m anu factu rers. The Teled yne DALSA Cam era Link Im plem entation Road Map (available from the Know led ege Center on Teled yne DALSA w ebsite) d etails how Teled yne DALSA stand ard izes its u se of the Cam era Link interface. LVDS Technical Description Low Voltage Differential Signaling (LVDS) is a high speed , low pow er, general pu rpose interface stand ard . The stand ard , know n as AN SI/ TIA/ EIA-644, w as approved in March 1996. LVDS u ses d ifferential signaling, w ith a nom inal signal sw ing of 350m V d ifferential. The low signal sw ing d ecreases rise and fall tim es to achieve a theoretical m axim u m transm ission rate of 1.923 Gbps into a loss-less m ed iu m . The low signal sw ing also m eans that the stand ard is not d epend ent on a particu lar su pply voltage. LVDS u ses cu rrent m od e d rivers, w hich lim it pow er consu m ption. The d ifferential signals are im m u ne to ±1 V com m on volt noise. Camera Signal Requirements This section provid es d efinitions for the signals u sed in the Cam era Link interface. The stand ard Cam era Link cable provid es cam era control signals, serial com m u nication, and vid eo d ata. Video Data The Channel Link technology is integral to the tra nsm ission of vid eo d ata. Im age d ata and im age enable signals are transm itted on the Channel Link bu s. Fou r enable signals are d efined as: • FVAL—Fram e Valid (FVAL) is d efined H IGH for valid lines. • LVAL—Line Valid (LVAL) is d efined H IGH for valid pixels. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 96 • DVAL—Data Valid (DVAL) is d efined H IGH w hen d ata is valid . • Spare— A spare has been d efined for fu tu re u se. All fou r enable signals m u st be provid ed by the cam era on each Channel Link chip. All u nu sed d ata bits m u st be tied to a know n valu e by the cam era. For m ore inform ation on im age d ata bit allocations, refer to the official Cam era Link specification located here, on the Teled yne DALSA w ebsite. Camera Control Signals Fou r LVDS pairs are reserved for general pu rpose cam era control. They are d efined as cam era inpu ts and fram e grabber ou tpu ts. Cam era m anu factu rers can d efine th ese signals to m eet their need s for a particu lar prod u ct. The signals are: • Cam era Control 1 (CC1) • Cam era Control 2 (CC2) • Cam era Control 3 (CC3) • Cam era Control 4 (CC4) The H S-xx u ses the follow ing cam era control signals: Table 24: Teledyne DALSA Camera Control Configuration CC1 EXSYN C, negative ed ge active CC2 N ot Used CC3 Forw ard CC4 N ot Used Communication Tw o LVDS pairs have been allocated for asynchronou s serial com m u nication to and from the cam era and fram e grabber. Cam eras and fram e grabbers shou ld su pport at least 9600 bau d . These signals are • SerTFG—Differential pair w ith serial com m u nications to the fram e grabber. • SerTC—Differential pair w ith serial com m u nications to the cam era. The serial interface w ill have the follow ing characteristics: one start bit, one stop bit, no parity, and no hand shaking. It is recom m end ed that fram e grabber m anu factu rers su pply both a u ser interface and a softw are application program m ing interface (API) for u sing the asynchronou s serial com m u nication port. The u ser interface w ill consist of a term inal program w ith m inim al capabilities of send ing and receiving a character s tring and send ing a file of bytes. The softw are API w ill provid e fu nctions to enu m erate board s and send or receive a character string. Power Pow er w ill not be provid ed on the Cam era Link connector. The cam era w ill receive pow er throu gh a separate cable. Cam era m anu factu rers w ill d efine their ow n pow er connector, cu rrent, and voltage requ irem ents. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 97 Camera Link Bit Definitions BASE Configuration T0 Mode Port A Bits 0 thru 7 Port B Bits 0 thru 7 Port C Bits 0 thru 7 T1 (Note: Entries imply double frequency pixel rate data transmission) Port A Port B Port C Bits 0 thru Bits 0 thru Bits 0 7 7 thru 7 Mod e 2 2 Tap 8 bit Mod e 3 2 Tap n bit Where n=10,12 Tap 1 LSB..Bit 7 Tap 2 LSB..Bit7 xxxxxxx N/ A N/ A Tap 1 LSB.. Bit 7 Tap 1 Bits 8,9,10,11, Tap 2 Bits 8,9,10,11 Tap 2 LSB..Bit 7 N/ A N/ A Medium Configuration Mode T0 Port A Bits 0 thru 7 Port B Bits 0 thru 7 Port C Bits 0 thru 7 Port D Bits 0 thru 7 Port E Bits 0 thru 7 Port F Bits 0 thru 7 Mod e 15 4 Tap 8 bit Mod e 16 4 Tap 10/ 12 bit Tap 1 LSB..Bit 7 Tap 2 LSB..Bit 7 Tap 3 LSB..Bit 7 Tap 4 LSB...Bit 7 xxxxxxxx Xxxxxxxx Tap 1 LSB.. Bit 7 Tap 1 Bits 8,9,10,11, Tap 2 Bits 8,9,10,11 Tap 2 LSB..Bit 7 Tap 4 LSB…Bit 7 Tap 3 LSB…Bit 7 Tap 3 Bit 8,9,10,11 Tap 4 Bit 8,9,10,11 Full Configuration Mode T0 Port A LSB… Bit 7 Port B LSB…Bi t8 Port C LSB… Bit 8 Port D LSB… Bit 8 Port E LSB… Bit 8 Port F LSB… Bit 8 Port G LSB… Bit 8 Port H LSB… Bit 8 Mod e 21 8 Tap 8 bit Tap 1 LSB… Bit 7 Tap 2 LSB…Bit 7 Tap 3 LSB… Bit 7 Tap 4 LSB… Bit 7 Tap 5 LSB… Bit 7 Tap 6 LSB… Bit 7 Tap 7 LSB… Bit 7 Tap 8 LSB… Bit 7 N/ A N/ A Camera Link Configuration Tables The follow ing table provid es tap reconstru ction inform ation. Teled yne DALSA is w orking w ith the m achine vision ind u stry to u se this table as the basis for au to configu ration. Visit the Know led ge Center Web site and view the Teled yne DALSA Cam era Link Im plem entation Road Map d ocu m ent, 03-32-00450, for fu rther d etails. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 98 Interface Parameters Table 25: Framegrabber Interface Parameters Item (when programmable configuration the options are separated with a | ) HS-40-04k40 Im ager Dim ension 1| 2 <1,2 or 1| 2> Im ager Colum ns<num ber of active colum ns, X> 4096 Im ager Row s<num ber of active row s, Y> Line Scan/ TDI are d efined as 1 1 | 96 N um ber of CCD Taps 4 Sensor Tap Clock Rate <1,2,3…..> <xx MH z> 40 Cam era Stand ard <N TSC, PAL, VS, VW, MW> VS Variable Wind ow <Colum n Start, Colum n End , Row Start, Row End > (0,0,0,0) All zeros ind icates an unsupported feature Multiple Wind ow N um ber of Wind ow s (Colum n Start 1, Colum n End 1, Row Start 1, Row End 1) (Colum n Start 2, Colum n End 2,...) 0, (0,0,0,0) All zeros ind icates an unsupported feature N um ber of Cam era Configurations<1,2,3,…> 8 Configuration Definition Cx= H DW, N um ber of Output Taps, Bit Wid th, N um ber of Processing N od es w here Cx is the configuration ID x is <1,2,3…> H DW is <Base, Med ium , Full> N um ber of Output Taps is <1,2,3…> Bit w id th is <8, 10, 12…> N um ber Processing N od es is <1 or 2> TD I Mode C1 = Med ium , 4, 8, 1 C2 = Med ium , 4, 12, 1 C3 = Base, 2, 8, 1 C4 = Base, 2, 12, 1 Area Mode C7 = Med ium , 4, 8, 1 C8 = Med ium , 4, 12, 1 C9 = Base, 2, 8, 1 C10 =Base, 2, 12, 1 Tap Reconstruction In som e configurations the reconstruction m ay change. C0 is the d efault output form at and m ust be listed . Output configurations that d on’t conform are listed separately. <Cx,Tn (Colum n Start, Colum n End , Colum n Increm ent, Row Start, Row End , Row Increm ent> H orizontal m irroring is supported . Mirror right to left changes the follow ing unm irrored values to: The sign of the colum n increm ent is inverted . Colum n Start becom es the Colum n End value Colum n End becom es the Colum n Start value TDI Mod e Left to Right Read out (sm m 0) C1/ 2, T1 (1, 1024, 1, 1, 1, 1) C1/ 2, T2 (1025, 2048, 1, 1, 1, 1) C1/ 2, T3 (2049, 3072, 1, 1, 1, 1) C1/ 2, T4 (3073, 4096, 1, 1, 1, 1) C3/ 4, T1 (1, 2048, 1, 1, 1, 1) C3/ 4, T2 (2049, 4096, 1, 1, 1, 1) TDI Mod e Right to Left Read out (sm m 1) C1/ 2, T1 (4096, 3073, -1, 1, 1, 1) C1/ 2, T2 (3072, 2049, -1, 1, 1, 1) C1/ 2, T3 (2048,1025, -1, 1, 1, 1) C1/ 2, T4 (1024, 1, -1, 1, 1, 1) Area Mod e Left to Right Read out (sm m 0) C7/ 8, T1 (1, 1024, 1, 1, 96, 1) C7/ 8, T2 (1025, 2048, 1, 1, 96, 1) C7/ 8, T3 (2049, 3072, 1, 1, 96, 1) C7/ 8, T4 (3073, 4096, 1, 1, 96, 1) 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 99 Item (when programmable configuration the options are separated with a | ) HS-40-04k40 Area Mod e Right to Left Read out (sm m 1) C7/ 8, T1 (4096, 3073, -1, 1, 96, -1) C7/ 8, T2 (3072, 2049, -1, 1, 96, -1) C7/ 8, T3 (2048,1025, -1, 1, 96, -1) C7/ 8, T4 (1024, 1, -1, 1, 96, -1) C9/ 10, T1 (2049, 4096, 1, 1, 96, 1) C9/ 10, T2 (1, 2048, 1, 1, 96, 1) Cam era Color <H ybrid , Mono, Pattern, Solid > Mono RGB Pattern Size < (T1, Colum ns*Row s) (T2, Colum ns*Row s) (T3, Colum ns*Row s….> (T0, 1*1) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be articulated Color Definition (Colum n, Row , Color) Where color is R,G,B T0 = (1, 1, M) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be d efined <0,1,2,3…> Row Color Offset 0 Colum n Color Offset <0,1,2,3…> 0 Row Binning Factor <1,2,3 or 1| 2| 3> 1...8 Colum n Binning Factor 1| 2| 4| 8 <1,2,3 or 1| 2| 3> Pretrigger Pixels <0,1,2…or 0..15> 0 Pretrigger Lines <0,1,2.. or 0..15> 0 Fram e Tim e Minim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Fram e Tim e Maxim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Internal Line/ Fram e Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset Pulse Minim um Wid th <xx ns> 0 if not applicable TDI Mod e: 0 Area Mod e: TBD Internal Pixel Reset Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset to Exsync H old tim e TBD BAUD Rate <xx ns> <9600….> 9600, 19200, 57600, 115200 CC1 <Exsync> EXSYN C CC2 <Spare> PRIN (Area Mod e only) CC3 <Forw ard , Spare> Forw ard / ReverseB CC4 <Spare> Spare DVAL out <Strobe Valid , Alternate> Strobe Valid Spare out <Spare> Spare TDI Stages TDI Mod e: 16| 32| 48| 64| 80| 96 Area Mod e: 16| 32| 48| 64| 80| 96 Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 100 Item (when programmable configuration the options are separated with a | ) HS-80-04k40 Im ager Dim ension 1| 2 <1,2 or 1| 2> Im ager Colum ns<num ber of active colum ns, X> 4096 Im ager Row s<num ber of active row s, Y> Line Scan/ TDI are d efined as 1 16| 32 | 48 | 64 | 80 | 96 N um ber of CCD Taps 8 Sensor Tap Clock Rate <1,2,3…..> <xx MH z> 40 Cam era Stand ard <N TSC, PAL, VS, VW, MW> VS Variable Wind ow <Colum n Start, Colum n End , Row Start, Row End > (0,0,0,0) All zeros ind icates an unsupported feature Multiple Wind ow N um ber of Wind ow s (Colum n Start 1, Colum n End 1, Row Start 1, Row End 1) (Colum n Start 2, Colum n End 2,...) 0, (0,0,0,0) All zeros ind icates an unsupported feature N um ber of Cam era Configurations<1,2,3,…> 6 Configuration Definition Cx= H DW, N um ber of Output Taps, Bit Wid th, N um ber of Processing N od es w here Cx is the configuration ID x is <1,2,3…> H DW is <Base, Med ium , Full> N um ber of Output Taps is <1,2,3…> Bit w id th is <8, 10, 12…> N um ber Processing N od es is <1 or 2> TDI Mod e C1 = Full, 8, 8, 1 C2 = Med ium , 8, 8, 1 C3 = Med ium , 8, 12, 1 Area Mod e C4 = Full, 8, 8, 1 C5 = Med ium , 8, 8, 1 C6 = Med ium , 8, 12, 1 Tap Reconstruction In som e configurations the reconstruction m ay change. C0 is the d efault output form at and m ust be listed . Output configurations that d on’t conform are listed separately. <Cx,Tn (Colum n Start, Colum n End , Colum n Increm ent, Row Start, Row End , Row Increm ent> H orizontal m irroring is supported . Mirror ―on‖ changes the follow ing unm irrored values to: The sign of the colum n increm ent is inverted . Colum n Start becom es the Colum n End value Colum n End becom es the Colum n Start value TDI Mod e Forw ard Direction left to right read out C1, T1 (1, 512, 1, 1, 1, 1) C1, T2 (513, 1024, 1, 1, 1, 1) C1, T3 (1023, 1536, 1, 1, 1, 1) C1, T4 (1537, 2048, 1, 1, 1, 1) C1, T5 (2049, 2560, 1, 1, 1, 1) C1, T6 (2561, 3072, 1, 1, 1, 1) C1, T7 (3073, 3584, 1, 1, 1, 1) C1, T8 (3585, 4096, 1, 1, 1, 1) C2/ C2/ C2/ C2/ 3, T1 (1, 1024, 1, 1, 1, 1) 3, T2 (1025,2048 1, 1, 1, 1) 3, T3 (2049, 3072, 1, 1, 1, 1) 3, T4 (3073, 4096, 1, 1, 1, 1) TDI Mod e Reverse Direction right to left read out C1, T1 (4096, 3585, -1, 1, 1, 1) C1, T2 (3584, 3073, -1, 1, 1, 1) C1, T3 (3072, 2561, -1, 1, 1, 1) C1, T4 (2560, 2049, -1, 1, 1, 1) C1, T5 (2048, 1537, -1, 1, 1, 1) C1, T6 (1536, 1023, -1, 1, 1, 1) C1, T7 (1024, 513, -1, 1, 1, 1) 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual Item (when programmable configuration the options are separated with a | ) 101 HS-80-04k40 C1, T8 (512, 1, -1, 1, 1, 1) C2/ C2/ C2/ C2/ 3, T1 (4096, 3073, 1, 1, 1, 1) 3, T2 (3072, 2049, 1, 1, 1, 1) 3, T3 (2048, 1025, 1, 1, 1, 1) 3, T4 (1024, 1, 1, 1, 1, 1) Area Mod e Forw ard Direction left to right read out C4, T1 (1, 512, 1, 1, 96, 1) C4, T2 (513, 1024, 1, 1, 96, 1) C4, T3 (1023, 1536, 1, 1, 96, 1) C4, T4 (1537, 2048, 1, 1, 96, 1) C4, T5 (2049, 2560, 1, 1, 96, 1) C4, T6 (2561, 3072, 1, 1, 96, 1) C4, T7 (3073, 3584, 1, 1, 96, 1) C4, T8 (3585, 4096, 1, 1, 96, 1) C5/ C5/ C5/ C5/ 6, T1 (1, 1024, 1, 1, 96, 1) 6, T2 (1025, 2048,1, 1, 96, 1) 6, T3 (2049, 3072, 1, 1, 96, 1) 6, T4 (3073, 4096, 1, 1, 96, 1) Area Mod e Reverse Direction right to left read out C4, T1 (4096, 3585, -1, 96, 1, -1) C4, T2 (3584, 3073, -1, 96, 1, -1) C4, T3 (3072, 2561, -1, 96, 1, -1) C4, T4 (2560, 2049, -1, 96, 1, -1) C4, T5 (2048, 1537, -1, 96, 1, -1) C4, T6 (1536, 1023, -1, 96, 1, -1) C4, T7 (1024, 513, -1, 96, 1, -1) C4, T8 (512, 1, -1, 96, 1, -1) C5/ C5/ C5/ C5/ 6, T1 (4096, 3073, 1, 1, 96, 1) 6, T2 (3072, 2049, 1, 1, 96, 1) 6, T3 (2048, 1025, 1, 1, 96, 1) 6, T4 (1024, 1, 1, 1, 96, 1) Cam era Color <H ybrid , Mono, Pattern, Solid > Mono RGB Pattern Size < (T1, Colum ns*Row s) (T2, Colum ns*Row s) (T3, Colum ns*Row s….> (T0, 1*1) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be articulated Color Definition (Colum n, Row , Color) Where color is R,G,B T0 = (1, 1, M) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be d efined Row Color Offset <0,1,2,3…> 0 Colum n Color Offset <0,1,2,3…> 0 Row Binning Factor <1,2,3 or 1| 2| 3> 1...8 Colum n Binning Factor 1| 2| 4| 8 Pretrigger Pixels Teledyne DALSA <1,2,3 or 1| 2| 3> <0,1,2…or 0..15> 0 03-032-20013-04 Piranha HS-xx RoHS User Manual 102 Item (when programmable configuration the options are separated with a | ) HS-80-04k40 Pretrigger Lines 0 <0,1,2.. or 0..15> Fram e Tim e Minim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Fram e Tim e Maxim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Internal Line/ Fram e Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset Pulse Minim um Wid th <xx ns> 0 if not applicable TDI Mod e: N A Area Mod e: TBD Internal Pixel Reset Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset to Exsync H old tim e TBD BAUD Rate <xx ns> <9600….> 9600, 19200, 57600, 115200 CC1 <Exsync> EXSYN C CC2 <Spare> Spare CC3 <Forw ard , Spare> Forw ard CC4 <Spare> Spare DVAL out <Strobe Valid , Alternate> Strobe Valid Spare out <Spare> Spare TDI Stages TDI Mod e: 16| 32| 48| 64| 80| 96 Area Mod e: 16| 32| 48| 64| 80| 96 Item HS-80-08k40/80 (when programmable configuration the options are separated with a | ) Im ager Dim ension <1,2 or 1| 2> 1| 2 Im ager Colum ns<num ber of active colum ns, X> 8192 Im ager Row s<num ber of active row s, Y> Line Scan/ TDI are d efined as 1 16| 32 | 48 | 64 | 80 | 96 N um ber of CCD Taps 16 Sensor Tap Clock Rate <1,2,3…..> <xx MH z> 40 | 20 Cam era Stand ard <N TSC, PAL, VS, VW, MW> VS Variable Wind ow <Colum n Start, Colum n End , Row Start, Row End > (0,0,0,0) All zeros ind icates an unsupported feature Multiple Wind ow N um ber of Wind ow s (Colum n Start 1, Colum n End 1, Row Start 1, Row End 1) (Colum n Start 2, Colum n End 2,...) 0, (0,0,0,0) All zeros ind icates an unsupported feature N um ber of Cam era Configurations<1,2,3,…> 8 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual Item 103 HS-80-08k40/80 (when programmable configuration the options are separated with a | ) Configuration Definition Cx= H DW, N um ber of Output Taps, Bit Wid th, N um ber of Processing N od es w here Cx is the configuration ID x is <1,2,3…> H DW is <Base, Med ium , Full> N um ber of Output Taps is <1,2,3…> Bit w id th is <8, 10, 12…> N um ber Processing N od es is <1 or 2> TDI Mod e C1 = Full, 8, 8, 1 C2 = Full, 8, 12, 1 C3 = Med ium , 8, 8, 1 C4 = Med ium , 8, 12, 1 Area Mod e C5 = Full, 8, 8, 1 C6 = Full, 8, 12, 1 C7 = Med ium , 8, 8, 1 C8 = Med ium , 8, 12, 1 Tap Reconstruction In som e configurations the reconstruction m ay change. C0 is the d efault output form at and m ust be listed . Output configurations that d on’t conform are listed separately. <Cx,Tn (Colum n Start, Colum n End , Colum n Increm ent, Row Start, Row End , Row Increm ent> H orizontal m irroring is supported . Mirror ―on‖ changes the follow ing unm irrored values to: The sign of the colum n increm ent is inverted . Colum n Start becom es the Colum n End value Colum n End becom es the Colum n Start value TDI Mod e Forw ard Direction left to right read out C1/ 2, T1 (1, 1024, 1, 1, 1, 1) C1/ 2, T2 (1025, 2048, 1, 1, 1, 1) C1/ 2, T3 (2049, 3072, 1, 1, 1, 1) C1/ 2, T4 (3073, 4096, 1, 1, 1, 1) C1/ 2, T5 (4097, 5120, 1, 1, 1, 1) C1/ 2, T6 (5121, 6144, 1, 1, 1, 1) C1/ 2, T7 (6145, 7168, 1, 1, 1, 1) C1/ 2, T8 (7169, 8192, 1, 1, 1, 1) C3/ C3/ C3/ C3/ 4, T1 (1, 2048, 1, 1, 1, 1) 4, T2 (2049,4096 1, 1, 1, 1) 4, T3 (4097, 6144, 1, 1, 1, 1) 4, T4 (6144, 8192, 1, 1, 1, 1) TDI Mod e Reverse Direction right to left read out C1/ 2, T1 (8192, 7169, -1, 1, 1, 1) C1/ 2, T2 (7168, 6145, 1, 1, 1, 1) C1/ 2, T3 (6144, 5121, -1, 1, 1, 1) C1/ 2, T4 (5120, 4097, -1, 1, 1, 1) C1/ 2, T5 (4096, 3073, -1, 1, 1, 1) C1/ 2, T6 (3072, 2049, -1, 1, 1, 1) C1/ 2, T7 (2048,1025, -1, 1, 1, 1) C1/ 2, T8 (1024, 1, -1, 1, 1, 1) C3/ C3/ C3/ C3/ 4, T1 (8192, 6144, 1, 1, 1, 1) 4, T2 (6144, 4097, 1, 1, 1, 1) 4, T3 (4096, 2049, 1, 1, 1, 1) 4, T4 (2048, 1, 1, 1, 1, 1) Area Mod e Forw ard Direction left to right read out C5/ 6, T1 (1, 1024, 1, 1, 96, 1) C5/ 6, T2 (1025, 2048, 1, 1, 96, 1) C5/ 6, T3 (2049, 3072, 1, 1, 96, 1) Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 104 Item HS-80-08k40/80 (when programmable configuration the options are separated with a | ) C5/ C5/ C5/ C5/ C5/ 6, T4 (3073, 4096, 1, 1, 96, 1) 6, T5 (4097, 5120, 1, 1, 96, 1) 6, T6 (5121, 6144, 1, 1, 96, 1) 6, T7 (6145, 7168, 1, 1, 96, 1) 6, T8 (7169, 8192, 1, 1, 96, 1) C3/ C3/ C3/ C3/ 4, T1 (1, 2048, 1, 1, 96, 1) 4, T2 (2049,4096 1, 1, 96, 1) 4, T3 (4097, 6144, 1, 1, 96, 1) 4, T4 (6144, 8192, 1, 1, 96, 1) Area Mod e Reverse Direction right to left read out C1/ 2, T1 (8192, 7169, -1, 96, 1, -1) C1/ 2, T2 (7168, 6145, -1, 96, 1, -1) C1/ 2, T3 (6144, 5121, -1, 96, 1, -1) C1/ 2, T4 (5120, 4097, -1, 96, 1, -1) C1/ 2, T5 (4096, 3073, -1, 96, 1, -1) C1/ 2, T6 (3072, 2049, -1, 96, 1, -1) C1/ 2, T7 (2048,1025, -1, 96, 1, -1) C1/ 2, T8 (1024, 1, -1, 96, 1, -1) C3/ C3/ C3/ C3/ 4, T1 (8192, 6144, 1, 1, 96, 1) 4, T2 (6144, 4097, 1, 1, 96, 1) 4, T3 (4096, 2049, 1, 1, 96, 1) 4, T4 (2048, 1, 1, 1, 96, 1) Cam era Color <H ybrid , Mono, Pattern, Solid > Mono RGB Pattern Size < (T1, Colum ns*Row s) (T2, Colum ns*Row s) (T3, Colum ns*Row s….> (T0, 1*1) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be articulated Color Definition (Colum n, Row , Color) Where color is R,G,B T0 = (1, 1, M) w here 0 is reserved for the d efault case and ind ivid ual taps d on’t need to be d efined Row Color Offset <0,1,2,3…> 0 Colum n Color Offset <0,1,2,3…> 0 Row Binning Factor <1,2,3 or 1| 2| 3> 1...8 Colum n Binning Factor 1| 2| 4| 8 <1,2,3 or 1| 2| 3> Pretrigger Pixels <0,1,2…or 0..15> 0 Pretrigger Lines <0,1,2.. or 0..15> 0 Fram e Tim e Minim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Fram e Tim e Maxim um <xx µs> TDI Mod e: TBD Area Mod e: TBD Internal Line/ Fram e Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset Pulse Minim um Wid th <xx ns> 0 if not applicable TDI Mod e: N A Area Mod e: TBD 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 105 Item HS-80-08k40/80 (when programmable configuration the options are separated with a | ) Internal Pixel Reset Tim e Resolution <xx ns> 0 if not applicable 25 Pixel Reset to Exsync H old tim e TBD BAUD Rate <xx ns> <9600….> 9600, 19200, 57600, 115200 CC1 <Exsync> EXSYN C CC2 <Spare> PRIN (Area Mod e only) CC3 <Forw ard , Spare> Forw ard CC4 <Spare> Spare DVAL out <Strobe Valid , Alternate> Strobe Valid Spare out <Spare> Spare TDI Stages TDI Mod e: 16| 32| 48| 64| 80| 96 Area Mod e: 16| 32| 48| 64| 80| 96 Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 106 Appendix C EMC Declaration of Conformity Teledyne D ALSA 605 McMurray Rd., Waterloo, ON CAN AD A N 2V 2E9 We, d eclare u nd er sole responsibility, that the prod u ct(s): HS-40-04k40 HS-80-04k40 HS-80-08k40 HS-80-08k80 HS-82-04k80 fu lfill(s) the requ irem ents of the stand ard (s) EMC: CISPR-22:1997 EN 50082-1:1997 EN 61000-4-2; +/- 6kV CD , +/-8kV AD :1995 EN 61000-4-3; 3V/m:1996 EN 61000-4-4; 500V, 1100V:1995 This prod u ct com plies w ith the requ irem ents of the Low Voltage Directive 73/ 23/ EEC and the EMC Directive 89/ 336/ EEC and carries the CE m ark accord ingly. The 8k cam eras w ere equ ipped w ith the follow ing lens ad apter d u ring testing: AC-LA-0109 (Ad apter, M72 to N ikon lens). Place of Issu e Waterloo, ON , CAN ADA Date of Issu e April 2005 N am e and Signatu re of au thorized person Hank Helmond Quality Manager, Teledyne D ALSA Corp. This Declaration correspond s to EN 45 014. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 107 Appendix D Troubleshooting Common Solutions The inform ation in this chapter can help you solve problem s that m ay occu r d u ring the setu p of you r cam era. Rem em ber that the cam era is part of the entire acqu isition system . You m ay have to trou bleshoot any or all of the follow ing: pow er su pplies cabling fram e grabber hard w are & softw are host com pu ter light sou rces optics operating environm ent encod er You r steps in d ealing w ith a technical problem shou ld be: 1. Try the general and specific solu tions listed in sections 6.1, 6.2 and 6.3. If these solu tions d o not resolve you r problem , see section 6.4 on getting prod u ct su pport. LED When the cam era is first pow ered u p, the LED w ill glow on the back of the cam era. Refer to section 2.2.1 LED Statu s Ind icator for inform ation on the LED. Connections The first step in trou bleshooting is to verify that you r cam era has all the correct connections. Power Supply Voltages Check for the presence of all voltages at the cam era pow er connector. Verify that all grou nd s are connected . Issu e the com m and , vv, to confirm correct voltages. EXSYNC When the cam era is received from the factory, it d efau lts (no external inpu t requ ired ) to exposu re m od e 7 (TBDkH z fram e rate, internal Sync to trigger read ou t, and TDI Mod e). After a u ser has saved settings, the cam era pow ers u p w ith the saved sett ings. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 108 Data Clocking/Output Signals To valid ate cable integrity, have the cam era send ou t a test pattern and verify it is being properly received . Refer to section 4.7.1 Generating a Test Pattern for fu rther inform ation. Troubleshooting Using the Serial Interface The follow ing com m and s can aid in d ebu gging. (The com plete com m and protocol is d escribed in Append ix B and C.) Communications To qu ickly verify serial com m u nications send the help co m m and . The h com m and retu rns the online help m enu . If fu rther problem s persist, review Append ix C for m ore inform ation on com m u nications. Verify Parameters To verify the cam era param eters, send the gcp com m and . See section 4.7.6 Retu rning Cam era Settings for a com plete explanation of the cam era param eters screen. Verify Factory Calibrated Settings To restore the cam era’s factory settings and d isable the FPN and PRN U coefficients, send the rfs com m and . After execu ting this com m and send the gcp com m and to verify the factory settings. Verify Timing and Digital Video Path Use the test pattern featu re to verify the proper tim ing and connections betw een the cam era and the fram e grabber and verify the proper ou tpu t along the d igital process ing chain. See below . Generating Test Patterns The cam era can generate a test pattern to aid in system d ebu gging. Use the com m and svm 1 to activate the test pattern. The test pattern is a ram p from 0 to 255DN , then starts at 0 again. Use the test pattern to verify the proper tim ing and connections betw een the cam era and the fram e grabber. 03-032-20013-04 N o test pattern or bad test pattern— May ind icate a problem w ith the cam era (e.g. m issing bit) or a system setu p problem (e.g. fram e grabber or tim ing ). Verify the presence of the LVAL and STROBE signals. Test pattern successful— Ru n the svm 0 com m and to activate vid eo. Then ru n the gl com m and u nd er both d ark and light cond itions to retrieve a line of raw vid eo (no d igital processing). Und er d ark cond itions, w ith factory settings, the analog offset valu e shou ld be w ithin the specified range (refer to the u ser specifications). Ad ju st Teledyne DALSA Piranha HS-xx RoHS User Manual 109 the analog offset u sing the cao or sao com m and s. Und er light cond itions, you shou ld receive a valu e. Verify Voltage Use the vv com m and to d isplay the cam era's inpu t voltage. Verify Temperature To check the internal tem peratu re of the cam era, u se the vt com m and . For proper operation, this valu e shou ld not exceed 75°C. Note: If the cam era reaches 75°C, the cam era w ill shutdow n and the LED w ill flash red. If this occu rs, the cam era must be rebooted u sing the com m and , rc or can be pow ered d ow n m anu ally. You w ill have to correct the tem peratu re problem or the cam era w ill shu td ow n again. If you enter any com m and other than vt or rc, the cam era respond s w ith: Error 09: The camera's temperature exceeds the specified operating range> Verify Pixel Coefficients Use the dpc com m and to d isplay the pixel coefficients in the ord er FPN , PRN U, FPN , PRN U… The cam era also retu rns the pixel nu m ber for each fifth pixel. End-of-line Sequence To fu rther aid d ebu gging, the cam era can generate an end -of-line sequ ence. The end -ofline-sequ ence ou tpu ts "aa", "55", "line cou nter", "line average", "pixels above threshold ", "pixels below threshold ". To activate the end -of-line sequ ence, u se the com m and els 1. To d isable the end -of-line sequ ence, u se the com m and els 0. Use the sut and slt com m and s to set threshold valu es betw een 0 and 255 for 8 bit d ata m od es, or 0 to 4096 for 12 bit d ata m od es. Specific Solutions No Output or Erratic Behavior If you r cam era provid es no ou tpu t or behaves erratically, it m ay be picking u p rand om noise from long cables acting as antennae. Do not attach w ires to u nu sed pins. Verify that the cam era is not receiving spu riou s inpu ts (e.g. EXSYN C if cam era is in exposu re m od e that requ ires external signals). Unu sed signals in the Cam era Link cable shou ld be term intated in 100Ω. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 110 Line Dropout, Bright Lines, or Incorrect Frame Rate Verify that the frequ ency of the internal sync is set correctly, or w hen the cam era is set to external sync that the EXSYN C signal su pplied to the cam era d oes not exceed the cam era’s u seable fram e rate u nd er the cu rrent operating cond itions. Noisy Output Check you r pow er su pply voltage ou tpu ts for noise. N oise present on these lines can resu lt in poor vid eo qu ality. Dark Patches If d ark patches appear in you r ou tpu t the optics p ath m ay have becom e contam inated . Clean you r lenses and sensor w ind ow s w ith extrem e care. 1. Take stand ard ESD precau tions. 2. Wear latex gloves or finger cots 3. Blow off d u st u sing a filtered blow bottle or d ry, filtered com pressed air. 4. Fold a piece of optical lens cleaning tissu e (approx. 3" x 5") to m ake a squ are pad that is approxim ately one finger-w id th 5. Moisten the pad on one ed ge w ith 2-3 d rops of clean solvent—either alcohol or acetone. Do not satu rate the entire pad w ith solvent. 6. Wipe across the length of the w ind ow in one d irection w ith the m oistened end first, follow ed by the rest of the pad . The d ry part of the pad shou ld follow the m oistened end . The goal is to prevent solvent from evaporating from the w ind ow su rface, as this w ill end u p leaving resid u e and streaking behind . 7. Repeat steps 2-4 u sing a clean tissu e u ntil the entire w ind ow has been cleaned . 8. Blow off any ad hering fibers or particles u sing d ry, filtered com pressed air. Stuck Bits If d ata bits seem to be stu ck or d o not change, check that the cam era is not satu rated by preventing light from entering. To verify the d ata path integrity, check the levels of the 2 test pattern pixels (first 2 pixels follow ing the last End -of-line pixel. You m ay need to tu rn the End -of-line sequ ence ―on‖ by send ing the com m and els 1). Any d eviation from a consistent valu e of these pixels (170DN / 85DN ) cou ld be an ind ication of the follow ing: shorted bits stu ck bits d igital noise picku p on the I/ O cable open connection. To activate the test pattern, u se the com m and svm 1. Use the test pattern to verify the proper tim ing and connections betw een the cam era and fram e grabber. 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 111 To receive a com plete line of raw vid eo d ata (w ithou t d igital processing or test pattern) throu gh the RS232 port, u se the com m and gl. The retu rned d ata d isplays one pixel valu e after another and the m inim u m , m axim u m , and m ean valu e of the sam pled line. Use this com m and to ensu re the proper vid eo inpu t range. Probe the ou tpu t lines w ith an oscilloscope. Disconnect the d igital cable from the cam era and check the d igital signals at the ou tpu t of the cam era. Ensu re that the correct valu es are present. Check all cable connections, especially right at the connector; poor connections or broken w ires w ill cau se rand om ly changing bits or stu ck b its. Horizontal Lines or Patterns in Image A fau lty or irregu lar encod er signal m ay resu lt in horizontal lines d u e to exposu re tim e flu ctu ations; ensu re that you r exposu re tim e is regu lar. If you have verified that you r exposu re tim e is consistent and patterns of low frequ ency intensity variations still occu r, ensu re that you are u sing a DC or high frequ ency light sou rce. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 112 Appendix E CCD Handling Instructions Electrostatic Discharge and the CCD Sensor Cam eras contain charge-cou pled d evice (CCD) im age sensors, w hich are m etal oxid e sem icond u ctor (MOS) d evices and are su sceptible to d am age from electrostatic d ischarge (ESD). Electrostatic charge introd u ced to the sensor w ind ow su rface can ind u ce charge bu ild u p on the u nd ersid e of the w ind ow that cannot be read ily d issipated by the d ry nitrogen gas in the sensor package cavity. When charge bu ild u p occu rs, su rface -gated photod iod es (SGPDs) m ay exhibit higher im age lag. Som e SGPD sensors, su ch as the IL-P4 and the ITP4 u sed in the Piranha2 cam eras, m ay also exhibit a highly non -u niform response w hen affected by charge bu ild u p, w ith som e pixels d isplaying a m u ch higher response w hen the sensor is exposed to u niform illu m ination. The charge norm ally d issipates w ithin 24 hou rs and the sensor retu rns to norm al operation. ! WARNING: Charge buildup will affect the camera’s flat-field correction calibration. To avoid an erroneous calibration, ensure that you perform flat-field correction only after a charge buildup has dissipated over 24 hours. Protecting Against Dust, Oil and Scratches The CCD w ind ow is part of the optical path and shou ld be hand led like other optical com ponents, w ith extrem e care. Du st can obscu re pixels, prod u cing d ark patches on the sensor response. Du st is m ost visible w hen the illu m ination is collim ated . The d ark patches shift position as the angle of illu m ination changes. Du st is norm ally not visible w hen the sensor is positioned at the exit port of an integrating sphere, w here the illu m ination is d iffu se. Du st can norm ally be rem oved by blow ing the w ind ow su rface u sing a com pressed air blow er, u nless the d u st particles are being held by an electrostatic charge, in w hich case either an ionized air blow er or w et cleaning is necessary. Oil is u su ally introd u ced d u ring hand ling. Tou ching the su rface of the w ind ow barehand ed w ill leave oily resid u es. Using ru bber fingercots and ru bber gloves can prevent oil contam ination. H ow ever, the friction betw een the ru bber and the w ind ow m ay prod u ce electrostatic charge that m ay d am age the sen sor. To avoid ESD d am age and 03-032-20013-04 Teledyne DALSA Piranha HS-xx RoHS User Manual 113 to avoid introd u cing oily resid u es, only hold the sensor from the ed ges of the ceram ic package and avoid tou ching the sensor pins and the w ind ow . Scratches can be cau sed by im proper hand ling, cleaning or storage of the sensor. Vacu u m picking tools shou ld not com e in contact w ith the w ind ow su rface. CCDs shou ld not be stored in containers w here they are not properly secu red and can slid e against the container. Scratches d iffract incid ent illu m ination. When exposed to u niform illu m ination, a sensor w ith a scratched w ind ow w ill norm ally have brighter pixels ad jacent to d arker pixels. The location of these pixels changes w ith the angle of illu m ination. Cleaning the Sensor Window 1. Use com pressed air to blow off loose particles. This st ep alone is u su ally su fficient to clean the sensor w ind ow . 2. If fu rther cleaning is requ ired , u se a lens w iper m oistened w ith alcohol or acetone. 3. We recom m end u sing lint-free ESD-safe cloth w ipers that d o not contain particles that can scratch the w ind ow . Th e Anticon Gold 9‖x 9‖ w iper m ad e by Milliken is both ESD safe and su itable for class 100 environm ents. Another ESD acceptable w iper is the TX4025 from Texw ipe. 4. An alternative to ESD-safe cloth w ipers is Transplex sw abs that have d esirable ESD properties. There are several varieties available from Texw ipe. Do not u se regu lar cotton sw abs, since these can introd u ce charge to the w ind ow su rface. 5. Wipe the w ind ow carefu lly and slow ly. 6. When cleaning long linear sensors, it m ay be easier to w ipe along the w id th (i .e. as opposed to the length) of the sensor. Teledyne DALSA 03-032-20013-04 Piranha HS-xx RoHS User Manual 114 Appendix F Revision History 03-032-20013-04 Revision Number Change Description 00 RoH S com pliant H S cam era p relim inary release 01 -H elp screen exam ples (gh) revised . -EMC com pliance section upd ated to reflect RoH S d esignation . 02 -H S-82-04k80 m od el of cam era ad d ed to m anual. H S-82 specifications ad d ed . H S-82 specific ad d itions m ad e to the stage select (stg), set binning vertical (sbv), and set sync frequency (ssf) com m and d escriptions. -―Prelim inary‖ m arking rem oved . -H S-80-04k40 m od el inform ation ad d ed . 03 -Line Rate for H S-80-04K40 m od el – 68kH z -Upd ated DALSA logo to Teled yne DALSA logo -8k m echanicals upd ated show ing sensor alignm ent values m easured from the tooling holes. 04 -RoH S com pliance upd ated for H S-40-04k40 m od el. H S-40-04k40 is not RoH S com pliant. Teledyne DALSA Piranha HS-xx RoHS User Manual 115 Index A applications, 6 Area Mod e, 34 B binning, 37 horizontal, 37 vertical, 38 bright lines, 110 C calibrating the cam era, 53, 57 calibration errors, 65 overview, 57 results, 65 steps, 58 cam era control configuration, 96 dimensions, 24 messages, 83 output configuration, 42 cam era control signals, 20, 96 Cam era Link configurations, 19, 20, 43, 44, 45, 46 connector, 19, 20 mode, 47 outputs, 21 signals, 96 cam era settings current, 68 factory, 68 restoring, 68 retrieving, 76 saving, 68 user, 68 clocking signals, 21 coefficients diabling, 66 enabling, 66 loading, 66 resetting, 66 com m and format, 29 parameters, 29 com m and s, 33 Teledyne DALSA list, 85 conectors Camera Link, 19 connectors, 16 Camera Link, 20 Hirose, 18 power, 18 D d ark patches, 110 d ata bus, 21 d ata rate, 8 d ebugging, 107 d igital signal processing, 60 d irection externally controlled, 36 web movement, 36 DVAL, 21, 96 E EIA-644 Reference, 95 electrical specs, 7 EMC Declaration of Conform ity, 106 end -of-line sequence, 66 error m essages, 83 exposure m od es overview, 40 EXSYN C, 21 troubleshooting, 107 external trigger, 21 F fiber-optic light sources, 26 filters, 26 flat field correction, 53–59 FPN , 9, 57 fram egrabber param eters, 98 FVAL, 21, 95 G gain, 5, 51, 52, 54, 56 analog, 57 gain ranges, 8 03-032-20013-04 Piranha HS-xx RoHS User Manual 116 H optical specs, 7 output signals, 21 halogen light sources, 26 help, 29 H irose connector, 18 hot m irror, 26 P I illum ination, 26 incorrect line rate, 110 input/ output, 16 inputs (user bus), 21 installation, 16 interface electrical, 7 mechanical, 7 optical, 7, 26 parameters, 98 L LED, 18 lens modeling, 26 light sources, 26 line d ropout, 110 line rate, 8 line statistics, 74 LVAL, 21, 95 LVDS, 95 pairs, 96 LVDS pairs, 96 M MDR26 connector, 17 m echanical drawing, 24 m echanical specs, 7 m od e Area, 34 TDI, 34 m od els, 6 N N EE, 8 noisy output, 110 O offset optimizing, 51 online help, 29 operating modes, 39 optical interface, 26 03-032-20013-04 perform ance specifications, 14 pixel rate, 43, 46 pixel read out, 49 pixel statistics, 74 pow er connectors, 18 guidelines, 18 supply, 19 pretrigger, 50 PRN U, 57 R read out configuring, 42 direction, 48 mirroring, 48 rebooting, 71 resolution, 7 responsivity, 8 Revision H istory, 114 roi. See Region of Interest S SEE, 8 sensitivity level, 35 sensor, 14 cleaning, 112 serial com m unication reference, 95 serial interface, 28 defaults, 28 troubleshooting, 108 SerTC, 96 SerTFG, 96 settings factory, 32 statistics, 74 STROBE, 21 stuck bits, 110 T tap readout direction, 48 reconstruction, 97 TDI Mod e, 34 tem perature measurement, 75 test patterns, 72 test patterns, 108 tim ing, 22, 23 Teledyne DALSA Piranha HS-xx RoHS User Manual camera, 22, 23 Camera Link, 22, 23 mode 3, 40 mode 7, 41 trigger external, 21 troubleshooting, 107 117 V vid eo d ata, 75, 95 voltage measurement, 76 W w arning m essages, 83 Teledyne DALSA 03-032-20013-04