background image

Piranhs HS-xx Detailed Getting Started Guide 

 

DALSA Corp. 

 

 

03-32-10147-01 

Part 1: Creating Framegrabber Configuration 

Files 

In total, you will need at least two framegrabber files: one for Area Mode and 
one for TDI Mode. Although, your final goal will be to image in TDI Mode, you 
will use Area Mode for aligning and focusing the camera to your object. In order 
to create your framegrabber files, you must determine some preliminary camera 
operating conditions such as number of taps, bit depth, line rate, etc. The 
following steps will help you to determine these required operating conditions 
and set up your framegrabber configuration files. 
1.

 

Determine the line rate required by your application. 

Line rate = [transport speed inches per second] x [dots per inch] 

Record the required line rate _______________ 

2.

 

Record the minimum throughput needed in your application 

Minimum Throughput = Number of horizontal pixels in sensor x Line rate 

Record the minimum throughput _______________ 

3.

 

Referring to the 

clm

 command in the camera user’s manual, determine the 

most compatible Camera Link Mode matching your desired throughput and 
line rate value, bit depth, number of taps, and Camera Link configuration.  

Figure 2: How to Read the Camera Link Mode Table 

 

Camera Link Mode Configuration (Controlled by 

clm command)

 

Readout Direction(Controlled by 

smm

 command)

 

Pixel Rate 
Configuration 
(Controlled by sot

 

command)

 

Command

 

Camera Link 

Configuration

 

Camera Link Taps

 

Bit 
Depth

 

smm 0 increment =1

 

smm 1 increment = -1

 

 

clm 2

 

Base

 

2 Camera  Link taps 
where:

 

1 =  CCD taps 1 +2

 

2 =  CCD taps 3+4

 

8

 

smm

 

0

 

=CL tap 1

 

(1-2048)

 

             

CL tap 2

 

(2049-4096)

  

 

smm 1

 = CL tap 1

 

(4096-2049)

 

                

CL tap 2

 

(2048-1)

 

sot 160

 = 80 MHz 

strobe

 

(max line rate 
36kHz)

 

sot 80

 = 40 MHz 

strobe

 

(Max line rate 
18kHz)

 

 

Find the rows in the table
with a line rate greater than
or equal to desired line rate
recorded in step 1.

From the rows determined in part A,
find the 

 values in the table

with a throughput greater than your 
required throughput recorded in step 2.

sot

From the rows determined by
part B, find the Camera Link modes 
with your desired bit depth.

From the remaining rows determined
in part C, select an acceptable Camera Link
configuration. If none of the remaining
configurations are acceptable for your system,
you will have to reduce your bit depth
or line rate.

 

Record the 

clm

 value from the table.  

clm

 ___________ 

Record the 

sot

 value from the table.  

sot

 ____________ 

The 

clm

 command is described 

in the Configuring Data Readout 
section of chapter 3 of the camera 
user’s manual.

 

Summary of Contents for Piranha HS Series

Page 1: ...Piranha HS xx Detailed Getting Started Guide and Worksheet January 2005 03 32 10147 01...

Page 2: ...pan All DALSA products are manufactured using the latest state of the art equipment to ensure product reliability For further information not included in this manual or for information on DALSA s exte...

Page 3: ...ation A light source preferably with intensity control The lens that you intend to use for your application attached to the camera Terminal program or framegrabber equivalent such as Windows HyperTerm...

Page 4: ...er of taps and Camera Link configuration Figure 2 How to Read the Camera Link Mode Table Camera Link Mode Configuration Controlled by clm command Readout Direction Controlled by smm command Pixel Rate...

Page 5: ...ases it is best to select 96 stages stg 96 for optical alignment It may be necessary to reduce the number of stages if the field of view is less than 96 rows and the edges are highly reflective Highly...

Page 6: ...com port The camera doesn t echo characters so local echoing should be turned on 3 Confirm serial communication between the camera and the framegrabber by pressing the ENTER key If the camera does no...

Page 7: ...put gain or system gain to unity for all taps ssg 0 4096 OK Select a ramp input into the video chain svm 1 OK Part 3 Configure the Exposure Mode and User Controls Select the exposure mode Exposure mod...

Page 8: ...2 1 2 0 1 1 4 4 0 1 9 1 8 2 1 5 7 2 3 9 6 2 6 3 5 2 8 7 4 3 3 5 2 3 5 9 1 Framegrabber Configuration Camera Mirror Mode Direction Configuration matches smm 1 readout smm 0 Area Mode Forward Internal...

Page 9: ...3 0 5 6 3 3 1 2 3 5 6 8 3 8 2 4 4 0 8 0 1 0 0 8 Framegrabber Configuration Camera Mirror Mode Direction Configuration matches smm 0 readout smm 0 Area Mode Test Pattern 2 tdi 0 scd 0 svm 2 If your fr...

Page 10: ...rate in Hz or reduce the light If you using the maximum gain and the image is still dark you will need to add more light If you have a highly reflective aperture where the blacks are washed out and t...

Page 11: ...s not parallel to inspection surface and image is not uniformly in focus depth of field issues 7 Enter the wus command to save these settings for future use 8 If you plan to operate the camera in the...

Page 12: ...Open the TDI Mode framegrabber configuration file 3 Set the Camera Link mode to the configuration entered in Part 1 step 6 using the command clm desired camera link mode The camera should respond with...

Page 13: ...value from step 1 of Part 1 OK 8 Enter svm 1 to observe the camera s test pattern Grab an image with your framegrabber The test pattern should look like one of the figures below Note The following dia...

Page 14: ...Framegrabber Configuration Camera Mirror Mode Direction Configuration matches smm 0 readout smm 0 TDI Mode Reverse Internal Direction Test Pattern 1 tdi 1 scd 1 svm 1 If you see this test pattern you...

Page 15: ...ill need to reconstruct the pixel readout definitions in your framegrabber configuration file Repeat Part 1 Configuration matches smm 0 readout smm 1 scd 0 or 1 10 Return to internal forward direction...

Page 16: ...hanged 21 Enter the command wfc i 1 to save the FPN coefficients 22 If you performed FPN correction the output video should be near zero and you can skip to the next step If not the value should be ne...

Page 17: ...the camera s CCD shift direction using the scd direction command Conclusion This completes the procedure and your camera should now be imaging properly If you still need to improve your TDI image you...

Page 18: ...Piranhs HS xx Detailed Getting Started Guide 18 DALSA Corp 03 32 10147 01 strobed LED illumination with high sensitivity line scan cameras refer to DALSA document 03 32 00540...

Reviews: