a. homs, bliss day out – 15 jan 2007 ccd detectors: spying with the espia d. fernandez a. homs m....

27
A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

Upload: barrie-kelly

Post on 16-Jan-2016

213 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

CCD detectors:spying with the Espia

D. FernandezA. HomsM. Perez

C. Guilloud M. Papillon V. ReyV. A. Sole

Page 2: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Talk outline

•Espia Card

•FReLoN 2k/4M:

Software installation

Control GUI

•Camera link CCDs:

Dalsa Pantera 1M60

Sarnoff CAM512

Page 3: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Designed to interface the FReLoN 2k Requirements specified by ESRF Subcontracted to SECAD (Grenoble) 2 Gbps fiber optic link (> 100 m) PCI-X 64 bits / 66 MHz Bus master + Scatter Gather Camera serial line and state Interrupt driven Driver source code available!

Can write on 32-bit addresses (4 GB)

Espia card

Page 4: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

4 parallel readout channels No Mux – only one fiber optic! (!) Flexible RoI and binning Frame Transfer Mode 2048 x 1024 @ 16 fps 66 MB/s Automatic dark current compensation Kinetics mode

Mirror effect

FReLoN 2k

FReLoN 4M

Only one mode: 4 channels – Full Frame Mode

Page 5: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Transtec workstation: Standard SuSE 8.2 image for Frelon

• Driver: bliss_drivers + dep.

• Server: frelon_espia + bliss_dservers No resources – just define in DB

• GUI: Applications Analysis PyDis PyDis Plugins PluginFrelon Config: local frelon frelon_devices.py

• Spec: CCD ESRF PC CCD Dev ccd.mac + frelon2k.mac (not packaged

yet)

FReLoN 2k/4M software

•User guidesCCDFrelon 2k

Page 6: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

In the shell:

PyDis Menu Plugins Acquire

Starting the FReLoN GUI

Page 7: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Experience level: “Beginner” CCD info … more advanced

FReLoN GUI: Acquisition

Page 8: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Standard parameters: Readout mode + synoptics Exposure + nr of images Binning Trigger RoI mode

FReLoN GUI: Acquisition

Page 9: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Status + actions: Image size Readout time + frame rate Start / Stop / Reset Status + errors

FReLoN GUI: Acquisition

Page 10: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Advanced parameters: Shutter closing time Latency time Image flip

• RoI + Kinetics• Storage

FReLoN GUI: Acquisition

Page 11: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Serial commands to CCD• Diagnostics

• Not “seen” by the DS

FReLoN GUI: Console

Page 12: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• FReLoN 2k User’s Guide• Sequencer doc.

FReLoN GUI: Help

Page 13: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

• Connects to the Espia fiber optic• 2 x Camera Link connectors:• Base configuration• Serial line + Control signalsMultiplexed• Multiple pixel packing formatsAll we need not avail. yet

• General I/O TTL signals

Camera Link: FOCLA

Page 14: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Higher quantum efficiency Frame transfer mode 1024 x 1024 @ 60 fps 120 MB/s 512 x 512 @ 120 fps 1 x Camera Link [Base] Connector Compact! Image not reconstructed FOCLA does reconstruction

Dalsa Pantera 1M60

Page 15: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Dalsa setup

Fast online displayImage reconstruction

Page 16: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

High quantum efficiency Frame transfer mode 512 x 512 @ 300 fps 150 MB/s 512 x 128 @ 500 fps 2 x 8 ADCs – 12 bit 2 x Camera Link [Base]

Connectors Separate RS-232 serial lineRobust protocol

Sarnoff CAM512

Page 17: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Sarnoff setup

Camera Link

Fiber optic

RS-232

Page 18: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

The real setup

Page 19: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

The results

• 75 frames• 250 ms• 40x slowdown

No sound! B&W Flickering

Page 20: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

The making of

Page 21: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Special effects: rotation

Espia #1

Espia #2

Page 22: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Image reconstruction in kernel

Espia #1

Espia #2

Page 23: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Image reconstruction in library

1 0 3 2 5 4 7 6

0 1 2 3 4 5 6 7

FOCLA pixel packing:

Frame Post-Operation

Pixel swap operation:

Reconstructed frame:

• Per frame operation• Warranted only once in a multi-frame (big) buffer• Callback thread safe

• FOCLA pixel packing will be solved in future

Page 24: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

“Very High memory” support

Physical Memory

Low RAM0 MB

3.2 GBPCI

Very high RAM

800 MB

4 GB

5.8 GB

High RAM

32 bit

boundary

• Driver always has 32-bit aux. frames• If next target frame has 64-bit pages:

Program each Espia to write on aux frame

Frame end (all adapters finished) copy the aux. frame into target

Inform waiting threads• Adapters are not synchronous• Memory copy (666 MB/s) with IRQ

enabled

Implementation in driver

Page 25: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Data integrity

Espia #1

Espia #2

s = g·t·t 8 mm ½ 14 mm

Page 26: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Sarnoff summary

• Two Espia in parallel 150 MB/s• All frames in high memory intense memory copy• Frame post-operations:

Pixel swap Check NULL lines

• Hard disk write at max speed (4 disk in RAID 0)• Online visualisation active

Data OK!

Page 27: A. Homs, BLISS Day Out – 15 Jan 2007 CCD detectors: spying with the Espia D. Fernandez A. Homs M. Perez C. Guilloud M. Papillon V. Rey V. A. Sole

A. Homs, BLISS Day Out – 15 Jan 2007

Thank you!