Home

PC2-CamLink User`s Manual

image

Contents

1. Data Port Sequencer Multi channel area scan and linescan cameras output image data in a variety of pixel sequences An important PC2 CamLink feature is its ability to transfer images to the host in the normal raster scan format for processing or display Re sequencing is performed in realtime without host processor intervention Typical multi channel image re sequencing consists of reordering odd and even pixel sequences odd or even lines or segmented scans The PC2 CamLink Data Port Sequencer has the ability to promote 10 bit 12 bit and 14 bit pixels to 16 bits It optionally supports truncation to 8 bits for all pixel depths above 8 bits The figures in this section illustrate a variety of multi channel pixel data sequences from linescan and area scan cameras PC2 CamLink can re sequence all situations shown Note The PC2 CamLink only supports re sequencing from left to right and top to bottom Any channel configuration scanning from right to left or from bottom to top is not directly supported and must be re sequenced by software on the host processor 44 e Part I PC2 CamLink Board PC2 CamLink User s Manual Single Channel One channel presents the pixel data in sequential order The acquired sequence represents the original image without need of sorting or reformatting The figure below single channel shows where the data appears in the original image PC2 CamLink can support this format for pixel depths
2. Camera Timing Outputs PC CamLink Values PC2 CamLink Values Param Param MAIN GROUP No equivalent on PC CamLink CL2 COMBINE EXSYNC PRI IFC DISABLE IFC ENABLE EXSYNC SIGNAL OUTPUT GROUP LNK EXSYNC ENABLE IFC DISABLE CL2 EXSYNC ENABLE IFC DISABLE IFC ENABLE IFC ENABLE LNK EXSYNC POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH CL2 EXSYNC POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH LNK EXT SYNC OFFSET TIME Range 0 to 1 87466e 007 ms step size 0 069842 microseconds CL2 EXT SYNC OFFSET TIME Float range parameter min Ous max 65535000us step size lus LNK EXT SYNC ACTIVE TIME Range 0 13968 to 1 874816 007 step size 0 069842 microseconds CL2_EXT_SYNC_ACTIVE_TIME Float range parameter min lus max 65535000us step size lus LNK_EXSYNC_MODE LNK_EXSYNC_FREE_RUNNING LNK EXSYNC TRIGI LNK EXSYNC TRIG2 LNK EXSYNC SOFT TRIG LNK EXSYNC SOFT TRIG2 LNK EXSYNC VB TRIG External trigger source selects the reference for EXSYNC LNK EXT SYNC PERIOD TIME Range 0 34921 to 1 87481e 007 ms step size 0 069842 microseconds Use CL2 FRAME TRIG FREQ for area scan or CL2 LINE TRIG CYCLE TIME for linescan PRI SIGNAL OUTPUT GROUP LNK PRI ENABLE IFC DISABLE IFC ENABLE CL2 PRI ENABLE IFC DISABLE IFC ENABLE LNK PRI POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH CL2 PRI POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH LNK PRI OFFSET TIME Range 0 to 1 87466e
3. LNK IMAGE GEOMETRY LNK ICHAN L2R LNK 2CHAN INTERLEAVED LNK 2CHAN SEP TAP L2R LNK 2CHAN SEP TAP R2L LNK 4CHAN SEP TAP L2R LNK 2CHAN SEP TAP CONVERGE LNK 2TAP INTERLINE A EVEN LNK 2TAP INTERLINE B EVEN LNK 3CHAN SEP TAP L2R LNK USER DEFINED GEO CL2 IMAGE GEOMETRY CL2_1CHAN_L2R CL2_2CHAN_INTERLEAVED CL2_2CHAN_SEP_TAP_L2R CL2_2TAP_INTERLINE_A_EVEN CL2_2TAP_INTERLINE_B_EVEN P_SCAN_MODE_STAT IFC_NILACED IFC_ILACED P_SCAN_MODE_STAT IFC_NILACED P_BAYER_FILTER IFC_BAYER_NONE IFC_BAYER_GB_RG P_BAYER_FILTER IFC_BAYER_NONE IFC_BAYER_GB_RG IFC_BAYER_GB_RG_DEZIPPER IFC_BAYER_RG_GB_DEZIPPER P INPUT LUTI FILE filename P INPUT LUTI FILE filename PIXEL GROUP P PIXEL SIZE Range 1 to 32 in steps of 1 bit P PIXEL SIZE to host Integer range parameter min 8 max 16 step buffer size 2 No equivalent on PC CamLink P CAM PIXEL SIZE from camera Integer range parameter min 0 max 16 step size 2 P PIXEL COLOR IFC MONO IFC_RGB P_PIXEL_COLOR IFC_MONO PC2 CamLink User s Manual Part III IFC e 105 IFC RGB PACK24 IFC YCRCB WINDOW GENERATOR GROUP P HORZ OFF Range 0 to 65536 step size 1 P HORZ OFF Integer range parameter min 0 max 8188 step size l P WIDTH PIXELS Range 0 to 65536 step size 1 P WIDTH PIXELS Integer range parameter min 4 max 8192 step size 4 P_VERT_OFF Range 0 to 65536
4. e Count and Size Select the number of frame buffers and the image size here Contiguous Frame buffers are allocated in contiguous system memory single memory block no segmentation Type Scatter Gather Frame buffers are allocated throughout system memory in noncontiguous memory paged pool Pages are locked in physical memory so a scatter gather list can be constructed This type allows for the allocation of very large size buffers or large buffer counts e Off screen Video The buffer is allocated in off screen video memory and uses the display adapter hardware to perform a fast copy from video memory to video memory e Overlay The frame buffer is allocated in video memory where the display adapter overlay hardware uses color keying to view the overlay buffer e Format Shows frame buffer pixel formats as supported by the hardware and camera files used Using Sapera CamExpert with PC2 CamLink CamExpert is the camera interfacing tool for frame grabber boards supported by the Sapera library CamExpert generates the Sapera camera configuration file yourcamera ccf based on timing and control parameters entered For backward compatibility with previous versions of Sapera CamExpert also reads and writes the cca and cvi camera parameter files PC2 CamLink User s Manual Part II Sapera LT e 95 CamE xpert Untitled File View Help ew Board Egg PC2 CamLink 1
5. CORACQ PRM TIME INTEGRATE PULSEO POLARITY CORACQ VAL ACTIVE LOW 0 1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ TIME INTEGRATE PULSE DELAY min 0 us max 65535000 us step 1 us CORACQ TIME INTEGRATE PULSEI DURATION min us max 65535000 us step lys CORACO TIME INTEGRATE PULSE POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM VACTIVE min 1 line max 8192 lines step line CORACQ PRM VBACK INVALID min 0 line max 16777215 lines step line CORACQ PRM VBACK PORCH Not available CORACQ PRM VFRONT INVALID min 0 line max 16777215 lines step line CORACQ PRM VFRONT PORCH Not available CORACQ PRM VIDEO CORACQ VAL VIDEO MONO 0x1 CORACQ PRM VIDEO LEVEL MAX Default 0 uV CORACQ PRM VIDEO LEVEL MIN Default 0 uV CORACQ PRM VIDEO STD CORACQ VAL VIDEO STD NON STD 0x1 CORACQ PRM VSYNC min 0 line max 4294967295 lines step line CORACQ PRM VSYNC POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ PRM VSYNC TIMEOUT Not available CORACQ PRM WEN POLARITY Not available PC2 CamLink User s Manual Part II Sapera LT e 85 VIC PARAMETERS Values CORACQ PRM BIT ORDERING CORACQ VAL BIT ORDERING STD 0 1 CORACQ PRM BRIGHTNESS Not available CORACQ PRM BRIGHTNESS BLUE Not available CORACQ
6. CORACQ PRM MASTER MODE HSYNC_POLARITY Not available CORACQ PRM MASTER MODE VSYNC_POLARITY Not available CORACQ PRM OUTPUT FORMAT CORACQ VAL OUTPUT FORMAT MONO8 CORACQ VAL OUTPUT FORMAT 16 CORACQ VAL OUTPUT FORMAT YUY2 CORACQ PRM PIXEL MASK Not available CORACQ PRM PLANAR INPUT SOURCES Not available CORACQ PRM PROG FILTER ENABLE Not available CORACQ PRM PROG FILTER FREQ Not available CORACQ PRM SATURATION Not available CORACQ PRM SCALE HORZ Not available CORACQ PRM SCALE HORZ METHOD Not available CORACQ PRM SCALE VERT Not available CORACQ PRM SCALE VERT METHOD Not available 88 e Part II Sapera LT PC2 CamLink User s Manual CORACQ PRM SHAFT ENCODER DROP min Otick max 65535 ticks step tick CORACQ PRM SHAFT ENCODER ENABLE TRUE FALSE CORACQ SHAFT ENCODER LEVEL CORACQ PRM SHAFT ENCODER MULTIPLY CORACQ VAL LEVEL LVDS 0x4 Not available CORACQ PRM SHARED CAM RESET Not available CORACQ PRM SHARED CAM TRIGGER Not available CORACQ PRM SHARED EXT TRIGGER Not available CORACQ PRM SHARED FRAME INTEGRATE Not available CORACQ PRM SHARED STROBE Not available CORACQ PRM SHARED TIME INTEGRATE Not available CORACQ PRM SHARPNESS Not available CORACQ PRM SNAP COUNT Default 1 frame CORACQ PRM STRO
7. Confirm that you are using Windows XP Windows Vista or Windows 7 Other versions of Windows or non Microsoft operating systems are not supported Configuration Jumpers PC2 CamLink is eguipped with two type of jumpers e Opto coupler jumper e Camera power jumper The opto coupler jumper includes four connectors divided into two sets of two optol J5 and J6 and opto2 J3 and J4 This jumper selects specific voltage power to the opto coupler by means of jumper configuration See J3 J4 JS J6 Opto coupler Voltage Selector on page 70 for more information Factory default is 0 6V for TTL voltage level connections The camera power jumper J13 controls camera power on the DB 15 connector by means of jumper configuration For important information concerning this topic see the Camera Power section on page 60 Factory default is no voltage PC2 CamLink User s Manual Part I PC2 CamLink Board e 7 Sapera LT Library Installation Note to install Sapera LT and the PC2 CamLink device driver logon to the workstation as an administrator or with an account that has administrator privileges The Sapera LT Development Library or runtime library if application execution without development is preferred must be installed before the PC2 CamLink device driver e Insertthe DALSA Sapera CD ROM If AUTORUN is enabled on your computer the DALSA installation menu is presented e If AUTORUN is not enabled use Windows Explore
8. 7 CameraLink Base Mono 1 Basic Timing Parameters x Display x Parameter Value ai Grab A Snap Trigger H3 13 A Camera Type Areascan Pixel Depth 8 Position 077 y 364 Value 0054 Frame sec Horizontal Active in Pixels 640 Horizontal Offset in Pixels 0 Vertical Active fin Lines 480 Vertical Offset lin Lines la Pixel Clock Input Frequency Data Valid Disabled Camera Sensor Geometry Set One 4 Coreco Camera Library Admec En Atmel EH Basler COHU 8 Hitachi lllunis EH JAI PHOTONFOCUS R Perkin Elmer R Pulnix Silicon Imaging TELI 9 8 Toshiba m User s Configuration File Extem Image 11 10 50 PC2 CamLink 1 Camera Type value was changed from Areascan to Linescan 11 10 51 PC2 CamLink 1 Camera Type value was changed from Linescan to Areascan Video status Pixel Clock Present An important component of CamExpert is its live acquisition display window that allows immediate verification of timing or control parameters without the need to run a separate acquisition program For context sensitive help click on the TM then click on a camera configuration parameter A short description of the configuration parameter will be shown in a popup Click on the butto
9. Integer range parameter min 10us max 65535000us step size lus PC2 CamLink User s Manual Part IFC e 109 110 e Part III IFC PC2 CamLink User s Manual Part IV Troubleshooting and Support PC2 CamLink User s Manual Part IV Troubleshooting and Support e 111 112 e Part IV Troubleshooting and Support PC2 CamLink User s Manual Troubleshooting Overview This section provides suggestions for resolving installation or usage problems that may be encountered with the PC2 CamLink due to the constant changing nature of computer equipment and operating systems Note that information provided within this section will be updated with the latest information DALSA can provide for each manual version release If you require help and need to contact DALSA Technical Support make detailed notes on your installation and or test results for our technical support department to review Tools Sapera comes with the following tools to help resolve PC2 CamLink problems WW Log Viewer StarteProgram DALSA Sapera LT ToolseLog Viewer Lists various Sa pe r a information warnings and error messages reported by DALSA boards including the PC2 CamLink driver PCI Diagnostics Start Program DALSASapera LT Tools PCI Diagnostics Lists all the computer s PCI configuration space registers IFC comes with the following tools to help resolve PC2 CamLink problems F C Log Viewer StartePrograms IFC Version 5 8 Tool
10. PC2CamLink_1 vi CameraLink Bas no r Configuration File c Coreco S aperaNCamF ilesLl ser Browse If no Configuration file exists for your board camera you must run the CamE xpert utility to generate your Configuration file 1 5 Sapera Grab Demo File m File Control r Acquisition Control Grab Abort ay len k i N General Options 4 Buffer View Grab Demo Main Window The main window provides control buttons and a central region where the grabbed image is displayed Developers can use the source code supplied with the demo as a foundation to quickly create and test the desired imaging application x Acquisition Options General Area Scan Line Scan Composite Load CAM VIC Exit PC2 CamLink User s Manual Part II Sapera LT e 93 The various functions are described below File Control Three controls are provided for image file transfers e New Clears the current image frame buffer Load Retrieves images BMP TIF CRC JPG and RAW formats e Save Prompts for a file name file save location and image format Acquisition Options Note that unsupported functions are grayed out and not selectable Function support is dependent on the frame grabber hardware in use e General Acquisition Settings Allows for PC2 CamLink external trigger mode enabling e Area Scan Camera Control Provid
11. ATS DALSA e 7075 Place Robert Joncas Suite 142 e Montreal Quebec Canada e HAM 272 http www dalsa com mv PC2 CamLink User s Manual Part number OC PC2M CUM00 Edition 2 31 NOTICE 2001 2010 DALSA Corp rights reserved This document may not be reproduced nor transmitted in any form or by any means either electronic or mechanical without the express written permission of DALSA Corp Every effort is made to ensure the information in this manual is accurate and reliable Use of the products described herein is understood to be at the user s risk DALSA Corp assumes no liability whatsoever for the use of the products detailed in this document and reserves the right to make changes in specifications at any time and without notice Microsoft is a registered trademark Windows Windows XP Windows Vista and Windows 7 are trademarks of Microsoft Corporation All other trademarks or intellectual property mentioned herein belong to their respective owners Manual revision May 27 2010 Document Number OC PC2M CUMOO Printed in Canada Contents INTRODUCTION rc 1 OVERVIEW OF THE 1 About th tertie e E Ex 2 Using the Manual oce tete teet 2 PART 0 3 THE POJ AMEN o 5 Components amp Part Numbers eese eene 5 1 737 6 PC2 CAMLINK INSTALLATION OVERVIEW ta on
12. CL2 EXT SYNC OFFSET TIME Pulse offset from trigger event CL2 EXT SYNC ACTIVE TIME Size of pulse CL2 COMBINE EXSYNC PRI IFC DISABLE IFC_ENABLE PRIN The PRIN output signal is used by some cameras to control the integration time PRIN is a programmable pulse generator the delay from the trigger and the pulse duration are programmable from lus to 65seconds The polarity of the PRIN output is programmable 26 e Part I PC2 CamLink Board PC2 CamLink User s Manual PRIN Pulse Generator Ext Trigger PRIN Active i Offset 1 T j Figure 4 PRIN Pulse Generator The PRIN signal can be selected as an output on any of the four camera control lines on the Camera Link connector Note The PRIN pulse is always fired from the selected trigger event Sapera Parameters for PRIN Refer to Time Integration method in the Sapera Acquisition Parameters Reference manual PRIN 15 typically designated by pulse 0 in the various time integration methods CORACQ PRM TIME INTEGRATE METHOD Method to use for time integration CORACQ PRM TIME INTEGRATE PULSEO DELAY Pulse offset from trigger event CORACQ TIME INTEGRATE PULSEO DURATION Size of pulse CORACQ PRM TIME INTEGRATE PULSEO POLARITY CORACQ VAL ACTIVE LOW CORACQ VAL ACTIVE HIGH Note Sapera also support Camera Reset methods and Camera Trigger methods Refer to the Sapera Acquisition Parameters Reference manu
13. CORACQ VAL LINE INTEGRATE METHOD 3 0 4 CORACQ VAL LINE INTEGRATE METHOD 4 0 8 CORACQ LINE INTEGRATE PULSEO DELAY min Ous max 65535000 us step lys CORACQ PRM LINE INTEGRATE PULSEO DURATION min 1 us max 65535000 us step 1 us CORACQ PRM LINE INTEGRATE PULSEO POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ LINE INTEGRATE PULSEI DELAY min 0 us max 65535000 us step lys CORACQ LINE INTEGRATE PULSE DURATION CORACQ LINE INTEGRATE PULSE POLARITY min us max 65535000 us step 1 us CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM LINE TRIGGER DELAY min 0 us max 65535000 us step 1 us PRM LINE TRIGGER DURATION min 1 us max 65535000 us step 1 us CORACQ PRM LINE TRIGGER METHOD CORACQ VAL LINE TRIGGER METHOD 1 0 1 CORACQ PRM LINE TRIGGER POLARITY CORACQ VAL ACTIVE LOW 0 1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM LINESCAN DIRECTION Default 0 CORACQ PRM LINESCAN DIRECTION POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PIXEL CLK 11 20000000 Hz CORACQ PRM PIXEL CLK DETECTION CORACQ VAL RISING EDGE 0x4 CORACQ PRM PIXEL CLK EXT min 20000000 Hz max 66000000 Hz step 1 Hz CORACO PRM PIXEL CLK INT 20000000 Hz max 66000000 Hz step 1 Hz
14. System Requirements e Intel Pentium class CPU 128MB system memory 30MB free hard drive space Dimensions 6 675 length x 4 2 height standard PCI half slot card Camera Power 5V up to 1 5A and 12V up to 0 5A taken from PCI connector with auto reset fuse Option to plug floppy power cable for more current up to 1 5A Temperature 0 C 32 F to 55 C 131 F Relative Humidity 5 up to 95 non condensing 66 e Part I PC2 CamLink Board PC2 CamLink User s Manual PC2 CamLink Connector and Jumper Locations PC2 CamLink Component View revision AO J8 A J14 LED 2 J9 gt i LED 3 LED 4 LED 5 d LED 1 J3 YO v L1 J2 SO J5 Sa J6 PCI Bus Figure 18 Component View revison AO PC2 CamLink Component View revision A1 B yo A J14 v LED 2 Ji J9 gt J11 LED 3 LED 4 LED 5 LED 6 LED 1 J2 s 00 008 cc OR PCI Bus Figure 19 Component View revison A1 Important Revision Al is different only in the orientation of J8 Pin one is on the upper right side of the pin connector PC2 CamLink User s Manual Part I PC2 CamLink Board e 67 Connector Bracket
15. 0 Created pc2c SYS INITDEVICES gt 1 PC2 CamLink device found Windows version 5 0 Build 2195 2 Saving the PCI Diagnostics Start PCI Diagnostics e Select the Save button The dump of PCI configuration file is saved under PCIDUMP TXT e Send PCIDUMP TXT to DALSA Technical Support Note that the DALSA PCI Vendor ID is Ox11EC The PC2 CamLink board PCI Device ID is 0x2021 Here is a typical PCI configuration for a PC2 CamLink 114 e Part IV Troubleshooting and Support PC2 CamLink User s Manual ai PCI device PC2 CamLink from Coreco Imaging bus 0 slot 9 function 0 Device enabled c 1997 2003 Coreco inc Vendor ID Os11EC Rev ID p o0 Latency JOxFF ee add 0 a f 8it Ox00 gt OxEC 0x11 0x21 Ox20 Device ID 02027 Intine Min Grant ota n 04 0x85 0 00 Ox00 Ox02 bt 0 08 gt 0x00 0x00 0x00 0 04 SubVendlD noo MawLet 090 0x00 ORFF 040000 SubsystlD 0000 Line size 000 Class Code 0040000 i ANN nn 080 nen Command Header type 000865 FBB SERR Wat PE VGA Mw spc BM Mem 10 Multifune r Status BIST 090200 se SAJ med B2B amp amp MHz BIST capable Base address registers Expansion ROM Enabled 0 OxDE800000 to D4DEBDO3FF Mem Pre 32 bit Enabled 1 ae y PEFC bidge 2 WO Pej Primary
16. 0x4 TRANSFER PARAMETERS Values CORXFER PRM EVENT TYPE CORXFER VAL EVENT TYPE END OF FRAME 0x00800000 CORXFER VAL EVENT TYPE START OF FRAME 0x00080000 CORXFER VAL EVENT TYPE END OF LINE 0x01000000 CORXFER VAL EVENT TYPE END OF NLINES 0x02000000 CORXFER VAL EVENT TYPE END OF TRANSFER 0x04000000 90 e Part II Sapera LT PC2 CamLink User s Manual Sapera Software Example Grab Demo Overview Program Start Programse DALSA Sapera LTeDemos Grab Demo Program file Dalsa Sapera Demos Classes vc GrabDemo Release GrabDemo exe Workspace Dalsa Sapera Demos Classes vc SapDemos dsw Description This program demonstrates the basic acquisition functions included in the Sapera library The program allows you to acquire images either in continuous or in one shot mode while adjusting acquisition parameters The program code can be extracted for use within your own application Remarks Grab Demo was built using Visual C 6 0 by means of the MFC library and is based on the Sapera standard API and Sapera C classes See the Sapera User s and Reference manuals for further information PC2 CamLink User s Manual Part II Sapera LT e 91 Using the Grab Demo Server Selection Run Grab Demo from the Start Menu Start ProgramseDALSA Sapera LT Demos Grab Demo Accessories E Programs Documents B Eh Gelinas B3 FulGhot6 0 3 Pai
17. 2 3 Window j Generator Interrupt 1 f 1 1 state of trigger end of N lines N 5 state of frame end of N lines N 5 end offrame Bus Master Done Note 1 Start of line interrupt is not illustrated but occurs on each rising edge of LVAL Note 2 End of N lines interrupt illustrated for N 5 lines Figure 16 Acquisition Interrupts Note The Bus Master Done interrupt location is dependant upon PCI bus traffic as well as the size of the Window Generator It therefore may occur after the FVAL of the next frame 58 e PartI PC2 CamLink Board PC2 CamLink User s Manual Error Support Interrupts PC2 CamLink supports a number of interrupts generated when problematic conditions occur within the system These interrupts are used to notify applications that something erroneous occurred Error Support Interrupts are part of the trigger to image reliability support Skipped Frame A Skipped Frame condition is signaled when the onboard FIFO is full resulting in the remainder of the current acquired frame to be discarded The buffer is marked full since it might contain some of the first pixels of the frame and must be released by the application The TRIG LED blinks red to indicate an error condition when Skipped Frame occurs A typical cause of this problem is an insufficient PCI bandwidth Maximal theoretical bandwidth of the PCI bus is 132MB second If numerous bus master PCI devices are active sim
18. 5 RS422 33 S Safe Mode boot 71 Sapera Acquisition Parameters Reference manual 81 Sapera buffer allocation 13 Sapera buffer values 13 Sapera CD ROM 8 9 Sapera Configuration program 12 Sapera Configuration Program 10 Sapera LT Development Library 8 Sapera LT User s manual 8 Sapera messaging 14 Sapera messaging 13 Sapera parameters 81 Sapera server 12 81 92 115 scatter gather 14 49 95 scatter gather buffers 14 Sequential Snap Example 102 PC2 CamLink User s Manual serial port 10 17 18 41 118 server list 12 Service Pack Update Check 16 Set Board COM Tool 17 shaft encoder 25 32 33 60 118 shaft encoder signal 33 shunt jumper 71 Slow Strobe 39 software trigger 31 SPR 23 static electricity 7 static resources 13 status LED 72 117 118 strobe 39 T technical support 9 113 114 timer granularity 25 transfer interrupts 58 trigger polarity active high 28 active low 28 falling edge 28 rising edge 28 Trigger To Image Reliability 55 59 60 61 TTL shaft encoder 33 V virtual frame 33 35 58 virtual frame trigger 35 36 37 W Window Generator 47 58 Window XP 14 Windows Logo testing 8 Windows OS memory 14 Windows Vista 7 Windows XP 117 workstation 8 10 YCrCb Engine 48 PC2 CamLink User s Manual Index e 127
19. J2 ACQ CAMERALINK 0000000 ES n oo o Te ae 14 E TRIG Figure 20 Connector Bracket J1 MDR 26 Pin Female Camera Connector ej Pin 1 T Pin 26 Pin Pin Name Type Description 25 BASE 0 Input Neg Base Data 0 12 BASE_X0 Input Pos Base Data 0 24 BASE XI Input Neg Base Data 1 11 BASE XI Input Pos Base Data 1 23 BASE X2 Input Neg Base Data 2 10 BASE X2 Input Pos Base Data 2 21 BASE X3 Input Neg Base Data 3 8 BASE X3 Input Pos Base Data 3 22 BASE XCLK Input Neg Base Clock 9 BASE XCLK Input Pos Base Clock 20 SERTC Output Neg Serial Data to Camera 7 SERTC Output Pos Serial Data to Camera 19 SERTFG Input Neg Serial Data to Frame Grabber 6 SERTFG Input Pos Serial Data to Frame Grabber 18 Output Neg Camera Control 1 5 1 Output Pos Camera Control 1 17 CC2 Output Neg Camera Control 2 4 CC2 Output Pos Camera Control 2 16 CC3 Output Neg Camera Control 3 3 CC3 Output Pos Camera Control 3 15 CC4 Output Neg Camera Control 4 2 CC4 Output Pos Camera Control 4 1 13 14 26 GND Ground 68 e Part I PC2 CamLink Board PC2 CamLink User s Manual J2 DB 15 Female Connector Pin 1 000000080 O 0000000 Pin 15 Pin Pin Name Type Descr
20. PC2 CamLink hosts two visual status LEDs on its PCI bracket They are labeled ACQ acquisition and TRIG external trigger The ACQ LED indicates the status of the acquisition based on the signals going through the Camera Link MDR 26 connector Possible LED states are outlined in table below ACQ LED Siate Acquisition State OFF Fatal card error Static Red Camera is not connected no Pixel Clock detected Static Green Camera is connected Blinking Green Slow 2 Hz Activity on LineValid pin Blinking Green Fast 15 Hz Grabbing The TRIG LED represents the status of the selected external trigger pin This is based on the signals going through the DB 15 connector The TRIG LED is also used to indicate an error condition Possible LED states are explained in table below TRIG LED State Trigger State OFF No trigger detected Blinking Green Triggers at a slow rate detected one blink per trigger Static Green Triggers at a fast rate detected Blinking or Static Red Error detected by PC2 CamLink driver Note A PC2 CamLink application must be running to select the external trigger source for the TRIG LED to operate For instance if the current camera config file selects OPTOI as the current external trigger source only pulses detected on the DB 15 s OPTOI pin will light the TRIG LED 52 e Part I PC2 CamLink Board PC2 CamLink User s Manual Parallel I O PC2 CamLink provides digital I O capability for controlling or monitoring exter
21. since the PCI bus communication protocol introduces overhead and that other devices are accessing the PCI bus the practical capacity is generally around 60 80MB per second and is highly dependant upon your PCI chipset In general 1 Ifthe required bandwidth is smaller than 60MB per second it should be acceptable for most PC systems available on the marketplace today 2 If the required bandwidth has a range between 60MB per second to 80MB per second precaution must be considered towards the system s chipset quality and towards other PCI devices installed within the same system 3 Bandwidth larger than 80MB per second cannot reliably be handled by PC2 CamLink because of its FIFO based architecture Consider using the DALSA PC CamLink or X64 CL in this case These latter boards provide enough onboard memory to compensate for PCI latencies Because the PC2 CamLink transfer engine is using a 4KB FIFO for transfers when the PC2 CamLink is acquiring and transferring an image simultaneously the FIFO gets filled at the maximum speed during one line period If the line size is smaller than 4KB the line blanking period will allow the FIFO to be emptied However a line size larger than 4KB requires the availability of the PCI bus when the frame grabber transfers an image This leads to two different methods of bandwidth computation required by a particular camera Note The line bandwidth is the limiting factor for both area scan and linescan cam
22. 1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ VAL RISING EDGE 0x4 CORACQ VAL FALLING EDGE 0x8 CORACQ VAL DOUBLE PULSE RISING EDGE 0x20 CORACQ VAL DOUBLE PULSE FALLING EDGE 0x40 CORACQ PRM EXT FRAME TRIGGER ENABLE TRUE FALSE CORACQ PRM EXT FRAME TRIGGER LEVEL CORACQ VAL LEVEL TTL 0 1 CORACQ VAL LEVEL LVDS 0x4 CORACQ PRM EXT FRAME TRIGGER SOURCE 0 automatic always trigger input 1 except in variable frame length where start pulse is associated with trigger input 1 and stop pulse is associated with pulse 2 CORACO EXT LINE TRIGGER DETECTION CORACQ VAL RISING EDGE 0x4 CORACQ PRM EXT LINE TRIGGER ENABLE TRUE FALSE CORACQ PRM EXT LINE TRIGGER LEVEL CORACQ VAL LEVEL LVDS 0x4 CORACQ PRM EXT LINE TRIGGER SOURCE 0 Use phase A and B of shaft encoder input 1 Use phase A only of shaft encoder input CORACQ PRM EXT TRIGGER DETECTION CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ VAL RISING EDGE 0x4 CORACQ VAL FALLING EDGE 0x8 CORACQ PRM EXT TRIGGER DURATION min 0 us 255 us step lys CORACQ PRM EXT TRIGGER ENABLE CORACQ VAL EXT TRIGGER OFF 0x1 CORACQ VAL EXT TRIGGER ON 0x8 CORACQ PRM EXT TRIGGER FRAME COUNT Default 1 frame CORACQ PRM EXT TRIGGER LEVEL CORACQ VAL LEVEL TTL 0 1 CORACQ VAL LEVEL LVDS 0x4 CORACQ PRM EXT TRIGGER SOURCE 0 default always trigger input 1 CO
23. 100 e Part IFC PC2 CamLink User s Manual IFC Software Examples IFC Examples for PC2 CamLink Imaging Studio comes supplied with the following example programs for PC2 CamLink Full source code is included You need Microsoft Visual C 6 0 or later to recompile the examples Two examples are included with PC2 CamLink If IFC is installed on your system go to Windows Desktop and select the IFC folder or from the Windows Desktop StarteProgrameIFC Version 5 8 PC2 CamLink Examples General Examples Em PC2 CamLink Examples Interrupt N Accessories Tools Sequential Snap B Veganet Examples Documents gt Camera Configurator 8 FullShot 6 0 IFC Configurator Help Paint Shop Pro m IFC Release Notes A Search 3 gt 1 IFC Service Pack Update URL IFC Software Manual PC2 CamLink User s Manual g E Coreco Imaging m Share My Video Sources VegaNet Help tap Shut Down The table below lists the PC2 CamLink examples PC2 CamLink Examples Interrupt Demonstrates how to use interrupts available on PC2 CamLink Sequential Snap Snaps a small number of images into host memory and replays them Interrupt Title Interrupt Description Shows how to register to interrupts available on PC2 CamLink Camera trigger setup can be changed from within this application Features Uses CL2TEST TXT for configuration S
24. 16 bit 10 12 14 bit pixels promoted to 16 bit 10 12 14 16 bit pixels optionally truncated to 8 bit Pixel rate up to 66 MHz Controls Support for EXSYNC and PRIN on any of the four Camera Control CC line SW selectable 2 Trigger inputs SW selectable with debounce circuit supports 2 Opto or 2 LVDS or2 TTL Quadrature shaft encoder LVDS with tick divider Strobe TTL level Data Formatting 3x 8 bit ILUT Acquisition cropper YCrCb converter during PCI transfer Image Size 8K pixel x 8K line for area scan PC2 CamLink User s Manual Part I PC2 CamLink Board e 65 8K pixel x 8K of lines for linescan Variable frame length for linescan level control or 2 pulse controls PCI Transfer Up to 100MB second sustained Connectors One MDR 26 for Camera Link e One DB 15 for trigger strobe and 12V 5V power available on PCI bracket One 26 pin header for Parallel I O flat cable to second slot VO 19 general purpose I O pins TTL level 8 input 8 output 2 strobes l interrupt with 2 soft fused 5V power pins One RS 232C serial port mapped as regular Windows COM PORT Miscellaneous 2 Visual Status LED indicators Acguisition and Trigger Software Supported by Sapera LT Sapera Processing IFCTM MVTools Sherlock WiT VixN Camera Configurator Windows XP Windows Vista and Windows yp Application development using Microsoft amp Visual C C DLLs or Visual Basic
25. Bus E 3 VO Second Bus Save 4 wo Pel Subord Bus Help m rot Iz 1 Bridge Cl Symptoms PC2 CamLink board not detected The board is not seen when an application is started This is due to a module creation error under IFC or because the Sapera Server is not present under Sapera Note PC2 CamLink is supported by two different APIs Sapera LT and IFC You must install one or the other It is not possible for PC2 CamLink to work under both APIs on the same machine PC2 CamLink will only work correctly with the last API installed on the machine This ensures the PC2 CamLink driver matches the version of the API you are using This could stem from a hardware failure a PCI problem a plug and play problem a kernel driver problem or a software installation problem You need to have Administrator privileges to install the PC2 CamLink software and to follow the troubleshooting guidelines given in this section The following sections assume that you have followed the installation procedure described earlier in this manual and that a PC2 CamLink board is installed in your system PC2 CamLink User s Manual Part IV Troubleshooting and Support e 115 Potential Hardware or PCI Failure e Make certain that the PC2 CamLink board is properly seated in the PCI slot It is preferable to screw in the board securely to the computer chassis at the PCI bracket s
26. EXSYNC Pulse Generator PC2 CamLink User s Manual Part I PC2 CamLink Board e 25 The EXSYNC signal can be selected as an output on any of the four camera control lines on the Camera Link connector Note The EXSYNC pulse is always fired from the selected trigger event EXSYNC can be used as the exposure input to some area scan cameras EXSYNC might also be used as the line transfer input on some linescan cameras Sapera Sapera Parameters for EXSYNC Refer to Time Integration method in the Sapera Acquisition Parameters Reference manual EXSYNC is typically designated by pulse 1 in the various time integration methods CORACQ PRM TIME INTEGRATE METHOD Method to use for time integration CORACQ PRM TIME INTEGRATE PULSE DELAY Pulse offset from trigger event CORACQ PRM TIME INTEGRATE PULSE1 DURATION Size of pulse CORACQ PRM TIME INTEGRATE PULSEI POLARITY CORACQ VAL ACTIVE LOW CORACQ VAL ACTIVE HIGH Note Sapera also supports Camera Reset and Camera Trigger methods Refer to the Sapera Acquisition Parameters Reference manual for more information In CamExpert these parameters are found under the Advanced Control Parameters tab Select one of the camera control methods camera reset camera trigger or time integration IFC IFC Parameters for EXSYNC CL2_EXSYNC_ENABLE IFC_DISABLE IFC_ENABLE CL2 EXSYNC POLARITY IFC_ACTIVE_LOW IFC ACTIVE HIGH
27. II IFC Software Examples Two board specific examples of IFC software features using the PC2 CamLink PC CamLink IFC Parameters Comparison Lists PC CamLink parameters compared with their corresponding PC2 CamLink parameters e Part IV Troubleshooting and Support Troubleshooting Offers suggestions for resolving installation or usage problems PC2 CamLink User s Manual Introduction e 1 DALSA Contact Information Phone numbers web sites and important email addresses About the Manual This manual exists in Adobe Acrobat PDF format The PDF format makes full use of hypertext cross references and include links to the DALSA home page on the Internet located at http www dalsa com mv accessed using any web browser Using the Manual File names directories and Internet sites will be in bold text e g image2 bmp c MFC http www dalsa com Text that must be entered using the keyboard will be in typewriter style text e g c temp Menu and dialog actions will be indicated in bold text in the order of the instructions to be executed with each instruction separated by bullets For example going to the File menu and choosing Save would be written as File Save 2 e Introduction PC2 CamLink User s Manual Part I PC2 CamLink Board PC2 CamLink User s Manual Part I PC2 CamLink Board e 3 4 e Part I PC2 CamLink Board PC2 CamLink User s Manual The PC2 CamLink The PC2 CamLink is a half slot frame grabber
28. anko se ena 7 Warning Grounding Instructions eese 7 Before Installing tek te tee ruta teke DN Fn YC panye san 7 Configuration Jumpers 2 7 SAPERA LT LIBRARY INSTALLATION seen en e nen e nen n nenne 8 INSTALLING PC2 CAMLINK HARDWARE AND DRIVER 8 In a Windows XP Windows Vista or Windows 7 System sess 8 UPGRADING SAPERA OR ANY BOARD DRIVER 9 Board Driver Upgrade 9 Sapera and Board Driver Upgrades eene 10 COM Port Assignment eonim rS E nd 10 Configuring 12 SOFTWARE tiens 15 a hi EE 15 1 17 Upgrading Onboard Firmware eee eerte 20 THEORY OF OPERATION ken ei tee an dO auod E 21 PC2 CamLink Flow Diagram 7 0 21 25 Camera IntCrfACE ve FYS 42 VIA D O 43 Data 44 Window GenetdtO 47 YCrCb Engine et tete be FyCGA WON 48 POL 0 49 Visual Status LEDS titer tete 52 53 PC2 CamLink User s Manual Contents e i 00 55 59 Camera DPOWOF b t a kod e pta ge lue se due de
29. for vision applications developed as an extension of National Semiconductor s Channel Link technology The advantages of the Camera Link interface are that it provides a standard digital camera connection specification a standard data communication protocol and simpler cabling between camera and frame grabber The Camera Link interface simplifies the usage of increasingly diverse cameras and high signal speeds without complex custom cabling For additional information concerning Camera Link see http en wikipedia org wiki Camera_Link Rights and Trademarks Note The following text is extracted from the Camera Link Specification 1 1 January 2004 The Automated Imaging Association AIA as sponsor of the Camera Link committee owns the U S trademark registration for the Camera Link logo as a certification mark for the mutual benefit of the industry The AIA will issue a license to any company member or non member to use the Camera Link logo with any products that the company will self certify to be compliant with the Camera Link standard Licensed users of the Camera Link logo will not be required to credit the AIA with ownership of the registered mark 3M is a trademark of the Company Channel Link is a trademark of National Semiconductor Flatlink is a trademark of Texas Instruments Panel Link is a trademark of Silicon Image PC2 CamLink User s Manual Part I PC2 CamLink Board e 75 Data Port Sum
30. free running mode where EXSYNC and PRIN are generated as fast as possible For linescan cameras a line trigger source is required to get an EXSYNC or PRIN pulse You can select the user timer to generate a trigger at a specified rate The EXSYNC and PRIN pulse generators can be combined to generate a double pulse on the same camera control pin Each pulse generator has the following capabilities e Programmable polarity active high or active low e Programmable delay from trigger event up to 65 seconds e Programmable duration up to 65 seconds Timer granularity is 1 us when the delay and duration values are below 65ms Granularity falls to 1115 for delay or duration above 65ms Delay and duration always have the same granularity Each timer for area scan can be started on the following trigger events e Optol or Opto2 trigger pins LVDSI or LVDS2 trigger pins SW trigger e User timer Each timer for line scan can be started on the following trigger events e Shaft encoder e User timer Note Both pulse generators are always fired by the same trigger source EXSYNC The external synchronization output EXSYNC can control camera timing and integration EXSYNC is a programmable pulse generator the delay from the trigger and the pulse duration are programmable from lus to 65 seconds The polarity of the EXSYNC output is programmable EXSYNC Pulse Generator Ext Trigger EXSYNC eo Offset dh Figure 3
31. is handled internally by the ACU to correctly synchronize acquisition with camera control and image transfer This is done automatically and does not require user application involvement The following table summarizes trigger to image reliability features on the PC2 CamLink Acquisition Deterministic Trigger input to strobe Camera Control output delay EXSYNC Alignment digital Strobe alignment control Camera control timing granularity Variable frame length acquisition control linescan PC2 CamLink User s Manual Double pulse integration control on a single pin Supported by PC2 CamLink Aligned to the first occurrence of HD after Yes trigger input Aligned immediately with trigger input instantaneous capture Aligned with the first EVAL IFC only Aligned with the external trigger 1 microsecond Maximum delay 64 msec Maximum duration 64 msec 1 msec Maximum delay 65 Seconds Maximum duration 65 Seconds The ability to acquire images of varying size Utilizes a start and stop acquisition control signal Part I PC2 CamLink Board e 61 Buffer data preventing Yes data corruption due to FIFO based PCI bus latency or unavailability 4 kilobytes Image Certificate Unique image identifier Yes 2 sap e n Certificate is encoded image data Can use by Sapera LT to correlate physical objects with images or to ensure that the correct sequence of images were acquired Came
32. is the least significant byte LSB and Port C is the most significant byte MSB This assignment is easily understood for 8 bit input With single tap or single channel cameras even 10 12 and 16 bit inputs are fairly simple Confusion begins with the assignment of 10 bit and 12 bit 2 tap or two channel cameras The Data and Port Assignments Table below shows the data bit assignments for all three ports Data and Port Assignments Table Port Bit assignent 8 bit 1 2 10 bit1 10 bit2 12 bit1 12 bit2 14 bit1 16 bit 1 tap tap taps tap taps tap tap Port A AO AO AO AO AO AO AO AO Al Al Al Al Al Al Al Al A2 A2 A2 A2 A2 A2 A2 A2 A3 A3 A3 A3 A3 A3 A3 A3 A4 A4 A4 A4 A4 A4 A4 A4 A5 A5 A5 A5 A5 A5 A5 A5 A6 A6 A6 A6 A6 A6 A6 A6 AT AT AT AT AT AT A7 A7 Port B BO BO 8 8 8 8 8 8 9 9 9 9 9 9 B2 B2 x x Al0 Al0 Al0 10 B3 B3 x x All All All All B4 B4 x B8 x B8 Al2 Al2 42 e Part I PC2 CamLink Board PC2 CamLink User s Manual BS B5 X B9 X B9 A13 A13 B6 B6 B10 14 7 7 Bll X A16 Port C C0 x x BO x BO X X BI x Bl 2 X B2 X B2 x x B3 x B3 X X C4 4 X B4 5 B5 x B5 C6 x x B6 x B6 x x C7 7 7 The PC2 CamLink supports area scan and linescan cameras e Maximum image size up to 8K x 8K pixels for area scan e Maximum image size up to 8K x 8K number of lines for linescan Variable frame length for linescan le
33. kk ap kep s aa 119 Sales Information redaren ee UNO LESER ee E EL ede dU 119 TECHNICAL SUPPORT yet n e n bd e aren as ques utut GU 120 GLOSSARY OF TERMS 121 INDEX 125 ii e Contents PC2 CamLink User s Manual Introduction Overview of the Manual e Part I PC2 CamLink Board The PC2 CamLink Description of the PC2 CamLink board and its software as well as PC2 CamLink package contents list Installing the PC2 CamLink Hardware installation instructions as well as information concerning jumper configuration and connecting cameras and devices Sapera LT Software Installation Illustrates how to install Sapera LT and the PC2 CamLink device driver as well as information concerning COM Port assignment and how to configure Sapera LT IFC Software Installation Illustrates how to install IFC as well as information concerning upgrading onboard firmware configuring the serial port and starting Camera Configurator Theory of Operation Detailing PC2 CamLink features Technical Reference PC2 CamLink specifications Includes connector and pinout diagrams Camera Link Interface Information concerning the Camera Link specification e Part Sapera LT Sapera Server and Parameters Lists the Sapera server available and describes the Sapera parameters and values supported by PC2 CamLink Sapera Software Examples Describes in detail the Sapera Grab Demo e Part
34. pins This is performed through the EXSYNC and PRIN output timers Refer to your camera manufacturer s datasheet Make certain that the camera is configured for the proper mode of operation This must match the camera configuration file Refer to your camera datasheet Most Camera Link cameras can be configured through a serial port interface Try to crop your image to a smaller size For example try capturing a 256 x 256 area This ensures enough pixels are provided by the camera to fill the image buffer It also lowers the PCI bandwidth The PC2 CamLink cannot correctly capture an image if the number of pixels is smaller than the buffer size Try changing the Data Valid setting in the camera configuration file Try using the Snap button instead of the Grab button Try using one of the demo programs instead of CamExpert or Camera Configurator Image grabbed incorrectly The board captures data but the displayed image is incorrect It may be a black image an image too dark or a reversed image Make certain that the pixel depth output from your camera matches your camera configuration file Try forcing single channel one tap acquisition by changing the data port sequencer configuration Ensure that the data port sequencer topology matches your camera Make certain that the camera type area scan or linescan matches your camera Make certain that the LUT is not filled with 0 118 e Part IV Troubleshooting and Suppor
35. status You should see This device is working properly If this indication is not present you may try to manually install the PC2C INF file The PC2C INF file is located in your PC2 CamLink folder WW 7 coreco pe2 camlink win2000 inf pe2c inf Sapera The PC2C INF file is located in F C MfeS8binlwin2000pc2c inf Open Windows Explorer and go the PC2C INF folder Right click on PC2C INF and select Install Board does not grab You can start an application but nothing happens when you start the grab The reported frame rate rests at 0 fps Clues from the Visual Indicators e Disconnect the camera cable MDR 26 from the PC2 CamLink The acquisition LED should be solid red e Reconnect your camera to the PC2 CamLink The acquisition LED should turn to green either blinking at 2Hz if camera is free running or solid if the camera is triggered If the LED stays red make certain that the camera is correctly powered A red indication on the acquisition LED signifies the Camera Link pixel clock does not reach the PC2 CamLink This can also indicate a bad camera cable e If camera power is provided by PC2 CamLink ensure that jumper J14 is set to the appropriate level SV or 12V Note that J14 factory default is no voltage If camera power is provided by PC2 CamLink ensure that LED2 1 5A overload and LED3 12V overload located at the back of the board under the
36. use A Sapera application using scatter gather buffers could consume most of the remaining system memory When using frame buffers allocated as a single contiguous memory block typical limitations one third of the total system memory with a maximum limit of approximately 100MB Click on Buffer under General Options in the Grab Demo Main Window see page 93 to select from a list of host buffer memory allocation types Count and Size 7 r Type Count Contiguous Scatter Gather Offscreen Video Height ago PIN C Virtual Width 0 Format MONOCHROME 8 BIT hd Pixel Depth significant bits Cancel Contiguous Memory for Sapera Messaging The current value for Sapera messaging determines the total amount of contiguous memory reserved at boot time for message allocation This memory space is used to store arguments when a Sapera function is called Increase this value if you are using functions with large arguments such as arrays and when experiencing any memory errors 14 e Part I PC2 CamLink Board PC2 CamLink User s Manual IFC Software Installation IFC SDK The IFC Imaging Foundation Classes library offers a C Application Program Interface API intended for use with DALSA s PC2 CamLink board IFC is packaged within the Imaging Studio CD ROM See the JFC SDK Software Manual for information concerning IFC Information in this manua
37. 007 ms step size 0 069842 microseconds CL2 PRI OFFSET TIME Float range parameter min Ous max 65535000us step size lus LNK PRI ACTIVE TIME Range 0 13968 to 1 874816 007 ms step size 0 069842 microseconds CL2 PRI ACTIVE TIME Float range parameter min lus max 65535000us step size lus LNK PRI END LOCATION LNK PRI END AT LEN BEGIN LNK PRI END AT LEN END LNK PRI END IS START DEPEND No equivalent on PC2 CamLink CAMERA CONTROL 104 e Part III IFC PC2 CamLink User s Manual ASSIGNMENTS GROUP LNK CAM CTLI SIGNAL LNK CCTL FIXED LOW LNK CCTL FIXED HIGH LNK CCTL EXSYNC LNK CCTL PRI CL2 CAM CTLI SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI LNK CAM CTL2 SIGNAL LNK CCTL FIXED LOW LNK CCTL FIXED HIGH LNK CCTL EXSYNC LNK CCTL PRI CL2 CAM CTL2 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI LNK CAM CTL3 SIGNAL LNK CCTL FIXED LOW LNK CCTL FIXED HIGH LNK CCTL EXSYNC LNK CCTL PRI CL2 CAM CTL3 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI LNK CAM CTL4 SIGNAL LNK CCTL FIXED LOW LNK CCTL FIXED HIGH LNK CCTL EXSYNC LNK CCTL PRI CL2 CTL4 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI General Acquisition Parameters PC CamLink Param MAIN GROUP Values PC2 CamLink Param Values
38. 10 or 12 bits e Provide 1MB for every 256MB of host frame buffer memory required e Add an additional 1MB if the frame buffers have a short line length e g or less increased number of individual frame buffers requires more resources e Add an additional 2MB for various static and dynamic Sapera resources e Test for any memory error when allocating host buffers Simply select the Buffer button in the General Options section of the Grab Demo Main Window see page 93 of the Sapera Grab Demo program to open the Buffer window see Using the Grab Demo on page 92 to allocate the number of host buffers required for your acquisition source Feel free to test the maximum host buffer limit possible in your host system Grab Demo will not crash when the requested number of host frame buffers cannot be allocated Count and Size F Count Contiguous Scatter Gather Dffscreen Video Height 480 Overlay Width 640 Virtual Format MONOCHROME 8 BIT vi Pixel Depth significant bits 5 PC2 CamLink User s Manual Part I PC2 CamLink Board e 13 Host Computer Frame Buffer Memory Limitations When planning a Sapera application and the host frame buffers used as well as other Sapera memory resources do not forget the needs of the Windows operating system memory Window XP as an example should always have a minimum of 128MB for its own
39. 2 CAMLINK The products to which this declaration relates are in conformity with the following relevant harmonized standards the reference numbers of which have been published in the Official Journal of the European Communities EN55022 1998 Residential Commercial and Light Industry 50204 1995 EN61000 4 1995 1996 Further declare under our sole legal responsibility that the product listed conforms to the code of federal regulations CFR 47 part 15 for a class A product St Laurent Canada 2008 05 22 hig A 0 Ghislain Beaupr Location Date Vice President Rescarch amp Development 6 e Part I PC2 CamLink Board PC2 CamLink User s Manual PC2 CamLink Installation Overview Warning Grounding Instructions Static electricity can damage electronic components Please discharge any static electrical charge by touching a grounded surface such as the metal computer chassis before performing any hardware installation If you do not feel comfortable performing the installation consult a gualified computer technician power cord from the computer to disable the power standby mode This prevents the case where Never remove or install any hardware component with the computer power on Disconnect the some computers unexpectedly power up when a board is installed Before Installing Make certain that a free PCI expansion slot is available PC2 CamLink is compatible with either 5V or 3 3V PCI slots
40. AOI Parameters tab IFC IFC Parameters for Cropper P HORZ OFF Horizontal offset P_WIDTH_PIXELS Horizontal width of area of interest P VERT OFF Vertical offset P HEIGHT PIXELS Vertical height of area of interest Note Under IFC a special situation occurs for 2 channel segmented cameras In this case Window Generator must know how many inactive pixels are present at the beginning of each line after the LVAL in order to correctly extract a region of interest This is why this particular geometry requires two additional parameters to identify the number of active and inactive pixels per channel P HORZ INACTIVE Number of inactive pixel per channel after LVAL only used in 2 channel segmented P HORZ ACTIVE Number of active pixel per channel only used in 2 channel segmented YCrCb Engine The YCrCb Engine converts an 8 bit monochrome image into a 16 bit padded YCrCb image to display in overlay Windows secondary surface The value 0x80 is placed in chrominance by the YCrCb Engine and is added during PCI transfer Furthermore the YCrCb Engine eliminates CPU involvement when copying host buffers into display by transferring directly into overlay bypassing the CPU Note The YCrCb Engine is only available for monochrome cameras If your camera has a pixel depth above 8 bits pixel data will be first truncated to 8 bits m Sapera Sapera Support for YCrCb Engine CORACO PRM
41. BE DELAY min 0 us max 65535000 us step 1 us CORACQ PRM STROBE DELAY 2 min 0 us max 65535000 us step 1 us CORACQ PRM STROBE DURATION min us max 65535000 us step 1 us CORACQ PRM STROBE ENABLE TRUE FALSE CORACQ PRM STROBE LEVEL CORACQ VAL LEVEL TTL 0 1 CORACQ PRM STROBE METHOD CORACO VAL STROBE METHOD 1 0 1 CORACQ PRM STROBE POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM TIME INTEGRATE DELAY min 0 us max 65535000 us step lys CORACQ PRM TIME INTEGRATE DURATION min 1 us max 65535000 us step lys CORACQ PRM TIME INTEGRATE ENABLE TRUE FALSE CORACQ PRM VIC NAME Default Area Scan CORACQ PRM VSYNC REF CORACQ VAL SYNC REF END 0x2 CORACQ PRM VSYNC TIMEOUT Not available PC2 CamLink User s Manual Part II Sapera LT e 89 CORACQ PRM WEN ENABLE Not available ACQUISITION PARAMETERS Values CORACQ PRM EVENT TYPE CORACQ VAL EVENT TYPE EXTERNAL TRIGGER 0x1000000 CORACQ VAL EVENT TYPE VERTICAL SYNC 0x2000000 CORACQ VAL EVENT TYPE END OF NLINES 0x8000000 CORACQ VAL EVENT TYPE NO PIXEL CLK 0x40000000 CORACQ VAL EVENT TYPE FRAME LOST 0x8000 CORACQ VAL EVENT TYPE DATA OVERFLOW 0x4000 CORACQ PRM LABEL CameraLink Base Mono 1 CORACQ PRM SIGNAL STATUS CORACQ VAL SIGNAL PIXEL CLK PRESENT
42. CamLink User s Manual Part I PC2 CamLink Board e 69 J3 J4 J5 J6 Opto coupler Voltage Selector The opto coupler can be feed from 3V to 24V by means of jumper configuration See diagram below for jumper configuration selection OPTO 2 OPTO 1 OR 0 0 unused connect Oto 6V OR connect 6 to 25V Figure 21 Opto coupler Jumper Selection J3 J4 J5 J6 J8 Parallel I O 26 Pin Dual Row Connector Pin Identification as Viewed From Component Side Board Revision A0 2 4 24 26 1 3 23 25 Board Revision A1 25 23 3 1 26 24 4 2 Header Pin Signal name Description Connector Pin 1 GND Digital ground 1 3 GND Digital ground 2 5 GND Digital ground 3 7 GND Digital ground 4 9 Digital Input pin 1 5 11 IN3 Digital Input pin 3 6 13 INS Digital Input pin 5 7 15 IN7 Digital Input pin 7 8 17 OUTO Digital Output pin 0 9 19 OUT2 Digital Output pin 2 10 21 OUT4 Digital Output pin 4 11 70 e Part I PC2 CamLink Board PC2 CamLink U ser s Manual 23 25 10 12 14 16 18 20 22 24 26 OUT6 5V STROBE_0 STROBE 1 INT INO IN2 IN4 IN6 5V OUTI OUT3 OUTS OUT7 n c Digital Output pin 6 5V power output Strobe Output Strobe Input Interrupt Input Digital Input pin 0 Digital Inp
43. E HWTRIGI ASSERT LNK TMODE HWTRIG DEASSE RT LNK TMODE SWTRIGO LNK TMODE SWTRIGI CL2 VFRAME TRIG SOURCE Integer range parameter min 0 max 255 step size us CL2 SOFT VFRAME TRIG CL2 OPTO VFRAME TRIG 1 CL2 OPTO VFRAME STAR STOPTRIG2 CL2 LVDS VFRAME TRIG 1 CL2 LVDS VFRAME STAR STOPTRIG2 LNK TRIG DIVIDE FACTOR Range 1 to 256 step size 1 CL2 LINE TRIG DROP COUNT Integer range parameter min 0 max 255 step size l trigger No equivalent on PC CamLink CL2_LINE_TRIG_NUM_PHASES Integer range parameter min 1 max 2 step size 1 No equivalent on PC CamLink CL2_LINE_TRIG_DEBOUNCE Integer range parameter min 0 max 255 step size us PC2 CamLink User s Manual Part III IFC e 107 Advanced Custom Camera Parameters PC CamLink Values PC2 CamLink Values Param Param MAIN GROUP P_BAYER_GAIN_RED Range 0 1 to 10 0 in steps of 0 1 P_BAYER_GAIN_RED Float range parameter min 0 1 max 10 step size 0 1 P_BAYER_GAIN_GREEN Range 0 1 to 10 0 in steps of 0 1 P_BAYER_GAIN_GREEN Float range parameter min 0 1 max 10 step size 0 1 P_BAYER_GAIN_BLUE Range 0 1 to 10 0 in steps of 0 1 P_BAYER_GAIN_BLUE Float range parameter min 0 1 max 10 step size 0 1 LNK_EXO_FILENAME EXO file Not supported LNK_USER_DEF_GEO_NAME EXO file Not supported LNK_SPATIAL_CORR_LINES Range 0 to 2047 li
44. L TRIG CL2 FRAME TRIG SRC CL2 SOFT FRAME TRIG 106 e Part III IFC PC2 CamLink User s Manual LNK TTL TRIG LNK OPTO COUPLED TRIG CL2 OPTO FRAME TRIGI CL2 OPTO FRAME TRIG2 CL2 LVDS FRAME TRIGI CL2 LVDS FRAME TRIG2 CL2 FREQ FRAME TRIG Use CL2 FRAME TRIG FREQ Float range parameter min 0 1 LNK EXT SYNC PERIOD TIME max 10000 step size 0 1 Hz Only available if P FEN ENABLE is LINE TRIGGER m GROUP Implicitly activated by EXSYNC and PRI on PC CamLink CL2 LINE TRIG ENABLE IFC DISABLE IFC ENABLE CL2 LINE TRIG SRC CL2 TIMER LINE TRIG CL2 SHAFT LINE TRIG Use LNK EXT SYNC PERIOD TIME CL2 LINE TRIG CYCLE TIME Integer range parameter min 1 max 65535 step size l us Use TMODE DISABLE P VFRAME TRIGGER ENABLE IFC DISABLE IFC ENABLE P TRIGGER POLARITY IFC FALLING EDGE IFC RISING EDGE P VFRAME TRIGGER POLARITY IFC FALLING EDGE IFC RISING EDGE IFC POL ACTIVE LOW IFC POL ACTIVE HIGH LNK TRIG GLITCH DETECTOR P TRIGGER SRC 4 LNK TRIG START EVENT LNK_TRIG_STOP_EVENT IFC_DISABLE IFC_ENABLE P_VFRAME_TRIGGER_DEBOUNCE LNK_DIFFERENTIAL_TRIG LNK_TTL_TRIG LNK_OPTO_COUPLED_TRIG LNK_TMODE_DISABLE LNK TMODE HWTRIGO ASSERT LNK TMODE HWTRIGO DEASSE RT LNK TMODE HWTRIG1 ASSERT LNK TMODE HWTRIG1 DEASSE RT LNK TMODE SWTRIGO LNK TMODE SWTRIGI LNK TMODE DISABLE LNK TMODE HWTRIGO ASSERT LNK TMODE HWTRIGO DEASSE RT LNK TMOD
45. Name PC2CL serial mmm County tegion Canad 11 Icon Area code 514 Phone number Connect using z Cancel e HyperTerminal opens a dialog box where the COM Port properties are configured see screenshot below Adjust settings as required by the connected camera Note that the PC2 CamLink serial port does not support hardware flow control 18 e Part I PC2 CamLink Board PC2 CamLink User s Manual COM1 Properties 2 Port Settings Bits per second s yi Data bits 8 vi Parity None vi Stop bits cont Restore Defaults Starting Camera Configurator The IFC Camera Configurator program is the camera interfacing tool for frame grabber boards supported by the IFC library such as the PC2 CamLink Camera Configurator generates the required camera configuration file yourconfig txt based on the timing and control parameters entered Run the program from the Windows Start menu StartePrograms IFC version 5 8 IFC Camera Configurator General Examples PC2 CamLink Examples Programs N 23 Accessories 23 Tools a Veganet Examples Documents IFC Camera Configurator vir ve 23 Ful6hot6 0 gt IFC Configurator Help ings a Bi IFC Release Notes 5 a Search I IFC Service Pack Update URL IFC Software Manual Help 2 PC2 CamLink User s Manual Bun Coreco Imaging m Share My V
46. OUTPUT FORMAT CORACQ VAL OUTPUT FORMAT YUY2 In CamExpert this parameters is located under the Image Buffer and AOI Parameters tab Select Image Buffer Format 48 e Part I PC2 CamLink Board PC2 CamLink User s Manual IFC Support for YCrCb Engine F C Create an image connection using IfxCreateImgConn with the flag IFC YCRCB SINK or use IfxCreatelmgSink with the YCRCB SINK flag PCI Controller PCI controller has scatter gather support to reduce CPU usage to a minimum It retrieves a buffer descriptor list from host memory The PCI controller can sustain an average transfer rate up to 100MB second with bursts of 132MB second Note that the PC2 CamLink provides a 4KB data FIFO between the acquisition circuitry and the PCI controller It does not have any onboard frame buffers Note Achievable sustained transfer rates depend on how many PCI devices are trying to utilize bus master on the PCI bus concurrently For optimal performance while grabbing ensure that the PC2 CamLink is the only device utilizing the bus master on the PCI bus Otherwise if sufficient PCI bandwidth is unavailable a discarded frame can result PCI Bandwidth Discussion Bandwidth is usually expressed in MB per seconds MBps The classic 32 bit PCI bus has a 32 bit wide data bus with a clock rate of 33 3MHz The maximum theoretical transfer speed is 4bytes 32 bit 33 3MHz 133MB per second However
47. PC2 CamLink User s Manual Part II Sapera LT e 83 CORACQ PRM PIXEL CLK SRC CORACQ VAL PIXEL CLK SRC EXT 0x2 CORACQ PRM PIXEL DEPTH 8 bits 10 bits 12 bits 14 bits 16 bits CORACQ PRM SCAN CORACQ VAL SCAN AREA 0 1 CORACQ VAL SCAN LINE 0x2 CORACQ PRM SIGNAL CORACQ VAL SIGNAL DIFFERENTIAL 0x2 CORACQ PRM SYNC CORACQ PRM TAP 1 DIRECTION CORACQ VAL SYNC SEP SYNC 0x4 CORACQ VAL TAP DIRECTION LR 0 1 CORACQ VAL TAP DIRECTION UD 0x4 CORACQ VAL TAP DIRECTION FROM TOP 0x10 CORACQ PRM TAP 2 DIRECTION CORACQ VAL TAP DIRECTION LR 0 1 CORACQ VAL TAP DIRECTION UD 0x4 CORACQ VAL TAP DIRECTION FROM TOP 0 10 CORACQ PRM TAP OUTPUT CORACQ VAL TAP OUTPUT ALTERNATE 0 1 CORACQ VAL TAP OUTPUT SEGMENTED 0 2 CORACQ VAL TAP OUTPUT PARALLEL 0 4 CORACQ PRM TAPS min 1 tap max 2 taps step 1 tap CORACQ PRM TIME INTEGRATE METHOD CORACQ VAL TIME INTEGRATE METHOD 1 0x1 CORACQ VAL TIME INTEGRATE METHOD 2 0x2 CORACQ VAL TIME INTEGRATE METHOD 3 0x4 CORACQ VAL TIME INTEGRATE METHOD 4 0x8 CORACQ VAL TIME INTEGRATE METHOD 5 0x10 CORACQ VAL TIME INTEGRATE METHOD 6 0x20 CORACQ TIME INTEGRATE PULSE0 DELAY min 0 us max 65535000 us step lys CORACQ PRM TIME INTEGRATE PULSEO DURATION min 1 us max 65535000 us step lys 84 e Part II Sapera LT PC2 CamLink User s Manual
48. PRM BRIGHTNESS RED CORACQ PRM CAM RESET DELAY Not available min 0 us max 65535000 us step 1 us CORACQ PRM_CAM RESET ENABLE TRUE FALSE CORACQ PRM_CAM_TRIGGER DELAY 0 us CORACQ PRM CAM TRIGGER ENABLE max 65535000 us step lys TRUE FALSE CORACQ PRM CAMSEL CAMSEL from 0 to 0 CAMSEL COLOR not available CAMSEL YC not available CAMSEL RGB not available CORACQ PRM CONTRAST Not available CORACQ PRM CONTRAST BLUE CORACQ PRM CONTRAST GREEN Not available Not available CORACQ PRM CONTRAST RED Not available CORACQ PRM CROP HEIGHT min 1 line max 16384 lines for 2 channels 8192 for 1 channel step 1 line CORACQ PRM CROP LEFT min 0 pixel max 16384 pixels for 2 taps 8192 for 1 tap step 1 pixe CORACQ PRM CROP TOP min 0 line max 16384 lines for 2 channels 8192 for 1 channel step 1 line CORACQ PRM CROP WIDTH min 16 pixels max 16384 pixels for 2 taps 8192 for 1 tap step 4 pixels CORACQ PRM DC REST MODE CORACQ VAL DC REST MODE AUTO 0x1 CORACQ PRM DC REST START Not available CORACQ PRM DC REST WIDTH Not available CORACQ PRM DECIMATE COUNT Default 0 CORACQ PRM DECIMATE METHOD CORACQ VAL DECIMATE DISABLE 0x1 86 e Part II Sapera LT PC2 CamLink User s Manual CORACQ PRM EXT FRAME TRIGGER DETECTION CORACQ VAL ACTIVE LOW 0
49. RACQ PRM FIX FILTER ENABLE Not available CORACQ PRM FIX FILTER SELECTOR Not available CORACQ PRM FLIP Not available CORACQ PRM FRAME INTEGRATE COUNT Not available CORACQ PRM FRAME INTEGRATE ENABLE Not available CORACQ PRM FRAME LENGTH CORACQ VAL FRAME LENGTH FIX 0x1 CORACQ VAL FRAME LENGTH VARIABLE 0x2 CORACQ PRM HSYNC REF CORACQ VAL SYNC REF END 0x2 CORACQ PRM HUE Not available PC2 CamLink User s Manual Part II Sapera LT e 87 CORACQ PRM INT FRAME TRIGGER ENABLE TRUE FALSE CORACQ PRM INT FRAME TRIGGER FREQ min 16 milli Hz max 1000000000 milli Hz step 1 milli Hz CORACQ PRM INT LINE TRIGGER ENABLE TRUE FALSE CORACQ PRM INT LINE TRIGGER FREQ Default 10000 Hz CORACQ PRM INT LINE TRIGGER FREQ MAX 1000000 Hz CORACQ PRM INT LINE TRIGGER FREQ MIN 16 Hz CORACQ PRM LINE INTEGRATE DURATION min 20 pixels max 4095000 pixels step 1 pixel CORACQ PRM LINE INTEGRATE ENABLE TRUE FALSE CORACQ PRM LINE TRIGGER ENABLE TRUE FALSE CORACQ PRM LINESCAN DIRECTION OUTPUT CORACQ VAL LINESCAN DIRECTION FORWARD 0 1 CORACQ PRM LUT ENABLE TRUE FALSE CORACQ PRM LUT FORMAT Default CORACQ VAL OUTPUT FORMAT MONOS CORACQ PRM LUT MAX CORACQ PRM LUT NENTRIES 1 256 entries CORACQ PRM LUT NUMBER Default 0 CORACQ PRM MASTER MODE Not available
50. T Data Port Sequencer Window Generator I YCrCb Engine y PCI Controller ad To PCI bus 22 e Part I PC2 CamLink Board Supports EXSYNC and PRIN camera control signals 2 Opto or 2 LVDS frame trigger inputs Shaft Encoder LVDS inputs Serial Port 1 Base CameraLink areascan or line scan 1 or 2 channel s 8 to 16 bit per pixel 1 LUT for each CameraLink port 1 or 2 channel s Optional truncation to 8 bit Creates region of interest ROI Optionally converts to 16 bit padded YCrCb for display Scatter gather engine that grabs into host logical memory minimizing CPU usage 32 bit 33 MHz high speed PCI interface 5V and 3 3V Figure 1 Flow Diagram PC2 CamLink User s Manual Camera Control and Synchronization FVAL LVAL and DVAL LVAL is the line valid input The rising edge of LVAL enables and clocks the horizontal offset and clocks the horizontal active counters in the valid video window generator This indicates a valid line is output by the camera FVAL is the frame valid input The rising edge of FVAL enables and clocks the vertical offset and vertical active counters in the valid video window generator This indicates a valid frame is output by the camera DVAL is the data valid input similar to a sample clock or pixel clock The rising edge of DVAL writes data into the Camera Link receivers Note CameraLink specifies a minimum clock of 20MHz If a cam
51. T Default 0 CORACQ PRM CONNECTOR PIXEL CLK OUTPUT Default 0 CORACQ PRM CONNECTOR RESET TRIGGER INPUT Default 0 CORACQ PRM CONNECTOR VD INPUT Default 0 CORACQ PRM CONNECTOR WEN OUTPUT Default 0 CORACQ PRM COUPLING Not available CORACQ PRM DATA VALID ENABLE TRUE FALSE CORACQ PRM DATA VALID POLARITY CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM DETECT HACTIVE Not available CORACQ PRM DETECT PIXEL CLK Not available CORACQ PRM DETECT VACTIVE Not available CORACQ PRM FIELD ORDER CORACQ VAL FIELD ORDER NEXT FIELD Ox4 CORACQ PRM FRAME CORACQ VAL FRAME PROGRESSIVE 0x2 CORACQ PRM FRAME INTEGRATE METHOD CORACQ PRM FRAME INTEGRATE POLARITY Not available Not available CORACQ PRM HACTIVE min 16 pixels max 8192 pixels step 4 pixels CORACQ PRM HBACK INVALID 0 pixel 16777215 pixels step 1 pixel CORACQ PRM HBACK PORCH Not available CORACQ PRM HFRONT INVALID min 0 pixel max 16777215 pixels step 1 pixel CORACQ PRM HFRONT PORCH Not available CORACQ PRM HSYNC min 8 pixels max 4294967295 pixels step 1 pixel CORACQ PRM HSYNC POLARITY CORACQ VAL ACTIVE LOW 0x1 CORACQ PRM INTERFACE CORACQ VAL INTERFACE DIGITAL 0x2 82 e Part II Sapera LT PC2 CamLink User s Manual CORACQ PRM LINE INTEGRATE METHOD CORACQ VAL LINE INTEGRATE METHOD 1 0 1
52. a To confirm that the current Sapera version will work with the new board driver e Check the new board driver ReadMe file before installing for information on the minimum Sapera version required If the ReadMe file does not specify the Sapera version contact DALSA Technical Support see Technical Support on page 120 PC2 CamLink User s Manual Part I PC2 CamLink Board e 9 To upgrade the board driver only Logon the computer as an administrator or with an account that has administrator privileges From the Windows start menu select Start Control Panel Add or Remove Programs Select DALSA PC2 CanLink Device Driver click Remove and then in the InstallShield dialog click on Remove to uninstall the board driver When the driver un install is complete reboot the computer is prompted to do so Logon the computer as an administrator again Install the new board driver Run Setup exe if installing manually from a downloaded driver file Note that you can not install a DALSA board driver without Sapera LT installed on the computer Sapera and Board Driver Upgrades When both Sapera and the acquisition board driver are upgraded follow the procedure described below Logon the computer as an administrator or with an account that has administrator privileges From the Windows start menu select Start Control Panel Add or Remove Programs Select the DALSA PC2 CamLink Device Driver click Remove and then in the Inst
53. a controls They are referred to in the Camera Link standard as CC1 CC2 CC3 and CC4 Each of the four CC lines can be dynamically connected to four possible signal sources e The EXSYNC pulse generator e The PRIN pulse generator e static low voltage level e A static high voltage level This is illustrated in the figure below EXSYNC PRIN 00 Figure 2 MUX Sapera Sapera Parameters for Camera Control Selection CC pins are easily controlled from CamExpert under the Advanced Control Parameters tab Each can take five different values 1 Not Used keep previous state 2 High 3 Low 4 Pulse 0 PRIN 5 Pulse 1 EXSYNC IFC IFC Parameters for Camera Control Selection CL2 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI CL2 CAM CTL2 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC 012 CCTL PRI CL2 CAM CTL3 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI CL2 CAM CTL4 SIGNAL CL2 CCTL FIXED LOW CL2 CCTL FIXED HIGH CL2 CCTL EXSYNC CL2 CCTL PRI 24 e Part I PC2 CamLink Board PC2 CamLink User s Manual Note The EXSYNC and PRIN pulse generators are fired by the selected trigger source For area scan if no trigger source is enabled the pulse generators are triggered as soon as the previous frame has been captured This is similar to a
54. add in boards controllers and processor memory systems Pixel A contraction of picture element The number of pixels describes the number of digital samples taken of the analog video signal The number of pixels per video line by the number of active video lines describes the acquisition image resolution The binary size of each pixel 122 e Glossary of Terms PC2 CamLink User s Manual e g 8 bits 15 bits 24 bits defines the number of gray levels or colors possible for each pixel RGB A representation of color using the three primary colors red green blue as components Video signals in RGB format are typically a non composite video standard A digital true color image can be represented by 8 bits per color 24 bits pixel Often image data is stored or transferred in 32 bits pixel where the upper 8 bits of each pixel are unused Scatter Gather Host system memory allocated for frame buffers is virtually contiguous but physically scattered throughout all available memory Trigger A mechanism that initiates an action when an event occurs such as synchronizing an image acquisition to an external event A trigger generally causes a program routine to be executed such as the resetting of camera exposure and or the firing of a strobe light PC2 CamLink User s Manual Glossary of Terms e 123 124 e Glossary of Terms PC2 CamLink User s Manual Index 500mA power pins 53 A acquisition flow diagram 21 Acquisition In
55. al for more information In CamExpert these parameters are found under the Advanced Control Parameters tab Select one of the camera control methods camera reset camera trigger or time integration IFC IFC Parameters for PRIN CL2 PRI ENABLE IFC_DISABLE IFC_ENABLE CL2_PRI POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH CL2 PRI OFFSET TIME Pulse offset from trigger event CL2 PRI ACTIVE TIME Size of pulse CL2 COMBINE EXSYNC PRI DISABLE ENABLE PC2 CamLink User s Manual Part I PC2 CamLink Board e 27 Area Scan Triggers The External Trigger allows image acquisition to be synchronized to external events When acquiring an image in External Trigger mode the acquisition will not start until the PC2 CamLink receives a trigger signal Acquisition begins with the next valid frame after the trigger A variety of trigger events can fire the EXSYNC and PRIN pulse generators for area scan cameras All trigger sources share the following parameters e Trigger polarity e Trigger signal debounce e Number of frames captured for each trigger Trigger polarity can take four possible values Rising Edge The rising edge of the trigger source fires the total of the specified number of frames captured Falling Edge The falling edge of the trigger source fires the total of the specified number of frames captured Active High Frames are captured as long as the trigger sou
56. allShield dialog click on Remove to uninstall the board driver From the Windows start menu select Start Control Panel Add or Remove Programs Select DALSA Sapera LT program click Remove and then in the InstallShield dialog click on Remove to uninstall Sapera Reboot the computer and logon the computer as an administrator again Install the new versions of Sapera and the board driver as if this was a first time installation For installation procedures see Sapera LT Library Installation on page 8 and Installing PC2 CamLink Hardware and Driver on page 8 for installation procedures COM Port Assignment The lower section of the Sapera Configuration program screen contains the serial port configuration menu Configure as follows Open the Sapera Configuration program Start Programs DALSA Sapera LT Sapera Configuration Use the Physical Port drop menu to select the Sapera board device from all available Sapera boards using serial ports when more then one board is in your system Use the Maps to drop menu to assign an available COM number to the Sapera board serial port Click on the Save Settings Now button and then the Close button You are prompted to reboot your computer to enable serial port mapping 10 e Part I PC2 CamLink Board PC2 CamLink User s Manual e The PC2 CamLink serial port mapped to COM3 in this example is available as a serial port to any serial port application for camera control N
57. and protects both circuits A jumper selectable resistor is connected in serial fashion to the opto coupler to limit the current Both opto coupled triggers allow serial resistor selection that is used to limit the current flowing through the diode This is seen in the following tables OPTOI Jumper Voltage Selection Serial Resistor 15 12V 1 33 KQ J6 5 2210 Note Only select jumper J5 or 16 not both simultaneously OPTO2 Jumper Voltage Selection Serial Resistor J3 12V 1 33 KQ J4 5V 221Q Note Only select jumper J3 or J4 not both simultaneously PC2 CamLink User s Manual Part I PC2 CamLink Board e 29 3 3V 1 33k A 1W opto2 Opto2 Trig J4 opto2 221 N 0 1W Opto2_Trig ea Opto Coupler Trigger 3 3V Controller 1 33k N 1W J5 optot e e J6 opto1 e ej 221 A 0 1W Opto1 Trig Opto Trig Figure 6 Opto coupler When current flows inside the LED the emitted light acts as a base current for the transistor Depending on the amount of light that is being emitted the transistor can be turned ON just like a switch The information in the form of a voltage is transmitted from one side to the other as a transistor being turned ON or OFF The opto coupled input is an inverting circuit PC2 CamLink software compensates for this when specifying the polarity The surrounding circuit th
58. at converts the voltage to current and into the LED is therefore crucial to the performance of the opto coupler If the current flowing through the LED is too small the emitted light will not turn the transistor ON HPCL 0531 is the typical opto coupler on the PC2 CamLink It is designed for high speed TTL TTL applications A standard 16mA TTL sink current through the input LED will provide enough output current for one TTL load Maximum rates are given below Electrical Description Value parameters IF avg Average forward input current 25mA IF peak Peak forward input current 50mA Reverse LED input voltage 5V pHL max Maximum propagation delay from high to low 1 0us max Maximum propagation delay from low to high 1 Ous Note TTL signals are approximately 0 and 5V corresponding to logical 0 and 1 respectively A standard TTL output can sink 16mA and could be used as a sink to drive an opto coupled input In 30 e Part I PC2 CamLink Board PC2 CamLink User s Manual other words 5V is connected to Ext Trig and the sink trigger source is connected to Ext Trig This will normally require the application the invert the polarity of the trigger in the camera configuration file Many TTL devices will not supply enough current to reliably drive the Ext_Trig of an opto coupled input a buffer is needed between the TTL output and the Ext_Trig input One possibility is a CMOS buffer with TTL compatible in
59. cing lor max Maximum low level output current 64mA sinking PC2 CamLink User s Manual Part I PC2 CamLink Board 53 Sapera support for Parallel I O Access to Parallel I O is achieved using members of the SapGio class Refer to Sapera Programmer s manual for a complete description of the SapGio functions The resource indexes for the Parallel I O are 0 8 bit output resource 1 8 bit input resource 2 1 bit interrupt resource Example Assert output pin 0 of Parallel I O m_pGioOutput new SapGio SapLocation PC2 CamLink 1 0 m_pGioOutput gt Create m_pGioOutput gt SetPinConfig dwBitScan SapGio PinOutput m_pGioOutput gt SetPinState 0 SapGio PinHigh Note Sapera LT 5 0 does not support the input strobe and output strobe pins CamExpert does not provide direct access to the I O It must be activated programmatically from your Sapera application using the SapGio class IFC Support for Parallel I O F C Access to Parallel I O is achieved using members of the CICapMod Class CICapMod InportInterruptPolarity CICapMod InportMode CICapMod InportVal CICapMod OutportStrobeVal CICapMod OutportVal 54 e Part I PC2 CamLink Board PC2 CamLink User s Manual Acquisition Interrupts The PC2 CamLink provides acquisition interrupts that allow an application to monitor the acquisition status accurately This is one of the many elements that frame th
60. concerning the state of the voltage supply amp overload and Safe Mode J14 LED 2 LED 3 LED 4 LED 5 LED 6 Figure 25 Visual Status of Supplemental LEDs The table below specifies each LED and the result of its activation LED2 LED3 LED4 LED5 LED6 Description 1 5A Overload Host 12V Overload Safe 5V PCI 3 3V PCI PC2 CamLink User s Manual Result Too much current drawn by the camera from the floppy connector Too much current drawn by the camera from the PCI connector Connect power floppy cable Safe mode ON 5 volts PCI bus detected 3 3 volts PCI bus detected Part I PC2 CamLink Board e 73 Computer Requirements for the PC2 CamLink The PC2 CamLink requires at minimum an Intel Pentium or compatible computer system with a free PCI local bus slot Operating System Support Windows XP Windows Vista and Windows 7 PC2 CamLink Physical Dimensions Approximately 6 675 length x 4 2 width 16 95 cm Lx10 67 cm W standard PCI half slot card Power Requirements Typical Maximum SA EN Environment mbient Temperature 0 to 55 operation 40 to 125 storage elative Humidity 5 to 95 non condensing operating 0 to 95 storage 74 e Part I PC2 CamLink Board PC2 CamLink User s Manual Camera Link Interface Camera Link Overview Camera Link is a communication interface
61. d for virtual frames This is represented by CL2_INTR_EOFRM in IFC In Sapera this is represented by CORXFER VAL EVENT TYPE END OF FRAME End of N Lines For linescan cameras the End of N Lines interrupt is generated when the last pixel from the Nth line has been acquired and transferred to onboard FIFO memory This is represented by CL2 INTR END OF NLINES in IFC In Sapera this is represented by CORXFER VAL EVENT TYPE END OF NLINES PC2 CamLink User s Manual Part I PC2 CamLink Board e 57 End of PCI Transfer The End of PCI Transfer interrupt is generated when each frame or virtual frame has been transferred to host memory The following are available on PC2 CamLink Sa pe ra CORXFER VAL EVENT TYPE END OF FRAME CORXFER VAL EVENT TYPE START OF FRAME CORXFER VAL EVENT TYPE END OF LINE CORXFER VAL EVENT TYPE END OF NLINES CORXFER VAL EVENT TYPE END OF TRANSFER In Sapera CORXFER PRM EVENT TYPE provides the various transfer events Under IFC the end of transfer is represented by CL2 INTR BMDONE F Note In IFC most applications use the CICamera class GrabWaitFrameEx member function in order to wait for the end of transfer to host memory Timing Diagrams The following diagram illustrates the exact location in time for each of the interrupts previously described TRIG 1 FVAL MEM LVAL 1 2 3 14 5 1 2 13 4 5 1
62. data channel Bpp Example Camera Model Dalsa P2 21 6144 Resolution 6144 pixels Pixel Clock 40MHz Nb Channel 2 8 bit pixel 1 byte pixel Peak Line Bandwidth 40MHz 2 channels 1 Bpp 80MBps We see that the peak line bandwidth reaches 80MB per second With this bandwidth the system has to maintain a transfer rate of 80MB per second to avoid loosing any information PC2 CamLink can sustain this rate with a good PCI chipset Note When installing multiple PC2 CamLinks on the same PCI bus the total 133MB per second bandwidth gets split between the boards resulting in a lower effective bandwidth per card 50 e Part I PC2 CamLink Board PC2 CamLink User s Manual Bandwidth Optimization Pixel Depth Truncation One of easiest techniques is to transfer only the eight most significant bits when the camera s pixel depth is higher than 8 bits If this compromise is acceptable this will result in half the bandwidth required for the full pixel depth PC2 CamLink has the ability to truncate the digital information to 8 bits pixel Use the following method to enable this feature Under Sapera set image buffer format to 8 bit WW CORACO PRM PIXEL DEPTH z 10 12 14 or 16 bits pixel CORACO PRM OUTPUT FORMAT Sapera CORACQ VAL OUTPUT FORMAT MONO8 In CamExpert the pixel depth is available under the Basic Timing Parameters tab Select Pixel Depth The output format is available under the Image Buff
63. dos 60 Trigger to Image Reliability 6 60 TECHNICAL REFERENCE 64 Block 120 64 Hardware Specifications 65 PC2 CamLink Connector and Jumper Locations eee 67 Computer Requirements 74 CAMERA LINK INVERBAUD S enit ec OFO RU rm 75 75 Data Port Summary 76 Camera Signal Summary 200 2200 000000000 76 Camera Link M 7016 77 PART II SAPERA 79 SAPERA SERVER AND 81 SAPERA SOFTWARE EXAMPLE 91 Grab Demo OVEFVIGW 91 92 Using Sapera CamExpert with PC2 CambLink 95 PART III TRG FYNED A AH HYF NF FRENCH 99 SOFTWARE EXAMPLES a sce ust e fek a e na ank o 101 IFC Examples for 101 PC CAMLINK IFC PARAMETERS COMPARISON eee 103 OA ATA 103 PART IV TROUBLESHOOTING AND SUPPORT 111 TROUBLESHOOTING E USE 113 QU a A FN pwan 113 Jm 113 70 GU EEF 115 DALSA CONTACT NEO ACTION pan ab apt ak
64. e trigger to image reliability model supported by PC2 CamLink and its Acquisition and Control Unit ACU These interrupts are grouped into four families representing each acquisition stage e Trigger Interrupt e Start of Capture End of Capture End of PCI Transfer The following block diagram illustrates the acquisition process and indicates at which stage each interrupt occurs Trigger Start of Capture End of Capture FIFO Camera PCI Controller End of PCI transfer Host Memory Figure 15 Acquisition Interrupts Under IFC an interrupt event object is created using the fxCreateInterrupt global F e scope function This returns a pointer to a CInterrupt object that is used to manage interrupts Refer to the JFC SDK Software manual for more information using CInterrupt objects PC2 CamLink User s Manual Part I PC2 CamLink Board 55 Interrupt Related Definitions Interrupt An interrupt is an electrical signal sent by the PC2 CamLink board to the computer CPU to indicate an event on the frame grabber The PC2 CamLink driver has excellent reaction time to interrupts since interrupts are processed inside an interrupt service routine ISR at kernel level Event An event is a WIN32 object that can take two states signaled and non signaled It is used for thread synchronization In this context an even
65. e capture board Uart ports assume names of the form XXXYZ XXX is the 3 char board type identifier e g PCD PCDig LNK PC CamLink PCL PC LineScan Y is the sequence number of the board for the specific type 0 for the first board of XXX type Z is the instance of UART port offered by the board 0 for the first port 1 for the 2nd and so on Example PCD10 is the default name of the first port on the 2nd PCDig board in the system This dialog allows changing the UART port to name To assign a standard COMx name to PC2 CamLink PC2 CamLink User s Manual Part I PC2 CamLink Board e 17 e Under Select Board choose the PC2 CamLink board CL2 prefix you want to map CL20 is the first PC2 CamLink board CL21 is the second e Under Select COM Port Number assign an unused COM Port number to that PC2 CamLink board and click Set e Click Close e Reboot PC for the new settings to take effect Setup Example Using HyperTerminal e Run HyperTerminal and type a name for the new connection when prompted click OK e Select the COM Port you want to connect with within the following dialog screen In this example the PC2 CamLink serial port was previously mapped to COM3 by the IFC Serial Port Configuration program Connection Description i lt Connect To a New Connection g PC2CLserial Enter a name and choose an icon for the connection Enter details for the phone number that you want to dial
66. e the web application a second parameter defines the number of triggers to skip between valid acguisition triggers The figure below depicts a system where a valid camera trigger is any pulse edge from either shaft encoder signal After a trigger the two following triggers are ignored as defined by a trigger drop count parameter K D K D D K D D Shaft Encoder phase A Shaft Encoder phase B Line acquired Note in this example number of triggers to drop 2 Figure 7 Shaft Encoder Two LVDS pins on the DB 15 connector provide access to phase A and B of the shaft encoder These LVDS pins are debounced to remove any glitch LVDS shaft encoder inputs are typically implemented using National Semiconductor DS90LV028A LVDS line receiver or a compatible device Pinout Positive line Negative line Shaft Encoder Phase A DB 15 pin 6 DB 15 pin 13 Shaft Encoder Phase B DB 15 pin 7 DB 15 pin 14 A TTL shaft encoder signal can be directly connected to the PC2 CamLink LVDS RS422 7 input but the low side input of the pair must be biased with a DC voltage to ensure reliable operation Suggestions on how to generate the DC bias voltage are given below The actual physical wiring is left as an additional detail when interfacing a shaft encoder to the PC2 CamLink and then to the imaging system itself PC2 Ca
67. ee running mode 25 FVAL 23 56 58 76 G galvanic isolation 29 Grab Demo program 13 granularity 25 Index e 125 H HyperTerminal 18 41 I IFC Camera Configurator 19 IFC com port tool 17 IFC comparison 103 IFC library 19 45 46 IFC SDK 15 IFC SDK Software Manual 103 IFC SDK Software Manual 15 ILUT 43 Imaging Studio 15 16 20 101 Installation 15 Imaging Studio 15 Interrupt Example 101 interrupt timing 58 interrupts 56 jumper types 7 L launch exe 8 linescan 5 25 32 35 43 44 57 94 118 linescan grab triggers 32 Log Viewer 113 114 116 Lookup Table LUT 43 118 LVAL 23 56 76 LVDS 33 LVDS signal 31 LVT244 driver 53 M MDR connector 59 memory errors 14 Microsoft Visual C 6 0 101 motherboard BIOS 51 O onboard firmware 20 optol 7 25 29 37 52 opto2 7 25 29 37 opto coupler 7 29 30 35 126 e Index opto coupler jumper 7 opto coupler voltage 70 out of memory error 13 paged pool 95 Parallel I O 53 PC2 CamLink components 5 PC2 CamLink Device Driver 15 20 117 PCI bandwidth 49 59 60 118 PCI Diagnostics 113 114 116 PCI Dump 114 PCI expansion slot 7 PCI latency timer 51 PDF 2 Pixel Clock 59 Pixel Clock error 61 plug and play 115 116 117 PRIN 24 25 28 32 118 PRIN signal 26 programmable delay 25 programmable duration 25 programmable polarity 25 pulse generators 25 R RGB
68. er and AOI Parameters Select Image Buffer Format Under IFC F C 1 Statically in the Configfile set the Cam Pixel Size parameter to the nominal pixel size ofthe camera 10 12 14 or 16 bits pixel and then set Pixel Size to 8 2 Dynamically in an application call CICamera gt SetAcqParam P CAM PIXEL SIZE camPixelSize where camPixelSize is the nominal pixel size of the camera and call CICamera gt SetAcqParam P_ PIXEL SIZE 8 Bus Master Devices on PCI Bus Bandwidth improvements can be obtained by simply removing PCI devices that consume a lot of PCI bus cycles because the device is often accessed or because the device driver is using a polling mechanism for communication Moving the VGA card to the AGP bus is a major helping factor for PCI bus traffic alleviation Reducing the PCI Latency Timer The PCI latency timer parameter is part of the PCI configuration space of any PCI device It specifies the number of clock cycles a device can continue on the PCI bus once it has been requested by another device Most motherboards offer a configurable parameter in the BIOS called the PCI Latency Timer the value is in the number of clocks 0 to 255 A lower value will assure a higher bandwidth to the PC2 CamLink installed within the system since the PC2 CamLink driver increases the PCI latency timer PC2 CamLink User s Manual Part I PC2 CamLink Board e 51 Visual Status LEDs
69. er timer trigger source Linescan Triggers External triggers allows line acquisition to be synchronized to external events When acquiring a line in External Trigger mode the acquisition will not start until the PC2 CamLink receives a trigger signal Acquisition begins with the next valid line after the trigger Two trigger events the shaft encoder or a user timer can fire the EXSYNC and PRIN pulse generators for linescan cameras Linescan acquisition relies on the concept of virtual frames to simplify transfer to the host Basically a virtual frame is defined as a number of consecutive lines that are grouped together into a single host buffer 32 e Part I PC2 CamLink Board PC2 CamLink User s Manual Shaft Encoder Web inspection systems with variable web speeds typically provide one or two synchronization signals from a web mounted encoder to coordinate trigger signals The trigger signals are used by the acquisition linescan camera The PC2 CamLink supports single or dual shaft encoder signals Dual encoder signals are typically 90 out of phase relative to each other and provide greater web motion resolution When using only one shaft encoder input phase phase A for example the phase B inputs must be terminated by connecting the input to a minimum voltage of 100mV positive relative to the input When enabled the camera is triggered and acguires one scan line for each shaft encoder pulse edge To optimiz
70. era does not reach this bandwidth it can use DVAL to indicate which data are actually valid other data are dummy data and only are used to increase bandwidth above the 20MHz limit Typically DVAL is not used in your camera configuration file if the camera clock is above 20MHz SPR is the spare input defined by the Camera Link specification This input is reserved for future use by the Camera Link standard The Camera Link transmission clock is recovered from the Camera Link interface Sapera Parameters for FVAL LVAL and DVAL WW 7 CORACQ PRM DATA VALID ENABLE TRUE FALSE Sa pe ra CORACQ PRM SCAN CORACQ VAL SCAN AREA CORACQ VAL SCAN LINE Note In Sapera polarity of FVAL LVAL and DVAL follows the CameraLink standard always active high In CamExpert these parameters are located under the Basic Timing Parameters tab IFC Parameters for FVAL LVAL and DVAL F C P LEN POLARITY RISING EDGE P FEN ENABLE DISABLE ENABLE P FEN POLARITY RISING EDGE CL2 DVAL ENABLE DISABLE ENABLE CL2 DVAL INPUT MODE CL2 DVAL INPUT VALID DATA Note In IFC the P FEN ENABLE parameter indicates if the camera is area scan P FEN ENABLE IFC ENABLE or linescan P FEN ENABLE IFC DISABLE PC2 CamLink User s Manual Part I PC2 CamLink Board e 23 CC1 CC4 Four camera controls are reserved to act as general purpose camer
71. eras since the onboard FIFO is not large enough to store a whole image Even for area scan cameras you must ensure that the line bandwidth being output by the camera fits within the PCI bus range PC2 CamLink User s Manual Part I PC2 CamLink Board e 49 Case 1 Line size below 4KB If the camera line dimension is smaller than 4096Bytes the average line bandwidth must be used to evaluate if the camera s bandwidth is acceptable for a FIFO based frame grabber such as the PC2 CamLink Line size nb pixel lines Bpp where Bpp is the number of bytes required to store each pixel 8 bit pixels require 1 byte pixel while the pixel depth of 10 12 14 or 16 bit pixel requires 2 bytes pixel Subsequently the average line bandwidth can be obtained by the following formula Average line bandwidth nb pixel lines Line rate Hz Bpp Example Camera Model JAI CV M4 Resolution 1380x1030 Line Frequency 25 43KHz Bpp 10 bits pixel 2bytes pixel Average Line Bandwidth 1380 pixels 25430Hz 2 Bytes pixel 70MBps We can see that the line averaged bandwidth reaches 70MB per second This is acceptable if the PC2 CamLink gets installed in a system with a chipset of good quality Case 2 Line size higher than 4KB When the camera line size exceeds 4KB the peak bandwidth concept has to be used to compute the camera bandwidth and once again see if it respects the PCI bus bandwidth capabilities Peak line bandwidth PCIk nb
72. es trigger reset and integrate controls when supported by the current hardware and driver Also offers master HS and VS output e Linescan Camera Control This dialog is not applicable to the PC2 CamLink e Composite Conditioning Offers Brightness and Contrast controls e Load CAM VIC Opens the dialog window Acquisition Parameters allowing the user to load a new set of camera files This is the same window displayed when the Sapera Acquisition Demo is first started Acquisition Control e Grab Displays live digitized video from your video source If your source is a camera focus and adjust the lens aperture for the best exposure Use a video generator as a video source to acquire reference images e Freeze Stops live grab mode The grabbed image can be saved to disk via the FileeControleSave control e Snap A single video frame is grabbed e Abort Exits the current grab process immediately If any video signal problem prevents the freeze function from ending the grab click Abort General Options Note functions grayed out are not supported by acquisition hardware Buffer Select from supported frame buffer counts size and types 94 e Part II Sapera LT PC2 CamLink User s Manual Count and Size r Type Count E Contiguous Scatter Gather Offscreen Video Height 480 Overlay C Virtual Width 640 Format Pixel Depth significant bits
73. floppy power connector are not lit If one of the two is red this indicates that too much power is being drawn by the camera If you PC2 CamLink User s Manual Part IV Troubleshooting and Support e 117 have not connected a floppy power cable from the PC power supply to the PC2 CamLink floppy power connector do so if LED3 12V overload is lit Start the camera configuration tool CamExpert for Sapera LT or Camera Configurator for IFC and select a suitable camera configuration file Start the grab The acquisition LED should blink rapidly at about 15Hz when the ACU is capturing valid data Any error indication is reported by having the trigger LED turn red This is the case if the bandwidth required by your camera is too high for the 32 bit PCI bus Check the reported frame rate Camera Configuration File and Camera Settings Your camera configuration file may require an external trigger or shaft encoder pulses in linescan to fire the acquisition process Ensure that you provide one if necessary or disable the external trigger from the camera configuration file You might also try to generate a software trigger instead For linescan cameras use the user timer to generate a line trigger rate The trigger LED on the PCI bracket displays green each time a valid external trigger is detected If your camera is triggered frame on demand mode ensure that you send an appropriate camera control pulse on the appropriate Camera Link CC output
74. following board s PC2 CamLink Do you want to start the automatic update A progress window is then displayed showing the upgrade process Each board present within the system will be listed The board upgrade is performed in two steps e The board is first analyzed to verify if its firmware is up to date e If not firmware is updated The two progress bars shown below allow you to follow the process 20 e Part I PC2 CamLink Board PC2 CamLink User s Manual af Coreco Board Update Log Update PC2 CamL ink PC2 CamLink_1 Analyze 5 of 5 SN H11076005 Analyze Done Update 3 of 5 In Progress The board icon next to the board s serial number SN allows you to monitor the state of the board The icon is displayed in four different states white icon with a blue interrogation mark indicates an unknown board state because of incomplete board analysis gray icon indicates the board needs to be updated with the latest firmware green icon is displayed when the board is up to date e red icon represents an error during the analysis or update phase Theory of Operation PC2 CamLink Flow Diagram The following diagram represents the seguence and components in which the data acguired from the camera is piloted and processed through the PC2 CamLink PC2 CamLink User s Manual Part I PC2 CamLink Board e 21 Camera Control Camera ILU
75. from 8 bit up to 16 bit The IFC Software Library calls this One Channel Left to Right or CL2 1CHAN L2R Single channel Odd Even Pixels One channel A carries only the even pixels the other B carries only odd Data is presented simultaneously on both channels The pixels are interleaved in the original image The figure below odd even pixels shows where the data appears in a line from the original image PC2 CamLink can support this format for pixel depths from 8 bits up to 12 bits The IFC Software Library calls this Two Channel Interleaved or CL2 2CHAN INTERLEAVED A B A B aA B gt Odd even pixels Dual Channel with Line Segments One channel A carries the left half of the line or frame the other B carries the right half of the line or frame Data is presented simultaneously on both channels The figure below two line segments shows where the data appears in a line from the original image PC2 CamLink can support this format for pixel depths from 8 bits up to 12 bits The IFC Software Library calls this Two Channel Separate Tap Left to Right or CL2 2CHAN SEP TAP L2R Two line Segments PC2 CamLink User s Manual Part I PC2 CamLink Board e 45 Dual Channel Interline One channel carries the even lines the other the odd lines The lines are interlaced in the original image Data is presented simul
76. ges from lus to 65535 5 in steps of lus Virtual Frames Triggers Virtual frame is a method grouping a number of consecutive lines from a linescan camera into a frame buffer This allows the application to manage host buffers using the same function calls independently of the camera type area or linescan Similar to area scan triggers virtual frame triggers can use the opto coupler trigger inputs the LVDS trigger inputs ora SW trigger PC2 CamLink supports variable frame length where a stop event indicates the end of the virtual frame before the virtual frame buffer is filled Note that if the stop event arrives after the virtual frame is filled this late stop event will be discarded and the next virtual frame acquired during the next start event In variable frame length the application specifies the largest virtual frame This means that only the first lines of the virtual frame buffer up to the stop event will be valid Other lines will contain the garbage that was already there before the start of acquisition See the following table for the virtual frame trigger sources PC2 CamLink User s Manual Part I PC2 CamLink Board e 35 Virtual Frame Polarity Variable Description Trigger Source Frame Length Support Software not applicable No A whole virtual frame acquired on SW trigger call Optol rising or falling No A whole virtual frame acquired on edge Optol edge detection Optol active high or Yes Acquisition from t
77. he first edge up to active low the second edge of Optol Acquisition waits for next trigger if virtual frame is filled Start pulse on Optol rising or falling Yes Acquisition from the edge of Optol up stop pulse on Opto2 edge to the edge of Opto2 Acquisition waits for next start trigger if virtual frame is filled LVDSI rising or falling No A whole virtual frame acquired on edge LVDSI edge detection LVDSI active high or Yes Acquisition from the first edge up to active low the second edge of LVDSI Acquisition waits for next trigger if virtual frame is filled Start pulse on rising orfalling Yes Acquisition from the edge of LVDS1 LVDSI stop pulse on LVDS2 edge up to the edge of LVDS2 Acquisition waits for next start trigger if virtual frame is filled The following diagrams better illustrate the various modes of operation for virtual frame trigger LVAL Maximum virtual frame size VFVAL Figure 6 Edge or SW Trigger 36 e Part I PC2 CamLink Board PC2 CamLink User s Manual Active high or active low trigger TRIG LVAL E Virtual frame size less than or equal to maximum VEVAL VFRAME size Figure 9 Active High or Active Low Trigger TRIG 1 4 TRIG 2 10 LVAL 1 VFRAME size less than or equal to maximum VEVAL VFRAME size Figure 10 Start Stop Trigger Note For virtual frame trigger Optol and LVDSI are always
78. ideo Sources VegaNet Help tap Shut Down The live acquisition window is an important tool within Camera Configurator It performs immediate verification on timing or control parameters without the need to run a separate acquisition program An overview on how to use the Camera Configurator is available via the IFC Configurator help file installed within the IFC folder accessed at Start ProgramseIFC version 5 8 IFC Configurator Help PC2 CamLink User s Manual Part I PC2 CamLink Board e 19 Upgrading Onboard Firmware The Firmware Update program is used to upgrade onboard firmware automatically opening on the first reboot after installation It can be launched manually if upgrading a board not present in the system when the PC2 CamLink driver software was first installed Location of Board Update tool under Sapera WW 7 StarteProgramseDALSAPC2 CamLinkePC2 CamLink Update Tool Sapera IFC Location of Board Update tool under IFC StarteProgramseIFC 5 8 0 0 ToolseCorBoardUpdate for PC2 CamLink Firmware Update displays a list of all products it supports as shown in the following screenshot To update all supported products click Yes and all PC2 CamLinks currently installed within the computer will be updated with the latest firmware available within the installation CDROM Firmware Update Coreco Imaging im Firmware Update Tool Version 1 0 This application will update the
79. ing the CCA extension CORECO Camera files that contain all the parameters describing the camera video signal characteristics and operation modes i e what the camera outputs The Sapera parameter groups located within the file are e Video format and pixel definitions Video resolution pixel rate pixels per line and lines per frame Synchronization source and timings Channels Taps configuration Supported camera modes and related parameters hardware signal assignment CVI File Details PC2 CamLink User s Manual Part II Sapera LT e 97 Legacy files using the CVI extension CORECO VIDEO files contain all operating parameters related to the frame grabber board i e what the frame grabber can actually do with camera controls or incoming video The Sapera parameter groups located within the file Activates and sets any supported camera control mode or control variable Defines the integration mode and duration Defines the strobe output control Allocates the frame grabber transfer ROI the host video buffer size and buffer type RGB888 RGB101010 MONOS 16 e Configuration of line frame trigger parameters such as source internal via the frame grabber external via some outside event electrical format TTL LVDS OPTO coupled and signal active edge or level characterization 98 e Part II Sapera LT PC2 CamLink User s Manual Part IFC PC2 CamLink User s Manual Part III e 99
80. iption 1 Opto Triggerl Input The anode s side of the first opto coupler It can manage up to 25V signals or TTL signals Configurable through a jumper 9 Opto Triggerl Input The cathode side of the first opto coupler It can manage up to 25V signals or TTL signals Configurable through a jumper Must be grounded when in TTL mode 2 Opto Trigger2 Input The anode side of the second opto coupler It can manage up to 25V signals or TTL signals Configurable through a jumper 10 Opto Trigger2 The cathode side of the second opto coupler It can manage up to 25V signals or TTL signals Configurable through a jumper Must be grounded when in TTL mode 4 LVDS Trigger Input Positive line of first LVDS trigger signal 11 LVDS Trigger Input Negative line of first LVDS trigger signal 5 LVDS Trigger2 Input Positive line of second LVDS trigger signal 12 LVDS Trigger2 Input Negative line of second LVDS trigger signal 6 Shaft Encoder ChA Input Positive line of the shaft encoder channel A LVDS signal 13 Shaft Encoder ChA Input Negative line of the shaft encoder channel A LVDS signal 7 Shaft Encoder ChB Input Positive line of the shaft encoder channel B LVDS signal 14 Shaft Encoder ChB Input Negative line of the shaft encoder channel LVDS signal 15 Strobe Output Strobe light output 8 12V 5V Jumper selectable camera power 1 5A maximum The power is provided by a floppy disk power connector 3 GND Ground PC2
81. l matches IFC 5 8 Note that PC2 CamLink is supplied with either Imaging Studio IFC or Sapera LT Follow the installation instructions that correspond to the software supplied with your board It is not possible to install both the Sapera LT and IFC PC2 CamLink driver on the same machine e Make certain that all applications are closed before installation e Insert the Imaging Studio CD ROM e Select on Next after auto start initiates and the Welcome window appears e Read the Information window and select Next if you are not required to make adjustments to your system If adjustments are necessary select Cancel then make adjustments and re install Imaging Studio CD ROM e Select Yes after reading the Software License Agreement e Enter your name and company in the User Information window and select Next e Select Next in the Choose Destination Location window if you want the software to install in the default folder Select Browse to choose another folder if desired If Browse is selected select OK in the Choose Folder window after path directory and driver selections are made The Setup window opens and asks if it can create the destination folder displayed Select Yes e The Choose Destination Location window reappears Select Next e The Setup Type window is displayed DALSA recommends selecting typical installation Select Next PC2 CamLink User s Man
82. llocating messages Requested MBytes Allocated 8 MBytes Serial Ports Physical Port Selected physical port is present 5 0 on PC2 CamLink_1 gt Camera Link API port index is not available Save Settings Now 12 e Part I PC2 CamLink Board PC2 CamLink User s Manual Increasing Contiguous Memory for Sapera Resources The Contiguous Memory section lets the user specify the total amount of contiguous memory a block of physical memory occupying consecutive addresses reserved for the resources needed for Sapera buffer allocation and Sapera messaging For both items the Requested value dialog box shows the default driver memory setting while the Allocated value displays the amount of contiguous memory that has been allocated successfully The default values will generally satisfy the needs of most applications The Sapera buffer values determine the total amount of contiguous memory reserved at boot time for the allocation of dynamic resources used for host frame buffer management such as DMA descriptor tables as well as other kernel needs Adjust this value higher if your application generates any out of memory error while allocating host frame buffers You can approximate the amount of contiguous memory required as follows e Calculate the total amount of host memory used for frame buffers number of frame buffers number of pixels per line number of lines 2 if buffer is
83. mLink User s Manual Part I PC2 CamLink Board 33 TTL Shaft Encoder to LVDS RS422 Input Block Diagram TTL signal source GND Connecting TTL Signals to LDVS Inputs 1 to 2 volts po ON LDVS input LDVS input Frame Grabber System FG system GND e LVDS RS422 input is biased to a DC voltage from 1 to 2 volts e This guarantees that the TTL signal connected to the LVDS RS422 input will be detected as a logic high or low relative to the input e The TTL shaft encoder ground the bias voltage ground and the PC2 CamLink computer system ground must be connected together LVDS RS422 Input Bias Source Generation Battery 41 5V 5V 330 220 2V 680 100 3 Examples on Generating a DC voltage for the LDVS Input 12V 41 5V e DC voltage for the LVDS RS422 input can be generated by a resister voltage divider e Usea single battery cell if more suitable for your system e A DC voltage either 5 or 12 is available on DB 15 connector J2 34 e Part I PC2 CamLink Board PC2 CamLink User s Manual User Timer PC2 CamLink offers a user timer that can be used to fire a line acquisition at a specified frequency Note this user timer is asynchronous to all input pins The line rate generated by the user timer ran
84. mary The Camera Link interface has three configurations A single Camera Link connection is limited to 28 bits requiring some cameras to have multiple connections or channels The naming conventions for the three configurations are e Base Single Channel Link interface single cable connector e Medium Two Channel Link interface two cable connectors e Full Three Channel Link interface two cable connectors Data Port Configuration Table A single Camera Link pott is defined as having an 8 bit data word The Full specification supports eight ports labeled as A to H Configuration Ports Supported PC2 CamLink Connector Used Base A B C JI Medium A B C D E F JI amp J2 Full A B C D E F G H JI amp J2 Camera Signal Summary Video Data Four enable signals are defined as e FVAL Frame Valid FVAL is defined HIGH for valid lines e LVAL Line Valid LVAL is defined HIGH for valid pixels e DVAL Data Valid DVAL is defined HIGH when data is valid e Spare A spare has been defined for future use All four enable signals must be provided by the camera on each Channel Link All unused data bits must be tied to a known value by the camera 76 e Part I PC2 CamLink Board PC2 CamLink User s Manual Camera Controls Four LVDS pairs are reserved for general purpose camera control defined as camera inputs and frame grabber outputs Camera Control 1 CC1 Camera Control 2 CC2 Camera Control 3 CC3 Ca
85. mera Control 4 CC4 Note the PC2 CamLink by default implements the control lines as follows using DALSA Corporation terminology CCl EXSYNC CC2 PRIN CC3 Low voltage CC4 Low voltage Communication Two LVDS pairs have been allocated for asynchronous serial communication to and from the camera and frame grabber Cameras and frame grabbers should support at least 9600 baud e SerTFG Differential pair with serial communications to the frame grabber SerIC Differential pair with serial communications to the camera The serial interface protocol is 1 start bit 1 stop bit no parity and no handshaking Camera Link Cables For additional information on Camera Link cables and their specifications visit the following web sites 3M http www 3m com interconnects enter Camera Link as the search keyword Nortech Systems http www nortechsys com intercon CameraLinkMain htm PC2 CamLink User s Manual Part I PC2 CamLink Board e 77 78 e Part I PC2 CamLink Board PC2 CamLink User s Manual Part II Sapera LT PC2 CamLink User s Manual Part II Sapera LT e 79 80 e Part II Sapera LT PC2 CamLink User s Manual Sapera Server and Parameters The following table lists the Sapera Server available for PC2 CamLink Servers Resources The following four tables describe Sapera parameters and values by PC2 CamLink Refer to Sapera Acquisition Parameters Reference manual for a thorough descripti
86. n Directory examples PC2 CamLink SeqSnap View Cmds LUT Params SetComPort Help ms Fnig gt t a gt e Ad 4 Ba Ei Channe PC CamLink Parameters Comparison Overview The following tables compare IFC parameters between PC CamLink and PC2 CamLink They are intended to help someone familiar with PC CamLink to create config files for PC2 CamLink Parameters on the same line control equivalent functionality on their respective board For a complete description of each parameter refer to the IFC SDK Software Manual Camera Timing Inputs PC CamLink Values PC2 CamLink Values Param Param MAIN GROUP P LEN POLARITY IFC FALLING EDGE P LEN POLARITY IFC RISING EDGE FC RISING EDGE P FEN ENABLE IFC_DISABLE P_FEN_ENABLE IFC_DISABLE IFC_ENABLE IFC_ENABLE P_FEN_POLARITY IFC_FALLING_EDGE P_FEN_POLARITY IFC_RISING_EDGE IFC_RISING_EDGE LNK_DVAL_ENABLE IFC_DISABLE CL2_DVAL_ENABLE IFC_DISABLE IFC_ENABLE IFC_ENABLE LNK_DVAL_POLARITY IFC_ACTIVE_LOW Always active high PC2 CamLink User s Manual Part IFC e 103 IFC ACTIVE HIGH LNK DVAL INPUT MODE LNK DVAL INPUT FIELD LNK DVAL INPUT VALID DATA CL2 DVAL INPUT MODE CL2 DVAL INPUT VALID DATA LNK SPR ENABLE IFC DISABLE IFC ENABLE spec Spare not supported in CamLink LNK SPR POLARITY IFC ACTIVE LOW IFC ACTIVE HIGH spec Spare not supported in CamLink
87. n to open the help file for more descriptive information on CamExpert The central section of CamExpert provides access to the various Sapera parameters of PC2 CamLink It is divided into five tabs Basic Timing Parameters Basic parameters are used to define the timing of the camera This includes the vertical horizontal and pixel clock frequency This tab is sufficient to configure a free running camera Advanced Control Parameters Advanced parameters are used to configure camera control mode and strobe output Also provides analog signal conditioning brightness contrast DC restoration etc External Trigger Parameters Parameters to configure the external trigger characteristics Image Buffer and AOI Parameters Control of the host buffer dimension and format 96 e Part II Sapera LT PC2 CamLink User s Manual Camera Files Distributed with Sapera The Sapera LT CDROM includes camera files that are compatible to PC2 CamLink supported cameras When using CamExpert you may use the camera files CCA provided to generate a camera configuration file CCF that describes the desired camera and frame grabber configuration DALSA continually updates their camera application library that contains application information and prepared camera files Along with the camera search utility on the DALSA web site a number of camera files are ready to download from the DALSA FTP site ftp ftp dalsa com public Sapera CamFile U
88. nal events The digital input and output lines available on the 26 pin header located at the top of the board can be cabled to a 25 pin D Sub connector that occupies an open slot in the PC chassis The functionality of the I O port is as follows IN 7 0 OUT 7 0 STROBE I STROBE O I O INT Eight digital TTL input lines provide the capability to read these as either raw or latched by STROBE 1 inputs Eight digital TTL output lines driven by a programmable register Input strobe signal can be used to latch the 8 bit input data if this mode is selected The polarity of STROBE I is programmable Output strobe signal is an output line under software control Interrupt input line that can be used to generate an interrupt programmable edge Refer to J8 Parallel I O 26 Pin Dual Row Connector on page 70 for the connector pinout information The Parallel I O is backward compatible with PC2 Vision and has the ability to provide power to an external box Two dedicated 5V 500mA power pins with fuse protection are available The Parallel I O functions using LVT244 drivers with the following electrical characteristics The model is a 3 3V low voltage TTL device that is 5V tolerant Electrical Description Value parameters Vin min Minimum high level input voltage 2V Vit max Maximum low level input voltage 0 8V Vi max Maximum input voltage 5 5V Tou max Maximum high level output current 32mA sour
89. nes step size 1 line RGB cameras not supported LNK SPATIAL LEAD COLOR IFC RED RGB cameras not supported IFC GREEN IFC BLUE Serial Port Parameters PC CamLink Values PC2 CamLink Values Param Param P COM PORT NAME astring P COM PORT NAME astring P COM PORT BYTESIZE IFC COM 4BITS IFC COM SBITS IFC COM 6BITS IFC COM 7BITS IFC COM 8BITS P COM PORT BYTESIZE IFC COM 7BITS IFC COM 8BITS P COM PORT BAUDRATE IFC BAUD 9600 P COM PORT BAUDRATE IFC BAUD 4800 IFC BAUD 9600 IFC BAUD 14400 IFC BAUD 19200 IFC BAUD 38400 IFC BAUD 56000 IFC BAUD 57600 IFC BAUD 115200 IFC BAUD 12800 P COM PORT PARITY IFC NOPARITY IFC ODDPARITY IFC EVENPARITY IFC MARKPARITY IFC SPACEPARITY P COM PORT PARITY IFC NOPARITY IFC ODDPARITY IFC EVENPARITY P COM PORT STOPBITS IFC_ONESTOPBIT IFC 1 5 STOPBITS IFC TWOSTOPBITS PORT STOPBITS IFC ONESTOPBIT 108 e Part HI IFC PC2 CamLink User s Manual Strobe Parameters PC CamLink Values PC2 CamLink Values Param Param No strobe on PC CamLink P_STROBE_ENABLE IFC_DISABLE IFC_ENABLE No strobe on PC CamLink P_STROBE_MODE IFC_FAST_STROBE IFC_SLOW_STROBE No strobe on PC CamLink P_STROBE_POLARITY IFC_ACTIVE_HIGH IFC_ACTIVE_LOW No strobe on PC CamLink P_STROBE_DELAY Integer range parameter min Ous max 65535000us step size lus No strobe on PC CamLink P_STROBE_DURATION
90. ng the acguisition and transfer process An error event is generated and the frame is invalidated The next frame of data will be acguired properly PC2 CamLink User s Manual Part I PC2 CamLink Board e 63 Technical Reference Block Diagram h Out 4 CamLink 26 LVDS Base Control 7 Connector n UART YON Acquisition Visual Status AN LED LED YON Trigger lt LED Trigger Opto 2 Opto Coupler Tri LVDS 1 Hn LVDSReceiver LVDS Trigger LVDS 2 Shaft Encoder 1 DB 15 Shaft Encoder 2 Connector Camera Power AN 2 GND gt Figure 17 Block Diagram 64 e Part I PC2 CamLink Board Trigger Controller NotConnected C factorydefault Strobeln yo Strobe Out robe Ou Controller Interrupt Image Data Acguisition Control Unit PCI Controller Control HostComputerPCIBus 32 bit 33MHZ 3 3V 5V PC2 CamLink User s Manual Hardware Specifications The following provides detailed information related to PC2 CamLink hardware specifications PC2 CamLink Specifications Function Description Board PCI half slot rev 2 1 compliant for 5V and 3 3 V slots 32 bit 33 MHz Acquisition 1 Base Camera Area scan and linescan 1 or 2 channels Scanning 1 channel raster 2 channel interleaved pixels 2 channel interlines 2 channel half line segmented left to right Pixel Format 8 10 12 14
91. nt Shop Pro CE Search s 2 Help Run m Coreco Imaging PC2Vision Device Driver 2 Sapera LT M S Demos Grab Demo PC2 CamLink Device Driver gt g Sapera Configuration y Shut Down P T CamExpert y When activated Grab Demo first displays the Acguisition Configuration window The first drop down menu allows you to select any installed Sapera acguisition server that is installed DALSA acguisition hardware using Sapera drivers The second drop down menu allows you to select the available input devices present on the selected server CCF File Selection The Acguisition Configuration window is also used to select the camera configuration file reguired for the connected camera Sapera camera files contain timing parameters and video conditioning parameters The default folder used for camera configuration files is also used by the CamExpert utility to save user generated or modified camera files Use Sapera CamExpert to generate the camera configuration file based on the timing and control parameters entered The CamExpert live Acguisition window allows immediate verification of the parameters CamExpert reads both Sapera cca and cvi files for backwards compatibility with the original Sapera camera files 92 e Part II Sapera LT PC2 CamLink User s Manual Acquisition Configuration r Location OK Acquisition Server Acquisition Device
92. oltage supply is dependent on the configuration of jumper J13 Refer to 713 Power to Camera Voltage Selector on page 71 for jumper settings The floppy power connector J14 must be connected if your camera requires more than 0 5A That is if J14 is not connected the PC2 CamLink will use power from the PCI connector to power the camera PCI specification limits the amount of power a card can take to 0 5A from the PCI connector Note DALSA always recommends to connect the floppy power connector J14 when the PC2 CamLink feeds power to the camera Caution Drawing more than 500mA from the PC2 CamLink PCI connector may result in the auto reset fuse blowing or in erratic behavior of the camera if the camera requires slightly more than 500mA In this situation LED3 Host 12V Overload will light Check your camera datasheet on how much current is required Trigger to Image Reliability Trigger to image reliability incorporates all stages of image acquisition inside an integrated controller to increase reliability and simplify error recovery The trigger to image reliability model fuses together all the elements required to acquire images so that a central unit manages them coherently These elements include among others I O to control timing to the camera and error notification Whenever PC2 CamLink detects a problem the user application is immediately informed and can take appropriate action to return to normal operation PC2 CamLink offers thi
93. ome computer chassis use a clip mechanism instead of a screw This ensures that the board remains stable when you connect disconnect cables e Make certain that the 3 3V LED6 or 5V LEDS LED is lit at the back of the board below the floppy power connector If not this indicates a problem with the PCI interface controller Try a different PCI slot This could also indicate a problem with the power supply provided by the PCI bus to the board e Disconnect all cameras Make certain that the ACQ LED on the PCI bracket is solid red If not this indicates a problem with the ACU Try a different PCI slot e certain that the PC2 CamLink is visible on the PCI bus To do this you can use the PCI diagnostic tools described above Make certain that the PC2 CamLink is displayed within the PCI device list The DALSA PCI vendor ID is Ox11EC The PC2 CamLink PCI device ID is 0x2021 Ensure that a Base address register is assigned to PC2 CamLink lower left section of PCI diagnostics Ensure the Device Enable button is activated in the upper right section of PCI diagnostics If the board is not correctly mapped or activated this may indicate a problem with the BIOS settings You can go to your BIOS settings and check for PCI settings The PCI slot number for PC2 CamLink is reported by PCI diagnostics You can also try moving the board to a different PCI slot Potential Plug and Play or Driver Related Failure Once you have checked all the item
94. ommunication program such as Windows HyperTerminal can connect to the camera in use and modify its function modes via its serial port controls Refer to the Configuring Serial Port section on page 17 for information on how to map the PC2 CamLink serial port as a COM Port 27 This serial port is intended for camera control The default name for this serial port is PC2 CamLink X Serial 0 where X represents the PC2 CamLink board number valid from 1 to 8 Note A typical configuration would use 9600 baud 8 bit no parity 1 stop bit 9600 8 N 1 Sapera parameters for Serial Port Sapera In Sapera the serial port is mapped as a regular COM Port It can be configured through WIN32 API IFC parameters for Serial Port F C P COM PORT NAME String that specifies serial port name P COM PORT BYTESIZE IFC COM 7BITS IFC COM 8BITS P COM PORT BAUDRATE BAUD 4800 BAUD 9600 IFC BAUD 14400 IFC BAUD 19200 IFC BAUD 38400 IFC BAUD 56000 IFC BAUD 57600 IFC BAUD 115200 IFC BAUD 128000 P COM PORT PARITY NOPARITY ODDPARITY IFC EVEN PARITY P COM PORT STOPBITS IFC ONE STOPBIT IFC uses those parameters to communicate with the serial port in the following two cases e when the application calls CICamera WriteUartCommand e when IFC uses the rule evaluation from the config file Note The serial port is configured by the applicati
95. on of each parameter CAMERA PARAMETERS Values CORACQ PRM CAM LINE TRIGGER FREQ MAX 16777215 Hz CORACQ PRM CAM LINE TRIGGER FREQ MIN 1 Hz CORACQ PRM CAM NAME Default Area Scan CORACQ PRM CAM RESET DURATION min 1 us max 65535000 us step lys CORACQ PRM RESET METHOD CORACQ VAL RESET METHOD 1 0x1 CORACQ PRM CAM RESET POLARITY VAL ACTIVE LOW 0x1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM CAM TIME INTEGRATE DURATION MAX 65535000 us CORACQ PRM CAM TIME INTEGRATE DURATION MIN 1 us CORACQ PRM CAM TRIGGER DURATION min 1 us max 65535000 us step lys CORACQ PRM CAM TRIGGER METHOD CORACQ VAL CAM TRIGGER METHOD 1 0 1 CORACQ VAL TRIGGER METHOD 2 0 2 CORACQ PRM CAM TRIGGER POLARITY CORACQ VAL ACTIVE LOW 0 1 CORACQ VAL ACTIVE HIGH 0x2 CORACQ PRM CAMLINK CONFIGURATION CORACQ VAL CAMLINK CONFIGURATION BASE 0x1 CORACQ PRM CHANNEL CORACQ VAL CHANNEL SINGLE 0 1 CORACQ VAL CHANNEL DUAL 0x2 PC2 CamLink User s Manual Part II Sapera LT e 81 CORACQ PRM CHANNELS ORDER CORACQ VAL CHANNELS ORDER NORMAL 0 1 CORACQ VAL CHANNELS ORDER REVERSE 0 2 CORACQ PRM CONNECTOR EXPOSURE INPUT Default 0 CORACQ PRM CONNECTOR HD INPUT Default 0 CORACQ PRM CONNECTOR LINE INTEGRATE INPUT Default 0 CORACQ PRM CONNECTOR LINE TRIGGER INPUT Default 0 CORACQ PRM CONNECTOR LINESCAN DIRECTION INPU
96. on that opens a connection to it This means that if you are accessing the serial port from HyperTerminal or any similar program the PC2 CamLink serial port uses the settings of HyperTerminal not ones from the Sapera or IFC parameters Note The Camera Link standard specifies an API that can be used to access any serial port a CameraLink frame grabber This API is available through a DLL Under IFC this DLL is called clsercii dll Under Sapera this DLL is called clsercor dll Refer to the Camera Link specification for a description of this API PC2 CamLink User s Manual Part I PC2 CamLink Board e 41 Camera Interface The PC2 CamLink supports the Camera Link M specification base configuration one connector 24 bit data and clock rates up to 66 MHz The Camera Link specification also defines medium and full configurations with two and three connectors as well as a larger data size The PC2 CamLink does not support the medium and full configurations All signal and timing characteristics match the Camera Link specification e The PC2 CamLink accepts up to 24 bit data in differential format e The PC2 CamLink is assembled with Camera Link LVDS devices e The PC2 CamLink supports camera data rates up to 66MHz e The PC2 CamLink accepts single channel 8 10 12 14 16 bits and Dual Channel 8 10 12 bits The Camera Link specification defines the 24 bit input as three bytes Port A Port B and Port C Port A
97. ote that this serial port is not listed in the Windows Control PaneleSystem PropertieseDevice Manager because it is a logical serial port mapping mf Sapera Configuration Server List System 1 PC2 CamLink_1 Refresh Contiguous Memory Used for allocating buffers Used for allocating messages Requested Requested 3 u MBytes MBytes Allocated Allocated 3 MBytes 8 MBytes Serial Ports Physical Port Maps to Serial 0 on PC2 CamLink_1 x coms x Selected physical port is present Camera Link API port index is not available Save Settings Now PC2 CamLink User s Manual Part I PC2 CamLink Board e 11 Configuring Sapera The Sapera Configuration program StartePrograms DALSA Sapera LTeSapera Configuration allows the user to see all available Sapera servers for the installed Sapera compatible boards Viewing Installed Sapera Servers The System entry represents the system server It corresponds to the host machine your computer and is the only server that should be present at all times As shown in the following screen shoot server index 1 is the PC2 CamLink board installed If required update the server list by clicking the Refresh button mf Sapera Configuration r Server List System 1 PC2 CamLink_1 Refresh r Contiguous Memory Used for allocating buffers Requested 3 MBytes Allocated 3 MBytes Used for a
98. ous reset cameras Fast Strobe Ext Trigger Strobe L Strobe Strobe delay Note PC2 CamLink does not support exclusion region Fast Strobe mode strobe Figure 11 Fast Strobe PC2 CamLink User s Manual Part I PC2 CamLink Board 39 delay parameter represents the time from the external trigger to strobe pulse assertion In Slow Strobe mode the strobe pulse occurs after a certain delay following the FVAL and the trigger respectively Strobe duration is programmable See below for diagram Basically the strobe pulse is asserted from the first FVAL following the trigger This mode is often used with free running cameras Slow Strobe Ext Trigger FVAL Strobe 0 Strobe Strobe delay Figure 12 Slow Strobe IFC parameters for Strobe P STROBE ENABLE IFC ENABLE P STROBE MODE FAST STROBE SLOW STROBE P STROBE POLARITY IFC ACTIVE HIGH IFC ACTIVE LOW P STROBE DELAY Pulse offset from trigger event P STROBE DURATION Pulse duration P STROBE ALIGN ON HS DISABLE ENABLE 40 e Part I PC2 CamLink Board PC2 CamLink User s Manual Serial Port The Camera Link cabling specification includes a serial communication port for direct camera control by the frame grabber The PC2 CamLink supports this serial communication port either directly or by mapping it to a host computer COM Port Any serial port c
99. pdates Camera files are ASCH text and can be read with Windows Notepad on any computer without having Sapera installed Overview of Sapera Acquisition Parameter Files ccf or cca cvi Concepts and Differences between the Parameter Files There are two components to the legacy Sapera acquisition parameter file set CCA files also called cam files and CVI files also called VIC files i e video input conditioning These files store video signal parameters CCA and video conditioning parameters CVI which in turn simplifies programming the frame grabber acquisition hardware for the camera in use Sapera LT 5 0 introduces a new camera configuration file CCF that combines the CCA and CVI files into one file Typically a camera application will use a CCF file per camera operating mode or one CCA file in conjunction with several CVI files where each CVI file defines a specific camera operating mode An application can also have multiple CCA CCF files so as to support different image format modes supported by the camera or sensor such as image binning or variable ROI CCF File Details Files using the CCF extension Camera Configuration file are essentially the camera CCA and frame grabber CVI parameters grouped into one file for easier configuration file management This is the default camera configuration file used with Sapera LT 5 0 and the CamExpert utility CCA File Details DALSA distributes camera files us
100. pears and asks whether you want to restart the computer now or at a later time Choose desired option and select Finish Note that the computer must be restarted for the drivers to take effect 16 e Part I PC2 CamLink Board PC2 CamLink User s Manual Configuring Serial Port Under IFC Optional COM Port Assignment The Set Board COM application tool is used to assign the COM Port the program from the Windows Start menu StartePrograms IFC version 5 8 ToolseSet Board Com Port fan Programs Accessories l ey Documents amp bin 33 FullShot 6 0 gt i Paint Shop Pro Search 3 9 Help Run amp Coreco Imaging 5 oe Q ShutDown Wi FPGA Update Tool o M Display Test PCI Diagnostic mH Set Board Com Port The Set Image Capture Board Uart ComX Port window appears The PC2 CamLink board s appear s in the Select Board window See screenshot below Set Image Capture Board Uart to ComX Port Select Board Select Com Port Number e g 3 gt gt COM3 LNKO Range 1 15 2 0 V 2 Cose You must reboot your computer to complete any port name change 6 m Uart Port Naming Convention By default the PC2 Vision port name is PC2 Vision 1 Serial 0 By default the PC2 CamLink Uart port name is PC2 CamLink 1 Serial 0 By default other imag
101. puts such as the 74AC240 inverting buffer or 74AC241 non inverting buffer These devices can supply up to 24mA at close to the supply voltage The other alternative is to connect your TTL device to Ext Trig and connect a 5V pull up to Ext Trig as mentioned above Pinout Positive side anode Negative side cathode Opto trigger 1 DB 15 pin 1 DB 15 pin 9 Opto trigger 2 DB 15 pin 2 DB 15 pin 10 LVDS LVDS Low Voltage Differential Signaling uses low voltage dual wire systems running 180 apart This enables noise to travel at the same level which in turn can get filtered out more easily and effectively Two LVDS trigger inputs are available on PC2 CamLink for a total of 4 pins These inputs are typically implemented using the National Semiconductor DS90LV028A LVDS line receiver or a compatible device Pinout Positive line Negative line LVDS trigger 1 DB 15 pin 4 DB 15 pin 11 LVDS trigger 2 DB 15 pin 5 DB 15 pin 12 SW Trigger A software trigger is available to programmatically control the trigger event This is generated by a function call from the application User Timer The PC2 CamLink offers a user timer that can be used to fire a frame acquisition at a specified frame rate Note that the user timer is asynchronous to all input pins The user timer has a minimum frequency of 0 1Hz and a maximum frequency of 10kHz with a step size of 0 1Hz PC2 CamLink User s Manual Part I PC2 CamLink Boa
102. r Data Port Sequencer Table F C CL2 IMAGE GEOMETRY CL2 1CHAN L2R CL2 2CHAN INTERLEAVED CL2 2CHAN SEP TAP L2R CL2 2TAP INTERLINE A EVEN CL2 2TAP INTERLINE EVEN P PIXEL SIZE pixel size of host buffer from 8 to 16 bits CAM PIXEL SIZE pixel size from camera 0 if camera has same pixel size as host buffer P PIXEL COLOR IFC_MONO Window Generator The Window Generator extracts a window from the incoming image This window is represented by a rectangle where the upper left corner is set by horizontal and vertical offset from the start of valid video and the rectangle size by width and height parameters See diagram below Note that image widths must be a multiple of four bytes because of transfer restrictions on the PCI bus Window Generator Complete frame Vertical offset Horizontal offset Figure 14 Window Generator Window Generator operates after the channels have been recombined by the data port sequencer therefore image width and height applies to this recombined image not to individual channels PC2 CamLink User s Manual Part I PC2 CamLink Board e 47 Sapera Parameters for Cropper CORACQ PRM CROP WIDTH Horizontal width of area of interest CORACQ PRM CROP LEFT Horizontal offset CORACO PRM CROP HEIGHT Vertical height of area of interest CORACQ PRM CROP TOP Vertical offset In CamExpert these parameters are located under the Image Buffer and
103. r Shaft encoder CORACO PRM SHAFT ENCODER ENABLE TRUE FALSE CORACO PRM SHAFT ENCODER LEVEL VAL LEVEL LVDS CORACO PRM SHAFT ENCODER DROP Number of shaft pulse to skip between valid pulses In CamExpert these parameters are located under Advanced Control Parameters for line trigger selection and under External Trigger Parameters for external trigger and shaft encoder configuration IFC IFC Parameters for Virtual Frames Triggers P VFRAME TRIGGER ENABLE IFC DISABLE IFC ENABLE P VFRAME TRIGGER POLARITY FALLING EDGE RISING EDGE IFC POL ACTIVE HIGH IFC POL ACTIVE LOW P GEN SW TRIGGER 0 1 P VFRAME TRIGGER DEBOUNCE Debounce duration P VFRAME TRIG SOURCE CL2 SOFT TRIG CL2 OPTO VFRAME TRIGI CL2 VRAME STARTTRIGI STOPTRIG2 CL2 LVDS VFRAME TRIGI 612 LVDS VFRAME STARTTRIGI STOPTRIG2 IFC Parameters for Linescan triggers CL2 LINE TRIG ENABLE DISABLE ENABLE CL2 LINE TRIG SOURCE CL2 TIMER LINE TRIG CL2 SHAFT LINE TRIG CL2 LINE TRIG CYCLE TIME Timer interval for line trigger in CL2 TIMER LINE TRIG IFC Parameters for Shaft encoder CL2 LINE TRIGGER DROP COUNT Number of shaft pulse to skip between valid pulses CL2 LINE TRIGGER NUM PHASE Number of phase 1 or 2 of the shaft encoder CL2 LINE TRIGGER TRIG DEBOUNCE Debounce duration 38 e Part I PC2 CamLink Board PC2 CamLink User s Man
104. r and browse to the root directory of the CD ROM Execute launch exe to start the DALSA installation menu and install the required Sapera components e The installation program will prompt you to reboot the computer Refer to Sapera LT User s Manual for additional details about Sapera LT Installing PC2 CamLink Hardware and Driver In a Windows XP Windows Vista or Windows 7 System e Turn the computer off disconnect the power cord disables power standby mode and open the computer chassis to allow access to the expansion slot area Install the PC2 CamLink into a free PCI slot e Close the computer chassis and turn the computer on Driver installation requires administrator rights for the current user of the computer e Windows will find the PC2 CamLink and start its Found New Hardware Wizard Click on the Cancel button to close the Wizard Application e Insert the DALSA Sapera CD ROM If AUTORUN is enabled on your computer the DALSA installation menu is presented Install the PC2 CamLink driver If AUTORUN is not enabled use Windows Explorer and browse to the root directory of the CD ROM Execute launch exe to start the DALSA installation menu and install the PC2 CamLink driver Note if you are using Windows Vista or Windows 7 with the User Account Control feature enabled a dialog is displayed when you execute launch exe click Allow to continue with the driver installation e Choose the device driver setup type full in
105. r may exist on the acquisition hardware or be allocated by the acquisition hardware device driver in host system memory Grab Acquiring an image frame by means of a frame grabber Grayscale In image processing the range of available brightness levels displayed in shades of gray In an 8 bit system the gray scale contains values from 0 to 255 Host Refers to the computer system that supports the installed frame grabber Interlaced Describing the standard television method of raster scanning in which the image is the product of two fields each of which is made up of the image s alternate lines i e one field is comprised of lines 1 3 5 etc and the other is comprised of lines 2 4 6 etc Low Pass Filter A filter that blocks high frequencies and allows lower frequencies to pass through Used to limit undesirable analog information such as high frequency video noise before converting to digital data NTSC National Television Systems Committee Color TV standard used in North America and other countries The interlaced video signal is composed of a total of 525 video lines at a frame rate of 30 Hz PAL Phase Alteration by Line Color TV standard used in most of Europe and other countries The interlaced video signal is composed of a total of 625 video lines at a frame rate of 25 Hz PCI Peripheral Component Interconnect The PCI local bus is a 32 bit high performance expansion bus intended for interconnecting
106. rSerial 2 2 5 5 CorSerialCreatePorts gt Board 1 Client Serial Port 0 Created F dev_pc2c100 pc2c SYS INITDEVICES gt 1 PC2 CamLink device found F dev_pc2c100 pc2c Driver kernel wi Open Windows Explorer to ensure that the pe2c sys file is copied to your Winnt system32 drivers or Win system32 drivers folder If it is not this points to a software installation problem You may try to uninstall and reinstall the software Make certain that you have Administrator privileges when you perform installation Follow all directives given by the installation program 116 Part IV Troubleshooting and Support PC2 CamLink User s Manual e Open the registry editor Click on Windows Start button and select Run In the Run dialog box type regedit without the quotes and click OK This will start the registry editor Go to the HKEY LOCAL MACHINE SYSTEM CurrentControlSet ServicesPc2c folder You should see the following key e Start e REG DWORD e 0x00000002 e Ifthe Pc2c folder is absent this indicates a problem with the installation process Make certain that you have Administrator privileges when you perform installation Ifthe log does not show any indication that the PC2 CamLink driver was started you may have a plug and play problem If you have Windows XP go to ControlPanel SystemeHardware Device Manager Look for PC2 CamLink under Imaging Devices Double click and look at the device
107. ra detected but not operating within Solid green established parameters Camera detected and 2 Flashing green operating correctly A valid trigger has been TAM detected Valid trigger a Camera power Camera power overload is open Indicates that a trigger Trigger event occurred object in place E Data is being acquir Start of acquisition 5 being acquired Yes from the camera End of acquisition Acquisition is complete es es es i Y transfer Data is being transferred y to the host complete Event index An index or count of all events indicating if an event has been missed Sapera LT Data Integrity Monitors the number of pixels being acquired Line length integrity from the camera Monitors the number of lines per frame acquired Frame length integrity from the camera 62 e Part I PC2 CamLink Board PC2 CamLink User s Manual Camera Presence Reports that a camera is connected with a valid output Recovery Trigger Debounce Hardware rejection of multiple short lived triggers Minimum valid trigger pulse duration is SW programmable Invalid Trigger If two triggers are Rejection detected in less than a minimum time the second trigger is rejected and an error event is generated Circular Buffer Subsequent capture in Yes Management next empty buffer Trash buffer if circular list is full Gan LT Data Overrun This condition occurs when data becomes corrupted duri
108. rce is active high on the rising edge of FVAL Active Low Frames are captured as long as the trigger source is active low on the rising edge of FVAL The incoming trigger pulse is passed through a debounce circuit to ensure that no glitch would be detected as a valid trigger pulse This can be programmed from Ous to 255us Any pulse smaller than the programmed value will be blocked and therefore not seen by the acquisition circuitry Note that the debounce circuit introduces a delay in an external trigger detection Therefore if a period of 255ps is selected the actual trigger detection will be forwarded 255us after the first edge of the trigger pulse assuming a stable pulse of more than 255us External Trigger Debouncer validated Trigger SSS 0 2555 ie t et t d t vt t et t d Figure 5 External Trigger 28 e Part I PC2 CamLink Board PC2 CamLink User s Manual Let time of external trigger in us t vt time of validated trigger in us t d debounce circuit duration from 0 to 255us We therefore get t vt t et t d If t vt gt 0 then a valid trigger is detected and acquisition is fired Opto Formed by a LED emitter combined with a photo detector in close proximity an opto coupler or opto isolator allows for the connection between the PC2 CamLink external trigger and the user circuitry using separate grounds This galvanic isolation prevents ground loops
109. rd e 31 Sapera Parameters for Area Scan Trigger WW 7 CORACQ PRM EXT TRIGGER ENABLE CORACQ VAL EXT TRIGGER OFF CORACQ VAL EXT TRIGGER ON Sapera _ ON CORACQ PRM EXT TRIGGER DETECTION CORACQ VAL RISING EDGE CORACQ VAL FALLING EDGE CORACO VAL ACTIVE LOW CORACQ VAL ACTIVE HIGH CORACO PRM EXT TRIGGER DURATION Debounce duration CORACO PRM EXT TRIGGER FRAME COUNT Number of frames to acguire per trigger CORACO PRM EXT TRIGGER LEVEL CORACO VAL LEVEL TTL CORACO VAL LEVEL LVDS CORACO PRM EXT TRIGGER SOURCE 0 for automatic defaults to trigger input 1 PRM INT FRAME TRIGGER ENABLE TRUE FALSE CORACQ PRM INT FRAME TRIGGER FREQ Frequency of user timer In CamExpert the external trigger parameters are located under the External Trigger Parameters tab The internal frame trigger parameters are located under the Advanced Control Parameters tab IFC Parameters for Area scan Trigger F C P TRIGGER ENABLE DISABLE ENABLE P TRIGGER POLARITY IFC FALLING EDGE IFC RISING EDGE IFC POL ACTIVE HIGH IFC POL ACTIVE LOW P GEN SW TRIGGER 0 1 P TRIGGER DEBOUNCE Debounce duration P FRAMES PER TRIGGER Number of frames to acquire per trigger CL2 FRAME TRIG SRC CL2 SOFT FRAME TRIG CL2 OPTO FRAME TRIGI CL2 OPTO FRAME TRIG2 CL2 LVDS FRAME TRIGI CL2 LVDS FRAME TRIG2 CL2 FREQ FRAME TRIG CL2 FRAME TRIG FREQ Frequency of us
110. rneath the connector then carefully pull the cable from the board connector floppy disk cable j ME D PC2 CamLink locking carefully lift to unlock latch mechanism and gently pull Figure 23 Removing floppy power connector LED There are two light emitting diodes on the front bracket LED1 The top diode gives useful information concerning the state of acquisition The bottom diode gives useful information concerning the state of the trigger The following tables list the correspondence between the state of the top diode and the state of acquisition and the bottom diode and the state of the trigger Acquisition LED State OFF Static Red Static Green Blinking Green Slow 2 Hz Blinking Green Fast 15 Hz Trigger LED State OFF Blinking Green Static Green Blinking or Static Red 72 e Part I PC2 CamLink Board Acquisition State Fatal card error Camera is not connected no Pixel Clock detected Camera is connected Activity on LineValid pin Grabbing Trigger State No trigger detected Triggers at a slow rate detected one blink per trigger Triggers at a fast rate detected Error detected by PC2 CamLink driver PC2 CamLink User s Manual ACQ TRIG Status Camera Link Connector J1 Status Trigger J2 Figure 24 Visual Status LEDs There are five additional LEDs located on the PC2 CamLink These LEDs give supplemental information
111. s Log Viewer Lists various information warnings and error messages reported by DALSA boards including the PC2 CamLink driver PCI Diagnostics Start ProgramseIFC Version 5 8 Tools PCI Diagnostics Lists all the computer s PCI configuration space registers When you contact DALSA Technical Support by email make certain that you attached two pieces of information the log file and the pci dump file They provide valuable information about your PC2 CamLink to rapidly find the root cause of the problem PC2 CamLink User s Manual Part IV Troubleshooting and Support e 113 Saving the Log Start Log Viewer Select a filename e g log txt Send log to DALSA Technical support Here is a typical log From the menu bar select File Save Messages Coreco Log Viewer ID x File Edit Options Help 2 5 5 DRIVERENTRY gt Entering v GETCMOSCPUSPEED gt cpuSpeed 752 MH 2 5 5 Interrupt in 5 sec 1 00 Beta 1 2 5 5 BOARDFINDDEVICE gt Looking for PC2 CamLink Device 2 5 5 BOARDPARSERESOURCES gt Memory bank 0 Address Oxde800000 Size Oxi 2 5 5 BOARDPARSERESOURCES gt Memory mapped successfully 2 5 5 BOARDPARSERESOURCES gt Interrupt line 1 Vector 0x00000009 Level 2 5 5 CorSerialAddDevice gt CorSerial Interface Version Board Driver 2 C 2 5 5 CorSerialCreatePorts gt 1 Client Serial Port
112. s in the preceding section you can proceed by validating that the board is correctly registered in Windows and that the associated kernel driver has started e Start the Log Viewer tool Check for 1 PC2 CamLink device found in the list of messages as shown in bold below If you do not see this look for error messages identified by lt ERR gt at the start of the line Make certain that the memory is mapped successfully and that an interrupt line is assigned to the board The PC2 CamLink driver related messages have the pe2c sys string inserted before the actual message If the device is found proceed to next section pc2c SYS DRIVERENTRY gt Entering v 1 01 F dev_pc2c100 pc2c Driver kernel winnt ms g GETCMOSCPUSPEED gt cpuSpeed 752 MHz F dev_pc2cl00 pc2c Driver kernel winnt ms cortime 2 5 5 Max Interrupt in 5 sec 601600 F dev_pc2cl100 pc2c Driver kernel winnt ms gdr pc2c SYS SDrv ExtraManagerInit gt Last installation is for Sapera IFC F dev_pc2cl pc2c SYS BOARDFINDDEVICE gt Looking for PC2 CamLink Device F dev_pc2cl00 pc2c Driver k pc2c SYS BOARDPARSERESOURCES gt Memory bank 0 Address Oxde000000 Size 0x00000400 pc2c SYS BOARDPARSERESOURCES gt Memory mapped successfully F dev_pc2c100 pc2c Driver k pc2c SYS BOARDPARSERESOURCES gt Interrupt line 1 Vector 0x00000009 Level 0x00000009 pc2c SYS CorSerialAddDevice gt CorSerial Interface Version Board Driver 3 Co
113. s robustness through its ACU Acquisition and Control Unit which manages the frame grabber input and monitors in real time the acquisition state As such it is for the most part transparent to user applications On PC2 CamLink user applications can interact with trigger to image reliability by means of the following e Glitches on the external trigger and shaft encoder lines are debounced by the ACU A parameter is available to indicate the minimal pulse duration to consider an external trigger pulse valid e For each field a number of interrupts are generated to indicate the following events e Trigger interrupt e Start of capture interrupt e End of capture interrupt End of transfer interrupt e By monitoring these events it is possible to know the flow of acquisition of the system If something goes wrong during the acquisition process a notification is sent for the following e Skipped frame Occurs when PCI bandwidth is limited or onboard FIFO is full The remaining data of the frame in the process of being acquired is discarded 60 e Part I PC2 CamLink Board PC2 CamLink User s Manual e Error on Pixel Clock No pixel clock detected from the camera e Visual indicators on the PCI bracket give a clear indication of the acquisition and trigger status Additional LEDs are present at the back of the board below the floppy power connector These LEDS indicate a camera power overflow The rest of trigger to 1mage reliability
114. stallation required for application development or runtime installation supports application execution only e When using Windows XP if a message stating that the PC2 CamLink software has not passed Windows Logo testing is displayed click on Continue Anyway to finish the PC2 CamLink driver installation Reboot the computer if prompted to do so 8 e Part I PC2 CamLink Board PC2 CamLink User s Manual e When using Windows Vista or Windows 7 a message asking to install the DALSA device software is displayed Click Install PA 77 Windows Security E Would you like to install this device software Name PC2 CamLink Device Driver Publisher DALSA Corp Always trust software from DALSA Corp Install Don t Install r You should only install driver software from publishers you trust How can I decide which device software is safe to install Upgrading Sapera or any Board Driver When installing a new version of Sapera or a DALSA acquisition board driver in a computer with a previous installation the current version must be un installed first Upgrade scenarios are described below Board Driver Upgrade Only Minor upgrades to acquisition board drivers are typically distributed as ZIP files available in the DALSA web site http www dalsa com Board driver revisions are also available on the next release of the Sapera CD ROM Often minor board driver upgrades do not require a new revision of Saper
115. step size 1 P_VERT_OFF Integer range parameter min 0 max 8191 step size l P HEIGHT PIXELS Range 0 to 65536 step size 1 P HEIGHT PIXELS Integer range parameter min 1 max 8192 step size l ACTIVE REGION GROUP No equivalent on PC CamLink P_HORZ_ACTIVE Integer range parameter min 4 max 8192 step size 4 pixels No equivalent on PC CamLink P_HORZ_INACTIVE Integer range parameter min 1 max 8188 step size 1 pixel Trigger Parameters PC CamLink Values PC2 CamLink Values Param Param MAIN GROUP P TRIGGER STATE IFC LEVEL LOW IFC LEVEL HIGH No equivalent on PC2 CamLink P GEN SW TRIGGER 1 P GEN SW TRIGGER Integer range parameter min 0 max 1 step size l LNK TRIG DIVIDE CONTROL LNK DISABLE TRIG DIVIDE LNK DIVIDE TRIG 0 LNK DIVIDE TRIG 1 Use CL2 LINE TRIG DROP COUNT FRAME TRIGGER GROUP Only available if P FEN ENABLE is enabled Implicitly activated by EXSYNC and PRI on PC CamLink P TRIGGER ENABLE IFC DISABLE IFC ENABLE P TRIGGER POLARITY IFC FALLING EDGE IFC_RISING_EDGE P_TRIGGER_POLARITY IFC_FALLING_EDGE IFC_RISING_EDGE IFC_POL_ACTIVE_LOW IFC_POL_ACTIVE_HIGH No equivalent on PC CamLink P FRAMES PER TRIGGER Integer range parameter min 1 max 1000 step size 1 frame LNK TRIG GLITCH DETECTOR IFC DISABLE IFC ENABLE P TRIGGER DEBOUNCE Integer range parameter min 0 us max 255 step size 1 us P TRIGGER SRC LNK DIFFERENTIA
116. t PC2 CamLink User s Manual DAISA Contact Information Sales Information Visit our web site Email http www dalsa com mv mailto info dalsa com Canadian International Sales Office DALSA 7075 Place Robert Joncas Suite 142 Montreal Quebec Canada H4M 272 Tel 514 333 1301 Fax 514 333 1388 US Sales Office DALSA Inc 700 Technology Park Drive Billerica Ma 01821 Tel 978 670 2000 Fax 978 670 2010 Asia Sales Office DALSA Asia Pacific Ikebukuro East 13F 3 4 3 Higashi Ikebukuro Toshima ku Tokyo Japan Tel 81 3 5960 6353 Fax 81 3 5960 6354 PC2 CamLink User s Manual Part IV Troubleshooting and Support e 119 Technical Support Any support question or request can be submitted via our web site Technical support form via our web page Support requests for imaging product installations Support requests for imaging applications http www dalsa com mv support Camera support information http www dalsa com mv products fgvpdetail aspx partNumber OR PC20 C0000 Product literature and driver updates http www dalsa com mv download 120 e Part IV Troubleshooting and Support PC2 CamLink User s Manual Glossary of Terms Bandwidth Describes the measure of data transfer capacity A computer system s expansion bus 15 rated for a maximum peak data bandwidth of 132 MB s PCI devices must share the maximum PCI bus bandwidth when
117. t is associated with an interrupt so that WIN32 thread can be unblocked when the event it is waiting for gets signaled For example when an interrupt is received the corresponding event is signaled and the thread waiting for this event resumes execution Interrupt event Under IFC an interrupt object is an IFC virtualization of an event associated object to an interrupt Start of Trigger The Start of Trigger interrupt is generated when the selected external trigger pin is asserted usually indicating the start of the acquisition process In IFC this is represented by CL2 INTR SOT In Sapera this is represented by CORACQ VAL EVENT EXTERNAL TRIGGER PC2 CamLink is equipped with a debounce circuit that allows the user to define the minimum acceptable pulse width programmatically Note There is no Start of Trigger interrupt for a software trigger This particular interrupt is only asserted for a pulse on the selected external trigger pin Start of Capture The Start of Capture interrupt family indicates a FVAL or LVAL has been detected Note that this does not necessarily mean the image will be captured For instance if you have a free running camera at 30fps with external trigger enabled you will get 30 interrupts per second even though the PC2 CamLink waits for an external trigger to actually capture the next image This allows the application program to count frames or lines coming from the camera Star
118. t of Frame The Start of Frame interrupt represents the beginning of a full frame output by the camera It is also generated on the start of a virtual frame It is asserted on the FVAL pulse at the beginning of the frame In IFC this is represented by CL2 INTR In Sapera this is represented by CORACQ VAL EVENT TYPE VERTICAL SYNC 56 e Part I PC2 CamLink Board PC2 CamLink User s Manual Start End of Line For linescan cameras the Start of Line interrupt represents the beginning of a valid line output by the camera It is asserted on the LVAL pulse at the beginning of the line This is represented by CL2_INTR_HB in IFC Sapera offers the End of line interrupt through the VAL EVENT TYPE END OF NLINES event with N 1 Warning Start End of Line interrupts occur at a very high rate This may saturate your CPU and prevent proper functioning of your OS Make certain that your CPU is powerful enough to handle the high interrupt rate generated by your area scan or linescan camera Note For reasons of performance each Start of Capture interrupt is only enabled if a user function has been registered to process them End of Capture The End of Capture interrupt family is asserted when capture is complete and data transferred to onboard FIFO memory End of Frame An End of Frame interrupt is generated when the last pixel from the image has been acquired and transferred to onboard FIFO memory It is also generate
119. taneously on both channels The figure below Interline shows where the data appears in the original image There are two options as shown in the figure below Channel A can present the even lines 0 2 4 6 8 or the odd lines 1 3 5 7 9 The PC2 CamLink can support this format for pixel depths from 8 bits up to 12 bits The IFC Software Library calls this Two Tap Interline A Even and Two Tap Interline B Even or CL2 2TAP INTERLINE A EVEN and CL2 2TAP INTERLINE B EVEN A Even A pre B B Even B A Interline Sapera Sapera parameters for Data Port Sequencer Table CORACQ PRM TAPS 1 2 CORACQ PRM TAP OUTPUT CORACQ VAL TAP OUTPUT SEGMENTED CORACQ VAL TAP OUTPUT ALTERNATE CORACO VAL TAP OUTPUT PARALLEL CORACO PRM 1 DIRECTION CORACQ VAL TAP DIRECTION CORACO VAL TAP DIRECTION UD CORACO VAL TAP DIRECTION FROM TOP CORACQ PRM TAP 2 DIRECTION CORACQ VAL TAP DIRECTION LR CORACO VAL TAP DIRECTION UD CORACO VAL TAP DIRECTION FROM TOP CORACQ PRM CHANNEL CORACQ VAL CHANNEL SINGLE CORACQ VAL CHANNEL DUAL CORACQ PRM CHANNELS ORDER CORACQ VAL CHANNELS ORDER NORMAL CORACQ VAL CHANNELS ORDER REVERSE CamExpert these parameters are located under the Basic Timing Parameters tab Select Camera Sensor Geometry Setting 46 e Part I PC2 CamLink Board PC2 CamLink User s Manual IFC parameters fo
120. terrupts 55 Acrobat Reader 16 administrator 8 10 API 15 area scan 5 25 43 44 94 area scan grab trigger 28 asynchronous serial communication 77 AUTORUN 8 B BIOS 116 board not detected 115 buffer descriptor list 49 Bus Master 49 59 bus master done 58 C 15 camera configuration file CCF 92 95 97 118 Camera Configurator 118 camera controls 26 77 CCI 24 CC2 24 CC3 24 CC4 24 Camera Link 42 52 75 Camera Link 75 Camera Link cable 77 Camera Link serial port 41 camera power jumper 7 camera search utility 97 camera type 118 CameraLink 5 PC2 CamLink User s Manual CamExpert 92 95 97 118 capture interrupts 57 CCA 92 Channel Link 76 COM Port 10 18 41 COM Port Assignment 17 computer system required 74 contiguous memory 13 14 95 CVI 92 D DALSA FTP site 97 DALSA web site 97 data port seqencer 44 47 DB 15 connector 7 33 34 39 60 debounce circuit 28 56 DMA 13 driver upgrade 9 D Sub connector 53 DVAL 23 76 dynamic resources 13 E End of Frame interrupt 57 End of N Lines interrupt 57 error interrupts 59 event interrupts 60 exclusion region 39 EXSYNC 24 25 28 32 118 external trigger 28 29 32 52 56 60 94 118 F Fast Strobe 39 Firmware Update 20 Floppy power connector 5 60 61 71 72 116 117 Found New Hardware Wizard 8 frame on demand mode 118 free running cameras 56 fr
121. that grabs images from a single base digital Camera Link camera to host memory for processing The board was designed for cost effective performance Both linescan and area scan cameras are supported Up to two channels are supported Note that RGB is not supported Components amp Part Numbers The following table lists the components and part numbers for the PC2 CamLink Part Number Board PC2 CamLink OC PC20 C0000 Cables amp Accessories Camera Link Video Input Cable optional product 1 meter OC COMC CLNKO 2 meter OC COMC CLNK6 Optional Cable Floppy power connector OC COMC POWO3 Documentation PC2 CamLink User s manual OC PC2M CUM00 IFC SDK Software manual 403 00004 00 Camera Configurator User s manual 405 00006 00 The floppy power connector can be ordered by contacting DALSA See DALSA Contact Information on page 119 for further information PC2 CamLink User s Manual Part I PC2 CamLink Board e 5 amp FCC Certificate of Conformity ALS EC amp FCC DECLARATION OF CONFORMITY We DALSA Montreal Inc 7075 Place Robert Joncas Suite 142 St Laurent Quebec Canada H4M 2Z2 Declare under sole legal responsibility that the following products conform to the protection requirements of council directive 89 336 EEC on the approximation of the laws of member states relating to electromagnetic compatibility as amended by directive 93 68 EEC FRAME GRABBER BOARD PC
122. the start of a virtual frame trigger event while Opto2 and LVDS2 are always an end of a virtual frame trigger event Sapera Parameters for Virtual Frames Triggers CORACQ EXT FRAME TRIGGER ENABLE TRUE FALSE CORACQ PRM EXT FRAME TRIGGER DETECTION 4 CORACQ VAL RISING EDGE CORACQ VAL FALLING EDGE CORACQ VAL ACTIVE LOW CORACQ VAL ACTIVE HIGH CORACQ VAL DOUBLE PULSE RISING EDGE CORACQ VAL DOUBLE PULSE FALLING EDGE CORACQ PRM EXT FRAME TRIGGER LEVEL CORACQ VAL LEVEL TTL CORACQ VAL LEVEL LVDS CORACQ PRM EXT FRAME TRIGGER SOURCE 0 for automatic defaults to trigger input 1 except for variable frame length with start stop pulse where start pulse is associated with trigger input 1 and stop pulse is associated with trigger input 2 CORACQ PRM EXT TRIGGER DURATION Debounce duration Sapera Parameters for Linescan triggers CORACQ EXT LINE TRIGGER ENABLE TRUE FALSE CORACQ PRM EXT LINE TRIGGER DETECTION CORACQ VAL RISING EDGE CORACO PRM EXT LINE TRIGGER LEVEL CORACQ VAL LEVEL LVDS CORACQ PRM EXT LINE TRIGGER SOURCE 0 for automatic both phases of PC2 CamLink User s Manual Part I PC2 CamLink Board e 37 shaft encoder 1 for phase A of shaft encoder CORACQ PRM LINE TRIGGER ENABLE TRUE FALSE CORACO PRM INT LINE TRIGGER ENABLE TRUE FALSE CORACO PRM INT LINE TRIGGER FREO User timer line freguency Sapera Parameters fo
123. transferring data to and from system memory or other devices Bus A common pathway or channel between multiple devices Besides the computer s internal bus to memory and system components peripheral buses such as PCI and AGP allow adding or changing devices that make up the computer system Camera Link A digital camera interface standard based on Channel Link technology Camera Link provides a standard digital camera connection specification a standard data communication protocol and simpler cabling between camera and frame grabber Composite sync Synchronization signals that combines the vertical component video field or frame sync with the horizontal component video line sync Often RGB cameras besides the three color signals have a fourth composite sync CS signal Composite Video A video signal that is composed of the luminance and color information plus the synchronization signals together Common composite video formats are NTSC and PAL Driver Also called a device driver a program routine that links a peripheral device to the operating system Specific to the Bandit II its VGA driver is required for its display adapter functionality and a device driver is required for its frame grabber capabilities Frame One complete image data set or its equivalent storage space PC2 CamLink User s Manual Glossary of Terms e 121 Frame buffer An area ofmemory used to hold a frame of image data A frame buffe
124. ual Strobe One strobe signal is available on pin 15 of DB 15 connector J2 The pulse duration and polarity are programmable up to 65 seconds The strobe signal is attained by using an LVT244 driver with the following electrical characteristics Electrical Description Value parameters Typical high level output voltage 3 1 V 100 max Maximum high level output current 32mA sourcing lor max Maximum low level output current 64mA sinking Sapera Parameters for Strobe Sapera Refer to Strobe Method in the Sapera Acquisition Parameters Reference manual Only strobe method 1 is supported on PC2 CamLink CORACQ PRM STROBE ENABLE TRUE CORACQ PRM STROBE METHOD CORACQ VAL STROBE METHOD 1 CORACQ PRM STROBE POLARITY CORACQ VAL ACTIVE LOW CORACQ VAL ACTIVE HIGH CORACQ PRM STROBE DELAY Pulse offset from trigger event CORACQ STROBE DURATION Pulse duration CORACO PRM STROBE LEVEL CORACQ VAL LEVEL TTL In CamExpert these parameters are located under Advanced Control Parameters Select Strobe Method Setting Under IFC PC2 CamLink offers two types of strobes Fast Strobe and Slow Strobe Fast F C Strobe occurs immediately after the trigger See below for diagram The first trigger falling edge immediately generates a strobe pulse The strobe pulse duration 1s programmable This mode is often used with asynchron
125. ual Part I PC2 CamLink Board e 15 Select Components you do not want to install Components Select the components you want to install clear the components Description PC2 CamLink libraries examples and Help files Space Required Space Available 42151 2700720 lt Back Next gt Cancel The Select Components window is displayed see above screen shot If you do not see PC2 CamLink in the list select Next to display more boards Check PC2 CamLink and select Next Note that only the support configuration files and examples for the board s chosen get copied to your hard drive The Select Program Folder window is displayed You can either retain the default program folder or create a new one Select Next for the installation to begin A window appears asking if you want Acrobat Reader to view and print manuals installed with the Imaging Studio CD ROM Select Yes if you do not already have Acrobat Reader installed in your system Select Yes or No after the window appears asking to view readme files The Service Pack Update Check window is displayed This allows you to check for an IFC service pack update via the DALSA web site Note that you need an active Internet connection Select Yes if you want to check for an update It is possible to check later for a service pack update through a shortcut in the IFC program group The Setup Complete window ap
126. ultaneously a possible shortage of bandwidth may affect the PC2 CamLink s PCI controller Another possible cause could be a high bandwidth camera PC2 CamLink supports pixel clocks up to 66 MHz with up to two channels and up to 12 bits per channel The resulting bandwidth might easily exceed the PCI maximum of 132MB second The Window Generator can be used as well as truncating pixels to 8 bits to reduce the bandwidth Error on Pixel Clock The Error on Pixel Clock condition is signaled when a pixel clock is not detected by PC2 CamLink A typical cause of this problem is when no camera has been connected to the MDR 26 Camera Link connector J1 The ACQ LED is solid red when this condition occurs Sapera provides the following events and status to handle error conditions on PC2 WW CamLink Sa pera CORACQ VAL EVENT TYPE NO PIXEL CLK CORACO VAL EVENT TYPE FRAME LOST CORACQ VAL EVENT TYPE DATA OVERFLOW CORBUFFER VAL STATE OVERFLOW To retrieve the buffer overflow indication the application must call CorBufferGetPrm for the CORBUFFER PRM STATE parameter IFC provides the following interrupts to handle error conditions on PC2 F C CamLink CL2 INTR FRAME SKIPPED CL2 INTR ERROR PIXEL CLOCK PC2 CamLink User s Manual Part I PC2 CamLink Board e 59 Camera Power PC2 CamLink can provide up to 1 5A of 5V or 12V power to the camera through the DB 15 connector The v
127. upports all acquisition interrupts Supports error interrupts External trigger configuration dialog SW trigger generation PC2 CamLink User s Manual Part IFC e 101 Setup Any supported Camera Link camera Camera Link cable 1 PC2 CamLink Source of external trigger Project location Installation Directory examples PC2 CamLink IntrEx Be CL2_INTR_VB 811 Enable Disable 2 INTR HB 277 Enable Disable CL2_INTR_EOFRM 811 Enable Disable CL2 INTR SOT Enable Disable CL2_INTR_BMDONE 811 Enable Disable CL2_INTR_FRAME_SKIPPED Enable Disable CL2_INTR_ERROR_PIXEL_CLOCK Enable Disable E 8 1114 CL2 INTR END OF NLINES Enable Disable Num Lines per CL2 INTR END OF NLINES o Grab to Host status Trigger Setup Active Generate Software Trig Sequential Snap Title Sequential Snap Description Snaps a small number of images into host memory and replays them Demonstrates how to use LUT Parallel I O and other PC2 CamLink features Features Uses CL2TEST TXT for configuration Snaps a short sequence of frames to host memory and replays this sequence Camera and port selection Camera control for external trigger frame reset and strobe Overlay demonstration LUT demonstration Window Generator dialog Parallel I O control Setup Any camera Camera Link cable 1 PC2 CamLink 102 e Part IFC PC2 CamLink User s Manual Project location Installatio
128. ut pin 2 Digital Input pin 4 Digital Input pin 6 5V power output Digital Output pin 1 Digital Output pin 3 Digital Output pin 5 Digital Output pin 7 no connection 12 13 14 15 16 17 18 19 20 21 22 23 24 25 n a J9 Reserved J11 Start Mode e Default Mode Shunt jumper is installed e Safe Mode Shunt jumper is removed if any problems occurred while updating the PC2 CamLink firmware With the jumper off reboot the computer and update the firmware again When the update is complete install the jumper and reboot the computer once again J13 Power to Camera Voltage Selector When the PC floppy drive power supply cable is connected to J14 a shorting jumper on J13 selects either no voltage 5V or 12V for the camera power supply The voltage supply is dependent on jumper configuration See diagram below for J13 jumper configuration selection top board edge top board edge top board edge connect connect no 5V 12V voltage Figure 22 Power to Camera Voltage Selector PC2 CamLink User s Manual Part I PC2 CamLink Board e 71 J14 Power Connector J14 must be connected to a computer floppy disk power cable to provide 12 or 5V to the camera through the J2 DB 15 Female Connector To remove the floppy disk power cable from the J14 connector carefully lift the cable connector head from the J14 connector to unlatch the locking mechanism unde
129. vel control or start stop pulses Input LUT A different LUT is assigned to all three Camera Link ports port A port B and port C The LUT operates at the resolution of 8 bits in and 8 bits out Note that it cannot operate on pixel sizes above 8 bits The LUT can be used for point transfers as well as thresholding Note ILUT appears before the data port sequencer In other words pixels above 8 bits have not yet been reformatted at that point Therefore the ILUT should not be used for cameras that have a pixel depth above 8 bits This is true even if 8 bit truncation is activated in the data port sequencer LUT 0 255 1 255 nout 7 2 255 output Data Port 1 3 255 m 255 Sequencer 252 0 253 0 254 0 255 0 Figure 13 Lookup Table Example PC2 CamLink User s Manual Part I PC2 CamLink Board e 43 Sapera parameters for Lookup Table CORACQ PRM LUT ENABLE TRUE FALSE Sa pe ra CORACQ LUT FORMAT CORACQ VAL OUTPUT FORMAT MONOS CORACO PRM LUT MAX 1 CORACO PRM LUT NENTRIES 256 CORACO PRM LUT NUMBER 0 Use CorAcqSetLut to load a LUT into PC2 CamLink CamExpert does not provide direct access to these parameters They must be activated programmatically from your Sapera application through the SapLut class IFC parameters for Lookup Table F C P INPUT LUTI FILE filename for LUT

Download Pdf Manuals

image

Related Search

Related Contents

MFI 9 Melt Flow Indexer User Manual  Télécharger le document  Expipe User Guide  TOP-TRES - Tres Grifería  Geovision GV-BL5310  Sony PCG-K47 User's Guide  HP-4 1CV  Article Heading  Pump22Manual 5.5x8.5_forpdf.qxp  User Manual for DR400 PC-RISOGRAPH USB Interface 4.0  

Copyright © All rights reserved.
DMCA: DMCA_mwitty#outlook.com.