background image

OPERATING AND USER MANUAL QUARTZ series CXP

17

Control of the camera

5. 

Introduction CoaXPress and GenICam

5.1 

The CoaXPress interface is register-based and GenICam compliant. The former means in practice 
that if a setting is changed or queried, a value is written to or obtained from a camera register with an 
address. The exact address and interpretation of the value are camera specific.

GenICam (Generic Interface for Cameras) is designed to bridge this. With CoaXPress frame grabbers a 
GenICam Application Programming Interface (GenAPI) is provided. This is a software layer that maps 
generic programming syntax onto the camera registers, using a description XML file. The programming 
syntax complies to the GenICam SFNC (Standard Features Naming Convention).

The description XML file is stored in the camera. Upon camera startup, most frame grabbers will 
automatically download the description XML file from the camera.

Communication between application and camera through SFNC, GenAPI and CoaXPress is 
schematically shown in figure 5.1.

Schematic view of communication between application and camera through SFNC, GenAPI and CoaXPress

Figure  5.1: 

In practice the camera is controlled as follows. If a user would like to change a camera setting, for 
example gain, GenICam (SFNC) prescribes a standardized syntax, currently only in C++:

 

if( IsAvailable(Camera.Gain) )

 

 

Camera.Gain = 150;

GenAPI can interpret such commands by the description file, and for example figure out that in order 
to set the gain to ‘150’,  a value of 96 (HEX) must be written to a register located at address 0x0815 
(HEX). Other tasks involved might be to check in advance whether the camera possesses a Gain 
feature and to check whether the new value is consistent with the allowed Gain range.

This register message is transmitted via the CoaXPress protocol and interpreted and applied inside the 
camera.

Application

GenAPI

CoaXPress

Camera

Description

XML

Frame Grabber manuafacturer

Adimec

Command syntax

(according to SFNC,):e.g.

Camera. Gain= 150

Interprets (SFNC)

syntax with description

file; identify associated

register address

Transmit register address

and value according to

CXP protocol

Change setting; write

value to register

Содержание CoaXPress

Страница 1: ...Operating and user manual QUARTZ series CoaXPress ...

Страница 2: ...OPERATING AND USER MANUAL QUARTZ series CXP 2 ...

Страница 3: ...dimec s solutions add crucial competitive value to our customers high end systems and their applications as they yield brilliant results to the users of those systems The Netherlands based holding company has business offices in Europe the United States Japan and Singapore For more detailed information about Adimec and our products you can visit our website www adimec com or you can contact your l...

Страница 4: ...camera control 20 6 CAMERA IDENTIFICATION AND CONTROL 23 6 1 Interface settings ICategory BootstrapCoaXPress 23 6 2 ICategory DeviceControl 24 6 3 ICategory ImageFormatControl 25 6 4 Image acquisition Icategory AcquisitionControl 28 6 5 Flashstrobe Commands Icategory CounterAndTimerControl 35 6 6 Gain and black level Icategory AnalogControl 36 6 7 Output remap Icategory LUTControl 36 6 8 User set ...

Страница 5: ... CXP 6 dual CXP 5 dual is sufficient for the highest speeds Q 2A340 Qr 2A340 Q 4A180 Qr 4A180 Max resolution 2048 x 1088 2048 x 2048 Max sustained speed at full resolution 337 fps CXP 5 dual 180 fps CXP 5 dual About this manual 1 2 This manual provides the necessary information for setting up operating and troubleshooting the camera We strongly recommend reading this manual before you unpack or op...

Страница 6: ...sponsible for incidental or consequential damages in connection with the furnishing performance or use of this material Layout composing and editorial staff Adimec Advanced Image Systems B V Illustrations Adimec Advanced Image Systems B V All rights reserved No part of this document may be reproduced stored in a database or retrieval system or published in any other form or way electronically mech...

Страница 7: ...no lens is attached Remove the lens cap just before the lens is screwed on the camera It is advised to perform this operation in a clean room or clean bench Never touch the CMOS sensor surface The cover glass is easily damaged and the CMOS sensor can be damaged by ESD electrostatic discharge Cleaning of the CMOS sensor 2 2 2 Cleaning of a CMOS sensor is a rather difficult task Depending on the ape...

Страница 8: ...r due to loose particles and traces of oil or grease If this step does not result in an acceptable result continue with step 2 Remove the lensmount by unscrewing the 4 crosshead screws 2 that hold the lensmount see figure 2 1 Crosshead screws that hold the lensmount front view of the camera Figure 2 1 Clean the inner screw thread of the lensmount using Alcohol or Hexane and a Q tip 3 Clean the CMO...

