Members of the SLS Beam Dynamics Group J. Chrin, M. Mu noz, A. - - PowerPoint PPT Presentation

members of the sls beam dynamics group
SMART_READER_LITE
LIVE PREVIEW

Members of the SLS Beam Dynamics Group J. Chrin, M. Mu noz, A. - - PowerPoint PPT Presentation

CORBA based Beam Dynamics Applications at the SLS Members of the SLS Beam Dynamics Group J. Chrin, M. Mu noz, A. Streun, M. B oge JLab 11/02 Michael B oge 1 CORBA based Beam Dynamics Applications at the SLS Overview


slide-1
SLIDE 1

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Members of the SLS Beam Dynamics Group

  • J. Chrin, M. Mu˜

noz, A. Streun, M. B¨

  • ge

Michael B¨

  • ge

1

slide-2
SLIDE 2

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Overview

  • Architectural Model for CORBA based Beam Dynamics Applications
  • CORBA based Servers/Management
  • “CORBA/Model Server” Hardware/Integration into the Control System
  • CORBA based Clients

– Orbit Display – Orbit Correction – Local Bumps – Tune Measurement – Lifetime – Phase Space Display – Transferline Twiss Parameters

  • Slow Orbit Feedback

Michael B¨

  • ge

2

slide-3
SLIDE 3

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Overview (cont.)

  • Slow Orbit Correction Demo ;-)
  • co
  • co
  • co oco

Michael B¨

  • ge

3

slide-4
SLIDE 4

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Introduction

  • SLS (Swiss Light Source) 2.4 GeV electron storage @ the Paul Scherrer

Institute, Switzerland

  • Full energy injector booster synchrotron
  • 100 MeV linac
  • Operation since August 2001 ( 70% of beam time for users)

Large number of high-level beam dynamics applications, generic tasks:

  • access to an accelerator physics package
  • accelerator device control
  • database access and management
  • logging of messages and alarms

Michael B¨

  • ge

4

slide-5
SLIDE 5

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

SLS Layout

  • Pre-Injector Linac

– 100 MeV

  • Booster Synchrotron

– 100 MeV to 2.7 GeV @ 3 Hz – ǫx = 9 nm rad

  • Storage Ring

– 2.4 (2.7) GeV, 400 mA – ǫx = 5 nm rad

  • Initial Four Beamlines:

MS – 4S, PX – 6S, SIS – 9L, SIM – 11M

Michael B¨

  • ge

5

slide-6
SLIDE 6

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

“Machine Model” and “Real Machine”

Real Machine Machine Model Real Machine Machine Model Time

  • Improve the “Machine Model” at the same time as the “Real Machine”

Michael B¨

  • ge

6

slide-7
SLIDE 7

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

The CORBA Framework

  • CORBA (Common Object Request Broker Architecture):

“In the evolution of object-oriented distributed systems, CORBA is a standard that provides a mechanism for defining interfaces between distributed components.” – Platform independence – Language independence (Interface Definition Language (IDL))

  • ORB (Object Request Broker):

– The ORB MICO CORBA 2.3 implementation GNU public license – Implementation/Interface Repository facilities – Naming Service and Event Service of the ORB – IDL to C++ mapping through MICO – Tcl mapping through Combat/MICO – Java mapping through Java ORBacus 4

Michael B¨

  • ge

7

slide-8
SLIDE 8

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Architectural Model for Beam Dynamics Applications

Applications are developed within a CORBA (Common Object Request Broker Architecture) framework:

Tcl/Tk Client Java Client

Push Supplier

poll

monitor get, set access

Analysis Server Database Server Event Channel

Push Consumer Data Analysis

TRACY Server

Oracle Database VME Hardware

CDEV Server

All Processes

C++ Client

Push Consumer Push Consumer

push push push

channel

Client Consoles

Net8 Net8

push Message Server

"Model Server"

Michael B¨

  • ge

8

slide-9
SLIDE 9

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

CORBA based Servers

  • CDEV Server: provides CORBA interface to the narrow CDEV API.
  • EZCA Server: provides CORBA interface to the narrow EZCA API.

Hardware is accessed exclusively through CDEV and EZCA.

  • Analysis Server: manipulates/recalibrates data retrieved by the CDEV

