LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass,...

16
LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Transcript of LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass,...

Page 1: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

LCLS Beamline Control and Data Acquisition

Bob Sass, Erik Rogind, Bob Dalesio4/24/2007

Page 2: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Linac Coherent Light Source

Project Description

Near Hall

Far Hall

FEL Center

Page 3: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

LCLS Construction

BTH

UNDULATOR HALL

ELECTRON BEAM DUMP & FEE

NEAR EXPERIMENTAL HALL AND CENTRAL LABS & OFFICE

X-RAY TRANSPORT & DIAGNOSTICS TUNNEL

FAR EXPERIMENTAL HALL

At grade in RSY

Cut & CoverLocation ofPep Ring Rd

Page 4: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

NEH PPS

Page 5: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Some Considerations

• Beam pulse rate 120 Hz• Beam length: ~200 fsecs• Pulse to pulse energy/position variation

10-20%• Each sample injected into the beam may

have a different orientation relative to the beam

• Each pulse destroys the sample

Page 6: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Control System Requirements• No 120 Hz control in experiment

– Slow Control to Attenuators– Slow Position / Power Supply control– Only 120 Hz beam triggers to sample source and detectors

• Send 120 Hz beam related data to Data Acq.• Save slow beam related data • Turn off beam before next beam pulse for machine protection (8

msec)• Disable data acquisition before next beam pulse to reduce the data

flow• Control ~200 motors, 35 power supplies, vacuum• 120 Hz Diagnostics include paddle steering, 8 GHz 10 bit digitizer, 1

mega-pixel cameras• 120 Hz diagnostics back to machine for control?

Page 7: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Proposed Control System Elements

• EPICS used for the experiment control• VME PowerPCs running RTEMS for most control• cPCI CPU for Acqiris Board (8 GHz, 10 bit)• Micro Research EVRs for timing (8 nsec resolution, < 20 psec jitter)• SCRAMNet for low latency data transport (< 1 msec)• In-house Machine Protection System (< 3 msec)• Hytec motor controllers for position controls (register based)• AB Control Logix PLC for vacuum control• Ethernet power supply control• SynApps for scans and device control – APS• Beamline XML display generation – Diamond• Image analysis – Jlab

肉包子打狗

Page 8: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Detector data

CPU

ScramNet

EVGIOC

EVG

Diag.I/O

Boards

Channel Access

LINAC Data to Experiment from machine control – SCRAM Net

CPU

ScramNet

EVR

CEModule

EVR

Experiment Control

Event Link Data Over Ethernet

ExpCntrlIOCc

Experiment Control Download

FrontEnd SystemDetector

TimingData

&Triggers

CPU

ScramNet

EVR

Triggers

Beam Code + EPICS Time + MPS + Last Beam Parameters

MPS like - inhibit

MPS

CPU

EVR

CPU

EVR

Disable AcquisitionDisable Beam

IO

IO

IO

IO

Beamline Control IOCs

Page 9: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Data Acquisition Requirements• Save multiple detector data at the beam rate including 1 mega pixel image and vector

data• 1st year: save data @ 10-30 Hz • 2nd year save data @ 120 Hz --- 250 Mbytes per second (>2 terabytes per day)• Future: save 10 mega pixel Images @ 120 Hz• Save Photon (and electron) Beam Related Data with instrument data – max 200

parameters• All data must be time stamped for event correlation• Provide Images to operators at 5 Hz• Support operator configuration of detector configuration / experiment parameters• Analysis and compression of data at beam rate?• Use Channel Archiver Data Format for ease of correlation?• How is meta data formatted for storage with image?• Hardware:

– Custom made CCDs– Acqiris 8 GHz, 10 bit digitizer– 120 Hz commercial cameras?

• Limits of channel archiver / channel access? Is it a viable backup for the first year?

Page 10: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Data Acquisition Elements

• CE Board developed at SLAC for data acquisition

• EPICS running under RTEMS from on-board processor

• Only fast serial and Gbit Ethernet interfaces• No on-board EVR• All timing data and beam related data over

dedicated Ethernet• FPGAs available for beam rate analysis

Page 11: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