Страница 9: ...2 23 EEC low voltage directive and the international standards Peripheral equipment 2 2 6 For safety use an external SELV qualified power supply Maximum current 1 A For safety peripheral equipment must either be double isolated or SELV qualified Mounting Mechanical 2 2 7 Connectors Take care during handling of the camera Connectors should not be damaged Prevent the entry of foreign objects or dirt...

Страница 10: ...OPERATING AND USER MANUAL QUARTZ series CXP 10 ...

Страница 11: ...ing to the CoaXPress standard The power actually drawn by the camera is listed below A single cable is sufficient to power the cam era Q 2A340 Qr 2A340 Q 4A180 Qr 4A180 10 W Power consumption 24 Volt Table 3 1 Video control and trigger 3 1 2 The CoaXPress interface is designed to transfer video from camera to frame grabber as well as control data triggering and power from the grabber to the camera...

Страница 12: ... O connector Table 3 2 Mating cable connector Hirose type HR10A 7P 4P 74 NOTE The delay from non conductive to conductive state of the phototransistor is less than 1 5 µs The delay from conductive to non conductive state of the phototransistor is less than 10 µs The recommended termination circuitry is drawn in Figure 3 2 A current of 2 5 mA is recommended for the Flash strobe output For the Trigg...

Страница 13: ...w pulse Device connected but no data transferred shown if acquisition is stopped Orange slow pulse Device connected waiting for trigger shown if acquisition is stopped and camera is in either control mode Green solid Device connected data being transferred i e blinks synchronously with data Red fast flash System error e g internal error Quick start 3 4 Mount a lens on the camera and adjust the iri...

Страница 14: ...AL QUARTZ series CXP 14 Factory default settings of the Quartz camera series Q 2A340 Qr 2A340 Q 4A180 Qr 4A180 Operation Mode Continuous Frame Rate 25 fps Output Resolution 10 bit Factory default interface settings Table 3 4 ...

Страница 15: ...and can increase the frame rate The defect pixel correction function can be enabled and disabled on demand Also defect pixels can be added to the list or removed by the user For functional testing of the camera and frame grabber chain a test pattern generator is available The test pattern generator can be enabled and disabled on demand Flat field correction allows for correction of fixed pattern n...

Страница 16: ...ation of this frame counter can be made visible as either overlaying the actual video data or added as an extra video line tag The video data is mapped to the packed for sending according to the CXP protocol The output resolution can be set to 8 bit or 10 bit by user command The output format can be set by user command The camera is equipped with a flash strobe output signal on the I O connector T...

Страница 17: ...aXPress is schematically shown in figure 5 1 Schematic view of communication between application and camera through SFNC GenAPI and CoaXPress Figure 5 1 In practice the camera is controlled as follows If a user would like to change a camera setting for example gain GenICam SFNC prescribes a standardized syntax currently only in C if IsAvailable Camera Gain Camera Gain 150 GenAPI can interpret such...

Страница 18: ...ype of the parameter This is mainly used in the frame grabbers GUI to assign a display type to the Parameter INTERFACE DISPLAY IInteger slider with value min max and increment IFloat slider with value min max and physical unit IString edit box showing a string IEnumeration drop down box ICommand command button IBoolean check box ICategory entry in a tree structuring the cameras features in the XML...

Страница 19: ...ameras G guru advanced features that might bring the cameras into a state where it will not work properly anymore if it is set incorrectly for the cameras current mode of operation The guru parameters mainly have use in debugging NOTE the guru level parameters are not described in this manual In case the user needs to control them please contact your local support In this manual for each setting a...

Страница 20: ...OPERATING AND USER MANUAL QUARTZ series CXP 20 ...

Страница 21: ...6 Interface configuration 6 1 2 The Q xAxxx CXP described in this manual can be operated with a single or a double link with the link bit rate configurable by LinkConfig Note that the camera always starts up in LinkConfigDefault The LinkConfig value looks like LinkXSpeedYYYY where X is the number of links 1 or 2 and YYYY is the data rate per link in Mb s 1250 2500 3125 5000 or 6250 The camera has ...

Страница 22: ...IString R B Camera issue DeviceFirmwareVersion IString R B x xx y yy z zz x xx is micro controller firmware version y yy is processing FPGA firmware ver sion z zz is interface FPGA firmware ver sion DeviceID IString R E Serial Number DeviceUserID IString RW B User programmable device identifier Camera diagnose 6 2 2 For diagnose purposes the camera tempeature can be read out With the function Indi...

