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 • 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 JLab 11/02 Michael B¨ oge 2
CORBA based Beam Dynamics Applications at the SLS Overview (cont.) • Slow Orbit Correction Demo ;-) oco oco oco oco JLab 11/02 Michael B¨ oge 3
CORBA based Beam Dynamics Applications at the SLS 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 JLab 11/02 Michael B¨ oge 4
CORBA based Beam Dynamics Applications at the SLS 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 JLab 11/02 Michael B¨ oge 5
CORBA based Beam Dynamics Applications at the SLS “Machine Model” and “Real Machine” Machine Model Real Machine Time Real Machine Machine Model • Improve the “Machine Model” at the same time as the “Real Machine” JLab 11/02 Michael B¨ oge 6
CORBA based Beam Dynamics Applications at the SLS 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 JLab 11/02 Michael B¨ oge 7
CORBA based Beam Dynamics Applications at the SLS Architectural Model for Beam Dynamics Applications Applications are developed within a CORBA (Common Object Request Broker Architecture) framework: "Model Server" Client Consoles Oracle Database Message All Processes Server Net8 Tcl/Tk Client TRACY Net8 Server Push Consumer Database Server CDEV Server get, set push VME Hardware monitor channel Java Client access poll Event push Analysis Server Push Consumer Channel push Data Analysis push C++ Client Push Supplier Push Consumer JLab 11/02 Michael B¨ oge 8
CORBA based Beam Dynamics Applications at the SLS 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). JLab 11/02 Michael B¨ oge 9
CORBA based Beam Dynamics Applications at the SLS 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! JLab 11/02 Michael B¨ oge 10
CORBA based Beam Dynamics Applications at the SLS Database Server - The Performance C++: 400 Kb/sec CORBA:140 Kb/sec JDBC: 70 Kb/sec For retrieval of BLOBS from the Oracle Database OCI: Oracle Call Interface OTL: Oracle Template Library JLab 11/02 Michael B¨ oge 11
CORBA based Beam Dynamics Applications at the SLS CDEV Server - The Portable Object Adapter STEP 1 imr activate Implementation Repository IOR POA Med activate server exchange POA Mediator ORB daemon IORs Naming Service STEP 2 IOR server client invoke initial request IOR POA Med client host locate server server host ORB daemon host ORB daemon POA Mediator invoke servant forward Implementation Repository new location IOR server servant server activated? yes no activate server exchange IORs IOR POA Med Naming Service JLab 11/02 Michael B¨ oge 12
CORBA based Beam Dynamics Applications at the SLS Server Management Message logger JLab 11/02 Michael B¨ oge 13
CORBA based Beam Dynamics Applications at the SLS Server Management (cont.) name service manager 226: run number 26 in run group 2 Message logger JLab 11/02 Michael B¨ oge 14
CORBA based Beam Dynamics Applications at the SLS “CORBA/Model Server”: Hardware UPS Model Server #1 TRACY model, feedback SMP system: 2 x PIII 1Ghz 1 Gb Memory CORBA Server #2 MICONS = slsbd4 SMP system: default system 2 x PIII 600Mhz 1 Gb Memory CORBA Server #1 MICONS = slsbd2 SMP system: mirror system 2 x PIII 500Mhz 1 Gb Memory JLab 11/02 Michael B¨ oge 15
CORBA based Beam Dynamics Applications at the SLS “CORBA/Model Server”: Integration Control System SLS Linac Network T. Schilcher PSS060 date: 28. Mar ch 00 File#Server PSI#Network GUIs Control#Room PC2506 PC2292 PC2764 PC2822 PC2823 PC2757 PC2765 PC2654 PC2759 PC2760 PC2569 PC2829 development development development development time#svr,#license file#server development Console Console Console Console Archiver svr,#sw#dist. SLS#Network Consoles Linac#Console PSI#Network PC2573 LinBootIOC PC2766 Knob#Box VAX Model Server Console Console Console/Boot (Windows#NT) SLSOP IIOP switch CDEV Server Analysis Server TRACY Server PC2040 PC2074 SLSBD2 Console/Boot Console/Boot Model Server Message Server Database Server switch switch GPIB switch switch switch GPIB GPIB timing ALIRF- ALIMA- ALIRF- ALIRF- ALIRF- ALIVA- ALIMA- ALBVA- ALIDI- ALIDI- VME-GUN VME-MOD VME-AS VME-A VME-A VME VME-B VME VME-OP VME-CUR JLab 11/02 Michael B¨ oge 16
CORBA based Beam Dynamics Applications at the SLS Orbit Display: Schematics of Data Flow BOOSTER Cdev Server DI-1B LINAC waveform index DI-12 DI-1A waveform 4096 values slsbd4: "Model Server" DI-11 DI-2 1B 12 1A subarray 64 values 11 2 DI-10 DI-3 channel access calculates average, 10 3 does peak search Shared Memory Shared DI-9 9 DI-4 4 Memory poll() 8 5 DI-8 DI-5 Analysis Server 7 6 Data Analysis DI-7 DI-6 Push Supplier push() Event Channel Client Console push() push() Java Client Tcl/Tk Client Push Consumer Push Consumer JLab 11/02 Michael B¨ oge 17
CORBA based Beam Dynamics Applications at the SLS Orbit Display: Visualization from Tcl/Tk/CORBA Client Horizontal orbit versus phase Vertical orbit versus phase Mean and rms value Model tune JLab 11/02 Michael B¨ oge 18
CORBA based Beam Dynamics Applications at the SLS Orbit Correction: Tcl/Tk/CORBA Client Load/Save snap shots oco main panel Orbit Correction Info/Debug messages Bumps Message logger Error Messages JLab 11/02 Michael B¨ oge 19
CORBA based Beam Dynamics Applications at the SLS Orbit Correction: Correctors Horizontal correctors versus s Vertical correctors versus s Number of slices Scaling factor for proposed correction Mean and rms value JLab 11/02 Michael B¨ oge 20
CORBA based Beam Dynamics Applications at the SLS Orbit Correction: Optical Functions Horizontal beta function @ corrector locations Horizontal dispersion @ bpm locations JLab 11/02 Michael B¨ oge 21
CORBA based Beam Dynamics Applications at the SLS Local Bumps: Local Bumps Bump chooser Enable/ Disable panel JLab 11/02 Michael B¨ oge 22
CORBA based Beam Dynamics Applications at the SLS Local Bumps: Monitor Calibration in the Booster Measurement based on sum signal of BPM "abodi_bpm_1s" Interlaced 3bumps (bump number 0-53) are scanned til the sum signal is zero (colour code) The "bump height" is calculated from the model. abodi_bpm_1s JLab 11/02 Michael B¨ oge 23
Recommend
More recommend