XES Detail – Data Acquisition1. Channel Access (Ethernet) 3. EVR (Fiber)2. Beam Line 120 Hz Data

6. DAQ Data to SCCS5. SLAC WAN (Ethernet)4. MPS (Reflective Memory Fiber)

XES HutchXES

privatesubnet

XES Controller

Channel AccessGateway

Visual Data Monitor

EELOG

Beam LineProcessor

XESData

Cache

Non-RTOS

SBC RTOS

PC

Non-RTOSPC

EVR VME

Beam Line Data PMC

1 Gb E

1 Gb E

1 GbE

2 Detector Types

Spectrometer

CCD PixelDetector

2 DAQ Types

SBC DAQ

CE Module DAQ

PPC

10 Gb Enet

Experiment Chamber

cPCI ADC RTOS

RTOS

Front End Board

TOF/Momentum Instrument

EPICS Config PVs

Fast Serial

1 Gb E

1 Gb E

1 Gb E

D. ADC Control & Digitized DataB. Distributed EVR Hardware Triggers C. Beam Line & Timestamp Data (dedicated Enet)

E. Detector Control & Digitized Data

A. EPICS & Local Control (Hutch Subnet)

1

2

3

5

6

4

A

F

B

C

MPS PMCFPGA

1 Gb E

EPICS Config PVs

Spectrometer Monitor

CCD Monitor

1 Gb E

D

E

G

G 1 Gb

E1 G

bE

G. Visual Monitor DataF. DAQ Data to Cache

Page 12: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Data Retrieval Requirements

• Web access to data• Protected access to private data• Correlate machine diagnostics with

experimental data• Provide analysis tools• Retain data for some period?• Retrieval rates?• Data Rates?

Page 13: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

LCLS Operations

SCCS

Experiment Operations

SlowArchiveConfigs

Archive Data Management System Overview1. EPICS Channel Access

ArchiveConfiguration

Interface

Anywhere on Channel Access Networks

Slow ArchiveEngines

XES HutchArchiveConfigurations

Interface DataAcquisitionModule(s)

Modeling &Other Databases

Global ArchiveDictionary

XES DAQData Cache

Global ArchiveConfigurationManagement 6. Slow Archive Configuration

5. DAQ Archive Configuration

9. Global Archive Dictionary Management

3. Slow Archive Data

2. DAQ Archive Data

8. Offsite/Cache Archive Transfer

SlowArchives

FastArchives

DAQArchives

FastArchiveConfig

DAQArchiveConfigs

Anywhere on SCRAMNet Network

Fast ArchiveEngine 4. Fast Archive Data

7. Fast Archive Configuration

1

2

3 4

5

6

7

8

9

Page 14: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Data Volume Makes DAQ Archive More Complicated

C E SBC

10 GigE 1 GigE

Ethernet Network Switch

Local Cache Farm

Ethernet Network Switch

Links to Computer Center 10 GigE

Page 15: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Archive Retrieval/Analysis System Overview

Anywhere

SCCS SlowArchivesServer

LCLS Analysis /Viewing

DAQArchivesServer

Modeling &Other Databases

Global ArchiveDictionaries

LCLS DataRetrieval

RelationalDatabase

Server

FastArchiveServer

2. Data Retrieval Request

1. Global Archive Dictionary Read

6. Slow Archive Data

7. Fast Archive Data

8. DAQ Archive Data

5. Database Data

Tape Data

2

SlowArchives

FastArchives

DAQArchives

Data RetrievalTemporary Cache

1

6 7 8

5

4. Tape Data Request

4

3. Locate server & storage

3

9. Results

9

Page 16: LCLS Beamline Control and Data Acquisition · LCLS Beamline Control and Data Acquisition Bob Sass, Erik Rogind, Bob Dalesio 4/24/2007

Conclusions• Data acquisition requires real-time data from the experiment (120

Hz) for offline analysis• Current requirements disable data taking when beam is not coming

our way or the experimental beamline is not ready for data• May use diagnostic data to further reduce the data rate from 250

Mbytes per second• May need to get experimental data to the accelerator for optimizing

the beam control• There is a very close relationship between machine control and

experiment control.• The better the beam quality – the more data we have to store.• We have an alarming amount of data to store.