Server (example: quadrupole strength <-> current). The Analysis Server can provide monitored data through “EventChannel”s utilizing the CORBA Event Service. Clients can subscribe to these channels and get data automatically pushed to them.

  • TRACY Server: provides CORBA interface to selected routines of the

TRACY Beam Dynamics library (example: routines for tracking, orbit correction).

Michael B¨

  • ge

9

slide-10
SLIDE 10

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

CORBA based Servers (cont.)

  • Message Server: provides CORBA interface to the UNIX system logging

service which allows the logging of messages with different priorities to various facilities. Messages are written to log files and to the ORACLE database.

  • Database Server: provides CORBA interface to the ORACLE database (the

OCI8 API). The OTL (Oracle Template Library) is used as a wrapper around the OCI8 API. The Database Server completes the suite of essential services!

Michael B¨

  • ge

10

slide-11
SLIDE 11

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Database Server - The Performance

For retrieval of BLOBS from the Oracle Database C++: 400 Kb/sec JDBC: 70 Kb/sec CORBA:140 Kb/sec Interface Library OTL: Oracle Template OCI: Oracle Call

Michael B¨

  • ge

11

slide-12
SLIDE 12

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

CDEV Server - The Portable Object Adapter

Naming Service

client server ORB daemon STEP 2 STEP 1 servant ORB daemon imr activate forward activate server

no yes

new location activated? locate server POA Mediator Naming Service activate server Implementation Repository Implementation Repository POA Mediator ORB daemon host client host invoke servant server host invoke initial request

IORs exchange

IOR POA Med

exchange IORs

IOR server IOR POA Med IOR server IOR POA Med

Michael B¨

  • ge

12

slide-13
SLIDE 13

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Server Management

Message logger

Michael B¨

  • ge

13

slide-14
SLIDE 14

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Server Management (cont.)

226: run number 26 in run group 2 name service manager Message logger

Michael B¨

  • ge

14

slide-15
SLIDE 15

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

“CORBA/Model Server”: Hardware

MICONS = slsbd4 SMP system: 1 Gb Memory 2 x PIII 500Mhz SMP system: 2 x PIII 600Mhz 1 Gb Memory MICONS = slsbd2 default system mirror system UPS SMP system: 1 Gb Memory 2 x PIII 1Ghz CORBA Server #1 TRACY model, feedback CORBA Server #2 Model Server #1

Michael B¨

  • ge

15

slide-16
SLIDE 16

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

“CORBA/Model Server”: Integration Control System

PSS060 File#Server

ALIRF- VME-MOD ALIVA- VME ALIMA- VME-B ALBVA- VME ALIDI- VME-OP ALIDI- VME-CUR ALIRF- VME-AS ALIRF- VME-GUN VAX Console Knob#Box Console

PC2040

Console/Boot

PC2074

Console/Boot

switch switch switch switch switch switch GPIB GPIB GPIB

PSI#Network SLS#Network PSI#Network

LinBootIOC Console/Boot

PC2573 SLSOP PC2766

