This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC0000661, the State of Michigan.

Slides:



Advertisements
Similar presentations
DIGIDOC A web based tool to Manage Documents. System Overview DigiDoc is a web-based customizable, integrated solution for Business Process Management.
Advertisements

Control System Studio (CSS)
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
Database System Concepts and Architecture
Visual Scripting of XML
HP Quality Center Overview.
Current Status of Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda,
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
XAL at J-PARC Hiroyuki Sako, G. Shen, JAEA C. K. Allen, ORNL Contents Why did we introduce XAL? Installing XAL Developing XAL Achievements with XAL Summary.
XAL Recent Development
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
Paul Chu FRIB Controls Group Leader (Acting)
Patrick Krejcik LCLS June 16-18, 2008 High Level Applications Facility Advisory Committee Meeting June 17, 2008 Applications Team.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Henrik Loos High Level 17 June 2008 High Level Physics Applications for LCLS Commissioning Henrik Loos.
–Streamline / organize Improve readability of code Decrease code volume/line count Simplify mechanisms Improve maintainability & clarity Decrease development.
Managed by UT-Battelle for the Department of Energy Open XAL Open Development of the XAL Accelerator Application Framework Christopher K. Allen Tom Pelaia.
8/21/2015J-PARC1 Data Management Machine / Application State Data.
Control System Studio (CSS)‏ Kunal Shroff EPICS Training Meeting 07/10/2010.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Deutsches Elektronen-Synchrotron DESY Helmholtz Association of German Research Centres Hamburg, Germany The European X-Ray Laser Project.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Drag and Drop Display and Builder. Timofei B. Bolshakov, Andrey D. Petrov FermiLab.
A Brief History of XAL at SNS - What went right / wrong J. Galambos XAL Workshop at the 2007 EPICS / ICALEPS meeting Knoxville TN.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
Contents 1.Introduction, architecture 2.Live demonstration 3.Extensibility.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
The european ITM Task Force data structure F. Imbeaux.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
CSS – Control System Studio
ACAT 2005 Workshop, May UAL Interactive Analysis Environment Interactive Analysis Environment of Unified Accelerator Libraries V. Fine, N. Malitsky,
An Overview of XAL XAL - A High-Level Control Application Framework Christopher K. Allen Los Alamos National Laboratory KEK - February 18, 2005.
Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.
12/3/2015J-PARC1 High Level Physics Applications XAL – An Accelerator Hierarchy Day 1: Accelerator View from the Physicist.
Paul Chu SLAC App. 10/14/ SLAC (LCLS) Application Plans P. Chu for SLAC High-Level Application Team.
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
LHC online modeling Mark IV LHC online modeling Mark IV Piotr Skowroński Tobias Persson Agnieszka Szczotka Jaime Coello de Portugal Lukas Malina Mattias.
Mantid Stakeholder Review Nick Draper 01/11/2007.
August 2003 At A Glance The IRC is a platform independent, extensible, and adaptive framework that provides robust, interactive, and distributed control.
1 Virtual Accelerator plan and status at RCS Hiroshima University, Graduate School of Science Experimental Quark Physics Lab ( & JAEA Accelerator Development.
1 P. Chu 1 Adapting XAL for LCLS EPICS Meeting, Vancouver Adapting XAL for LCLS Paul Chu - SLAC May 1, 2009.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
Jan Hatje, DESY CSS – Control System Studio EPICS collaboration meeting CSS – Control System Studio Update EPICS collaboration meeting 2008 Shanghai.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Paul Chu XAL for 10/14/ XAL for SLAC/LCLS Paul Chu.
Applications Kay Kasemir ORNL/SNS Using Information and pictures from Matthias Clausen, Jan Hatje, and Helge Rickens (DESY) October 2007.
1 BEAM COMMISSIONING SOFTWARE AND DATABASE FOR J-PARC LINAC Hiroyuki Sako G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEA H. Ikeda, VIC C. K. Allen,
Experience with LCLS Sergei Chevtsov, EPICS Argonne.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
Tutorial on Science Gateways, Roma, Catania Science Gateway Framework Motivations, architecture, features Riccardo Rotondo.
ESS Integrated Control System Software Core Components S.Gysin
Development of Commissioning Software for CSNS Weibin Liu on behalf of CSNS AP Group Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
Software tools for digital LLRF system integration at CERN 04/11/2015 LLRF15, Software tools2 Andy Butterworth Tom Levens, Andrey Pashnin, Anthony Rey.
ORNL is managed by UT-Battelle for the US Department of Energy Status Report: Data Acquisition and Instrument Controls for the Spallation Neutron Source.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
LCLS Commissioning & Operations High Level Software
CMS High Level Trigger Configuration Management
LCLS Commissioning & Operations High Level Software
Copyright © 2011 Pearson Education, Inc. Publishing as Pearson Addison-Wesley Chapter 2 Database System Concepts and Architecture.
Analysis models and design models
An Introduction to Software Architecture
High Level Physics Applications for LCLS Commissioning
Presentation transcript:

This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan and Michigan State University. Michigan State University designs and establishes FRIB as a DOE Office of Science National User Facility in support of the mission of the Office of Nuclear Physics. Paul Chu Professor XAL and Open XAL Software: the Development and Applications

 Introduction  Right software architecture  Data handling  Application Programming Interface/Automation Control system connectivity Online Model Tools GUI Framework  Applications and services General purpose applications Beam tuning applications  XAL -> Open XAL (new XAL)  Conclusion Outline P. Chu, June 2015 ICFA mini-Workshop, Slide 2

 A high-level software platform was needed for SNS commissioning Evaluated CDEV, SDDS, SAD…, but decided to build a new one based on UAL2 design Started (Summer 2002) just prior to the SNS Front-End commissioning Java based, i.e. API accessible from Java, JYTHON, PYTHON, MATLAB  Why do we need a high-level software platform? Easy for developing high-quality applications Easy for software maintenance  What do we need for the platform? Data structure Online Model »Started with Trace-3D (modified as a callable module via Java Native Interface) Application Programming Interface (API) Many tools  First applications: Orbit Difference, Histogram Display, XY(Z) Plot Introduction P. Chu, June 2015 ICFA mini-Workshop, Slide 3 Orbit Diff. SNS MEBT, Jan. 2003

 Software architecture considerations Portability – can be applied to other accelerator facility easily »Using abstract classes for generic API and “adapters” for specific implementations »Using configurations files as opposed to hard-code machine properties »Compatible with various control systems Easy-to-use – intuitive API for physicist developers Robustness – important for user facilities Performance – must be fast enough for any online purposes Avoid over-engineering – keep as simple as possible Quick prototype support – scripting ideas  High-level = XAL + Database + tools Essential tools: »Optimizer »Data graphing »Control system connectivity »Database connectivity »Graphical User Interface (GUI) Software Architecture Overview P. Chu, June 2015 ICFA mini-Workshop, Slide 4

 Class hierarchy describing the accelerator structure Internal data structure matches this hierarchy APIs to access accelerator data  Other core components Online Model Channel Access support Core tools – anything else needed by core  Extensions (like EPICS’s) – supporting libraries Application (GUI) framework External lattice generator – hooks for other modeling tools, e.g. MAD-X Optimizer …  Plugins – site specific implementations, e.g. EPICS Channel Access, database flavors (Oracle, MySQL…)  Services Open XAL Software Structure P. Chu, June 2015 ICFA mini-Workshop, Slide 5 XAL acc. class structure

 All static data saved in relational database Data needed for applications extracted from DB and stored in XML files »Flexibility »Can initialize directly from DB w API Database can be site specific A Lattice/Model Database developed  Data flow Data Handling P. Chu, June 2015 ICFA mini-Workshop, Slide 6

 Need a data container to store lattice and (optionally) model data  General enough for most machines/models Property name-value pair, not fixed column names  Prepare lattice data in Excel spreadsheet template Data upload routine for the template »Apache POI package for Excel file parsing Data access API »Generate XAL configuration files from DB »Easy to write generators for other model tools  20 tables in DB covering lattice, model  DB schema is application oriented  Lattice/model service in progress  Model data display app in progress Lattice/Model Database (DISCS Collaboration) P. Chu, June 2015 ICFA mini-Workshop, Slide 7

 Database for “physics” applications (not the application configuration data) Machine snapshot Predefined “other” data  PVLogger General purpose PV logging  SCORE Save/Compare/Restore Application  2-in-1: PVLogger + SCORE Easy to set up (than any EPICS tools) »Only needs an Excel file with PV names Periodic logging – JSON-RPC On-demand logging Restoring via SCORE GUI Application Online Model replay Data for Physics Applications P. Chu, June 2015 ICFA mini-Workshop, Slide 8

 Channel Class An abstract class that provides an interface to the control system. Includes convenience functions to hide details of the connection mechanism.  JcaChannel A concrete class that uses the Java Channel Access (JCA) interface to EPICS v3 channel access protocol -- each EPICS signal is called a process variable (PV). It is a Plugin now which means EPICS v4 or any other protocols can be another Plugins, i.e. Open XAL is fully compatible with any communication protocols  Transformations: allows scaling/offset of the signal coming from the control system Can map one physical signal to > one “Channel” object, with different transformations Facilitates quick fixes, changes to signals »Dipole corrector magnetic field computed from power supply current. »BPM polarity fixes. Control System Connectivity P. Chu, June 2015 ICFA mini-Workshop, Slide 9

 Element-Probe-Algorithm design pattern »Element is object for each individual modeling element along the beamline »“Probe” object filled with all tracking results as model tracking along the beamline »Algorithm is the way an element should be treated during the tracking (probing)  Matrix formalism for fast computation as opposed to multi-particle tracking in typical offline simulation Single particle tracking Envelope tracking Online Model P. Chu, June 2015 ICFA mini-Workshop, Slide 10 XAL Online Model for LCLS linac

 Calculate beam parameters.  A lattice view of the machine constructed from the “device” structure (via a set of rules. Drifts are inserted at run-time, elements are split if needed Device view -> online model lattice  Lattice element values can be from the machine, design or logged data  Can do ‘what-if’ with any one of the above data sources  Mostly use an envelope model for single-pass linac tracking or closed orbit for ring Online Model Features P. Chu, June 2015 ICFA mini-Workshop, Slide 11

 Drift space calculated dynamically with lattice generator  Lattice – split all thick-lens elements with “begin”, “middle” and “end” markers  Linear space charge capable for linac Adaptive space charge algorithm further split elements accordingly  Closed-orbit transfer map for storage ring  Further improvement in progress Modeling fringe fields (overlapping fields) Dynamic path lengths, beam phase in RF accelerating gaps, multi-beams…  Performance ~sec for elements online model tracking ~ms for short beamline segment, good enough for working with solver Online Model Details P. Chu, June 2015 ICFA mini-Workshop, Slide 12

 Open XAL Online Model may not cover all physics Improve Open XAL Model Make other models working w/ Open XAL, using Open XAL APIs  A model platform for various modeling tools Open XAL MAD-8 MAD-X IMPACT DYNAC Trace-3D …  Model Database – universal data container  Data access API – model independent API  Can be used for model benchmark Simulation Platform P. Chu, June 2015 ICFA mini-Workshop, Slide 13

 Data graphing – a built-in plotting package, may be replaced by JavaFX in the future  Database connectivity – certain API for physics data, e.g. retrieval of machine snapshot for online model replay  Channel Transformation – may use for fudge physics parameters, channel time correlation among PVs  Mathematics – polynomial tools, matrix operation, special functions  Digital signal processing  Messaging – API for recording and passing information around  Solver – for optimal solution finding, the most important tool  Statistics ... Many more Tools P. Chu, June 2015 ICFA mini-Workshop, Slide 14

A GUI Application Framework is developed and used as a common starting point for application programs Provides a common look feel for all apps Quick jump-start for application development Easy retro-fixes across many apps Use familiar “windows” look feel paradigm Startup screen for opening a document Accelerator selector GUI Framework P. Chu, June 2015 ICFA mini-Workshop, Slide 15 Common default menu bar

 General purpose apps/services Beamline “Z-plot” widget – any kind of parameters along the beamline »Orbit display, beam loss display, beam envelope… Multi-knob/bump orbit correction* Save/restore* (restoring physics, not just “numbers”) Scan/correlation plot* Time-correlated machine snapshot* (PVLogger) Machine Protection Post-mortem analysis (SNS implementation) PV Strip tool/histogram*  Physics apps – typically model-based beam tuning Orbit Difference* Orbit Correction* Linac Beta matching* Linac Cavity phase setting* Linac energy management* Machine simulator/virtual accelerator*… Application Wish List for Commissioning P. Chu, June 2015 ICFA mini-Workshop, Slide 16 *Open XAL

 Bricks – a GUI application builder Currently in Java Swing, may refactored in JavaFX  Experiment Automator – TRIUMF experiment automation  External Lattice Generator – external model input file generator  Application Launcher – grouping, sortable utility for applications  Machine Simulator – Online Model display  MTV (My Tuner Viewer) – general purpose device tuner/viewer  Optics Editor – provide a convenient way to enable/disable nodes  Optics Switcher – allow user to specify the default optics  Scope – virtual scope for viewing waveform channels Other Available Open XAL Applications P. Chu, June 2015 ICFA mini-Workshop, Slide 17

 If a procedure needs to be called by multiple applications or to be run periodically, it can be converted into a service  Currently there are 2 services provided by Open XAL PVLogger »General purpose PV logging tool »Can perform on-demand or periodic logging »Common practice for beam invasive applications: take a machine snapshot prior to the invasive action, a “Restore” button can be provided for quickly reverting the action Worker »A demo service  Services are JSON-RPC based No EPICS needed Services P. Chu, June 2015 ICFA mini-Workshop, Slide 18

 XAL 2.0 -> Open XAL, an international collaboration CSNS, ESS, FRIB, GANIL, SNS, TRIUMF Starting from 2010 Project milestones updated every 6 months  Major code refactor More collaboration friendly – site specific configuration, extensions and plugin organization Use Java Generics in Online Model – ensure better code quality  Up-to-date technologies used Java 7 Runtime, migrating to Java 8 in 2015 JRuby 1.6 Jython 2.1 ANT 1.9 for binary build without any Integrated Development Environment  Early control room adoption – gaining operation experience and user feedback From XAL to Open XAL P. Chu, June 2015 ICFA mini-Workshop, Slide 19

 Open Source BSD License  Source code available on SourceForge Shared Git repositories  Issue ticket tracking system Reporting bugs, tracking fix progress Requesting Features, improvements  Mailing list  Meetings Online meetings In-person meetings, last at IPAC 2015  Wiki Pages  Website – Open XAL Project Management P. Chu, June 2015 ICFA mini-Workshop, Slide 20

 CSNS MEBT commissioning with XAL New applications developed for RCS, magnet database, lattice database  ESS Beam Physics Group decided to use Open XAL for beam commissioning Model modified to handle field maps for cavities Developed Python integration environment (JPype) Solver used for matching initial beam parameters based on ESS criteria Automated installation scripts Optics files generated as custom XML files  FRIB Several applications successfully demonstrated in control room for a new cryomodule commissioning Developed a model platform allowing integration with other accelerator codes Merged PVLogger and SCORE (Save/Compare/Restore) Open XAL Project Status [1] (Pelaia) P. Chu, June 2015 ICFA mini-Workshop, Slide 21

 GANIL SPIRAL2 Adopted the Open XAL September 2014 snapshot Hibernate used for database interaction Accelerator input XML files generated from the database Core slightly modified to support accelerator object graph Developed tools for user interaction with process variables Custom SPIRAL2 application adaptor and document subclasses  SNS Old XAL code frozen, all active applications ported to Open XAL Deployed as default accelerator physics platform Ongoing software verification  TRIUMF Low energy empirical model has been successfully tested Developed magnet dithering an beam based alignment tool Developed Experiment Automator application Orbit correction package is planned Open XAL Project Status [2] (Pelaia) P. Chu, June 2015 ICFA mini-Workshop, Slide 22

 It’s been about 13 years since XAL first started  XAL/Open XAL core, applications, services and supporting database provide an integrated high-level application environment  XAL/Open XAL has a large community support with active development efforts  Open XAL software is adequate for both commissioning and operation, i.e. no need to rewrite operation applications after commissioning  Use software wisely might give you a lot more useful information, e.g. parasitically monitoring certain parameters/settings to collect machine statistics/stability data Conclusion P. Chu, June 2015 ICFA mini-Workshop, Slide 23 Thank you!