Страница 23: ...rder of changing them Consider the following example A Q 4A180 is set to a centered ROI as follows Width 1024 Heigth 1024 OffsetX 512 OffsetY 512 If one now wishes to change back to full resolution first the OffsetX and OffsetY and next the Width and Height are to be changed If the Width and Height are are changed first they will be truncated to match the Offsets of 512 The rate at which the camer...

Страница 24: ...oaXPress interface does not require additional configuration on the frame grabber side The frame grabber automatically detects the pixel format in order to be able to grab images correctly The camera is configurable in 8 or 10 bit pixel data for both the monochrome and the color version In the color cameras the bayer phase is PARAMETER NAME INTERFACE ACCESS VISIBILITY RANGE DEFAULT PixelFormat IEn...

Страница 25: ...appearance of the test pattern PARAMETER NAME INTERFACE ACCESS VISIBILITY RANGE DEFAULT TestImageSelector IEnumera tion R W B 1 Off 2 Standard Adimec testpattern 3 Crosshair overlay 4 Uniform Off TestImageLevel IInteger R W B 0 to 1023 512 Standard Adimec test pattern I Figure 6 1 The Standard Adimec test pattern consists of various grey bars in the center and a boundary pattern near the edge of t...

Страница 26: ...ensor acquisition frame rate may exceed the interface transmission frame rate During this time the FIFO memory fills up The memory size is 2 31 bit This corresponds to a total storage capacity of approximately 214 Mega pixel memory storage of pixels is always in 10bit The memory allows for advanced processing such as on camera averaging section 6 3 4 The camera can be operated in a timed continuou...

Страница 27: ...n a sustained situation where the frame rate is constant the buffer cannot not fill up as it would eventually overflow Therefore a sustained situation can only exist if the interface can keep up with the sensor acquisition taking data reduction by averaging or binning into account From the equations in sections 6 4 1 and 6 4 2 the configuration of Region of Interest Binning Averaging and various i...

Страница 28: ... FPS MINIMUM CXP CONFIG 4 MP 8 bit 2048 x 2048 180 CXP 5 Dual 10 bit 180 CXP 5 Dual 2 Mp 8 bit 2048 x 1088 338 CXP 5 Dual 10 bit 338 CXP 5 Dual 1 Mp 8 bit 1024 x 1024 359 CXP 5 single 10 bit 359 CXP 5 single VGA 8 bit 640 x 480 759 CXP 2 single 10 bit 759 CXP 3 single Maximum frame rates and required interface configurations for various resolutions Table 6 3 ...

Страница 29: ...natively upon receiving a trigger There is no specific command to enable the burst mode The camera automatically ends up in burst mode whenever the acquisition rate exceeds the maximum rate allowed by the interface The memory will fill up from then until it cannot anymore From then the burst will have to be terminated In this camera there is always an interface configuration available that can kee...

Страница 30: ...he end of the burst the next burst may start when the buffer memory is emptied again This takes 204 453 fps 0 45 seconds In short at 2048 x 512 10bit and CXP 6 single the camera can capture a burst of 567 images at 707 fps This takes 0 80 seconds after which 0 45 seconds is needed to empty the buffer again and the next burst may start Explanation of the available exposure modes 6 4 5 Timed mode co...

Страница 31: ...arts acquisition with the setting change in between Hence the user does not need to bother about stopping and starting acquisition The transmission from non acquisition state to acquisition state is done by the AcquisitionStart command and vice versa by the AcquisitionStop command After camera start up image acquisition is always to be started with a AcquisitionStart PARAMETER NAME INTERFACE ACCES...

Страница 32: ...er if there is additional latency at the framegrabber side See section 3 2 for more details on the termination circuit Latency Accuracy of the various triggers Table 6 4 To be able to handle glitches on possible heavily disturbed external trigger signals a deglitch circuit can be activated This deglitch circuit will prevent short glitches to be interpreted as trigger signals The sensitivity of the...

Страница 33: ... Note that the flash strobe response does have some delay as indicated in section 3 2 When set to Programmed the flash strobe duration is programmable and it can 2 be delayed with respect to the start of exposure The duration and delay are programmable with FlashStrobeDurationRaw and FlashStrobeDelayRaw respectively Note that the flash strobe response does have some additional delay by itself as i...

Страница 34: ...lack level is equal to BlackLevelRaw 4 When changing the gain in a color camera fist the gain to be adjusted needs to be selected Example change red channel gain to 1 5x Write value Red to register GainSelector 1 Write value 150 to register GainRaw 2 PARAMETER NAME INTERFACE ACCESS VISIBILITY RANGE DEFAULT GainSelector IEnumera tion R W B All Red color only Green color only Blue color only All Gai...