(Windows#NT)

ALIMA- VME-A

SLS Linac Network date: 28. Mar ch 00

timing

ALIRF- VME-A

PC2292

time#svr,#license svr,#sw#dist.

PC2829

file#server

PC2506 Archiver

Linac#Console Control#Room

PC2764

development

PC2822

development

PC2823

development

PC2757

development

PC2765

development

PC2654 Console PC2759 Console PC2760 Console PC2569 Console

CDEV Server Analysis Server TRACY Server Message Server Database Server GUIs IIOP

SLSBD2 Model Server

  • T. Schilcher

Model Server Consoles

Michael B¨

  • ge

16

slide-17
SLIDE 17

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Orbit Display: Schematics of Data Flow

DI-12 DI-11 DI-10 DI-9 DI-8 DI-7 DI-6 DI-5 DI-4 DI-3 DI-2 DI-1A DI-1B

channel access

Client Console BOOSTER LINAC Tcl/Tk Client Java Client Cdev Server

waveform index waveform 4096 values subarray 64 values Shared Memory does peak search calculates average,

Push Consumer Push Consumer

Shared Memory

1B 1A 4 3 2 5 8 9

slsbd4: "Model Server"

12 10 7 11 6

Event Channel

Data Analysis Push Supplier Analysis Server push() push() push() poll()

Michael B¨

  • ge

17

slide-18
SLIDE 18

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Orbit Display: Visualization from Tcl/Tk/CORBA Client

Model tune Mean and rms value Horizontal orbit versus phase Vertical orbit versus phase

Michael B¨

  • ge

18

slide-19
SLIDE 19

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Orbit Correction: Tcl/Tk/CORBA Client

  • co main panel

Load/Save snap shots Message logger

Info/Debug messages Error Messages

Orbit Correction Bumps

Michael B¨

  • ge

19

slide-20
SLIDE 20

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Orbit Correction: Correctors

Vertical correctors versus s Horizontal correctors versus s Mean and rms value Scaling factor for proposed correction Number of slices

Michael B¨

  • ge

20

slide-21
SLIDE 21

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Orbit Correction: Optical Functions

Horizontal beta function @ corrector locations Horizontal dispersion @ bpm locations

Michael B¨

  • ge

21

slide-22
SLIDE 22

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Local Bumps: Local Bumps

Enable/ Disable panel Bump chooser

Michael B¨

  • ge

22

slide-23
SLIDE 23

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Local Bumps: Monitor Calibration in the Booster

Measurement based on sum signal from the model. The "bump height" is calculated Interlaced 3bumps (bump number 0-53) are scanned til the sum signal is zero (colour code)

abodi_bpm_1s

  • f BPM "abodi_bpm_1s"

Michael B¨

  • ge

23

slide-24
SLIDE 24

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Tune Measurement: Java/CORBA Client

Chromaticity measurement Horizontal BPM turn by turn data 4096 turns Vertical BPM turn by turn data 4096 turns FFT update rate 2Hz after correction with skew quads Design tune nux=20.38, nuy=8.16 Tune data are written to EPICS soft channels Closest tune approach dQ=0.001

Michael B¨

  • ge

24

slide-25
SLIDE 25

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Lifetime: Java/CORBA Client

9 ms Lifetime from dPCT Slow mode averaging over 1.5 min Fast mode averaging over 10 sec 23.5 h lifetime @ 145 mA 8 h @ design current of 400 mA (with 3HC)

Michael B¨

  • ge

25

slide-26
SLIDE 26

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Phase Space Display: Tcl/Tk/C++/CORBA Client

CPU intensive client part implemented

  • bject

in C++ and linked @ runtime as shared X and Y’ are calculated from the readings of two adjacent bpms based on model data XX’ plot YY’ plot 4080 single turn bpm readings update rate 3 Hz selector BPM

Michael B¨

  • ge

26

slide-27
SLIDE 27

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Transferline Twiss Parameters: Tcl/Tk/CORBA Client

Michael B¨

  • ge

27

slide-28
SLIDE 28

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Slow Orbit Feedback: Schematics

Client Feedback

  • co

BPM Server TRACY Server Client

Event Event @ 0.5Hz @ 2Hz Poll

FB Log Client Server CDEV

Event Event

Console CORBA Server Model Server

Michael B¨

  • ge

28

slide-29
SLIDE 29

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Slow Orbit Feedback: Results

320 mA top−up x RMS orbit y RMS orbit x RMS kick y RMS kick y difference orbit dP/P ~ 1.e−5 2 Hz orbit sampling rate Average over 3 samples Alternating x/y correction 75% of estimated corrector strength applied

Michael B¨

  • ge

29

slide-30
SLIDE 30

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Slow Orbit Feedback: Results (cont.)

  • Sample run Aug, 13-16 2002: xrms, yrms ≈ 1 µm (see histograms)
  • RF frequency corrected by df whenever |df| exceeds 5 Hz

(dE/E ≈ 2 · 10−5) correction every ≈ 45 min (see “saw tooth”)

Michael B¨

  • ge

30

slide-31
SLIDE 31

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Slow Orbit Feedback: Results (cont.)

  • Outside air temperature and

RF frequency changes –>

  • X-BPM @ PX

≈ 9 m from ID U24: σx = 2.7 µm (drift: 2.3 µm) σy = 1.5 µm (drift: 1.7 µm)

Michael B¨

  • ge

31

slide-32
SLIDE 32

CORBA based Beam Dynamics Applications at the SLS

JLab 11/02

Summary

  • All applications needed for commissioning and operation provided
  • CORBA framework reliable and flexible
  • Accelerator Model well integrated into the Control System
  • New Applications profit from modularity of the architecture

(–> Slow/Fast Orbit Feedback)

Michael B¨

  • ge

32