Страница 35: ...Selector IEnumera tion R W B Default UserSet1 UserSet1 UserSetLoad ICommand W B UserSetSave ICommand W B Built In Test ICategory Adimec 6 9 A built In Test BIT function in the camera verifies functions and signals critical errors when they arise Some tests are run at camera start up and others are continuously run The build in test result is readable If no failure is detected it returns value 0 Ea...

Страница 36: ...eras Figure 6 5 Find below the list of all commands related to the defect pixel correction In the next subsections they are explained in more detail PARAMETER NAME INTERFACE ACCESS VISIBILITY RANGE DEFAULT DefectPixelTotal IInteger R E DefectPixelSelect IInteger R W E 1 to DefectPixelTotal 1 DefectPixelReadX IInteger R E 1 to SensorWidth DefectPixelReadY IInteger R E 1 to SensorHeight DefectPixelW...

Страница 37: ...tPixelRemove command Once the combination DefectPixelWriteX and DefectPixelWriteY is not in the list the DefectPixelRemove command is ignored The entire defect pixel list can be erased with the DefectPixelClearAll command At all times it is possible to restore the factory defect pixel list with the DefectPixelFactoryRestore command Defect pixels that have been added to the list in a later stage ar...

Страница 38: ... LocalGainCorrection GlobalGainCorrection LocalGain Correction CalibrationFlatFieldAdjust Mode enumeration RW E NoAdjust AutoLevelAdjust AutoLevel Adjust CalibrationFlatFieldExposure SetPoint IInteger RW E 50 to 1023 700 CalibrationFlatFieldStatus enumeration RO E Done FullDarkFieldOffsetCali brationPending IncrementallDarkField OffsetCalibrationPend ing GainCalibrationPend ing LoadOrSaveCalibra t...

Страница 39: ...atFieldSetSave command WO E Enable disable flat field corrections 6 11 1 The offset correction is enabled with the DarkFieldCorrectionEnable command The gain correction is enabled with the BrightFieldCorrectionEnable command Management of correction sets 6 11 2 The 4 gain correction sets are stored in non volatile data flashes as well as in RAM The set can be selected by a software command To sele...

Страница 40: ...dExposureAdjustMode WRITE CalibrationFlatFieldExposureSetPoint GainCalibrationSetx x 1 2 3 4 AutoLevelAdjust NoAdjust 50 1023 READ CalibrationFlatFieldErrorResult Done CalibrationPending LocalGainCorrection GlobalGainCorrection ACTION GainCalibraton in Control Mode ONLY Send 64 acquisition triggers WRITE CalibrationFlatFieldLoadSaveSetSelector NoError EXECUTE CalibrationFlatFieldSetSave OffsetRefe...

Страница 41: ...obalGainCorrection the complete image is flat fielded including both local pixel to pixel variations and global shading originating from optics and illumination CalibrationFlatFieldExposureMode When set to AutoLevelAdjust during gain calibration an auto exposure control loop in the camera will set the integration time to meet an average level set by CalibrationFlatFieldExposureSetPoint This only w...

Страница 42: ...nsmission RequestModeTriggeredAll All images are released from buffer memory directly or upon receiving a software trigger BurstSoftRequest command RequestModeTriggeredProgrammableAmount a preset number of images are released from buffer memory upon receiving a software trigger BurstSoftRequest command The number is configurable with the BurstRequestSize parameter At any time the amount of frames ...

Страница 43: ...response Figure 6 7 Basically the multislope response serves as a white compression still enabling contrast in parts that else would be saturated For high exposures this ensures contrast in bright part of the scene that would otherwise saturate An example is in figure 6 8 Image of fluorescent light with normal operation left and multislope right Clearly the multi slope allows for contrast in Figur...

Страница 44: ...ffectively temporarily limit the pixel capacity Eventually after the total exposure time this prevents the pixel from saturating The darker pixel is not influenced by this multiple slope and will have a normal response The pixel under bright illumination in figure 6 9 shows parts horizontal lines where the charge is constant Basically this is intermediate pixel saturation The saturation comes with...

Страница 45: ... selecting them with the MultiSlopeNodeSelector MultiSlopeLevel and MultiSlopeTime are read and written for the selected node PARAMETER NAME INTERFACE ACCESS VISIBILITY RANGE DEFAULT MultiSlopeNumberOfSlopes IInteger R W E 1 to 3 1 MultiSlopeNodeSelector IInteger R W E 1 2 1 MultiSlopeLevel MultiSlopeN odeSelector IInteger R W E 1 to 100 50 node 1 70 node 2 MultiSlopeTime MultiSlopeNo deSelector I...

Отзывы: