XAL Recent Development

Slides:



Advertisements
Similar presentations
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
Advertisements

LCLS Control System Overview Mike Zelazny SLAC ICD Software Department Accelerator Directorate.
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.
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
EPICS Meeting 2005ORNL Rdb systems at SNS Jeff Patton and cast April 27-29, 2005 EPICS Meeting 2005.
Paul Chu FRIB Controls Group Leader (Acting)
Hamid Shoaee High Level Physics 20 April 2006 High Level Physics Applications Update on Plans, New Directions Fairley,
Patrick Krejcik LCLS June 16-18, 2008 High Level Applications Facility Advisory Committee Meeting June 17, 2008 Applications Team.
Java Programming, 3e Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Debbie Rogind & Greg White High Level Applications October High Level Applications.
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.
Java Programming, 2E Introductory Concepts and Techniques Chapter 1 An Introduction to Java and Program Design.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Magnetic Field Measurement System as Part of a Software Family Jerzy M. Nogiec Joe DiMarco Fermilab.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Views The architecture was specifically changed to accommodate multiple views. The used of the QStackedWidget makes it easy to switch between the different.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
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.
CS 390 Unix Programming Summer Unix Programming - CS 3902 Course Details Online Information Please check.
Guide to Programming with Python Chapter One Getting Started: The Game Over Program.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
K.Furukawa, Nov Database and Simulation Codes 1 Simple thoughts Around Information Repository and Around Simulation Codes K. Furukawa, KEK Nov.
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.
Managed by UT-Battelle for the Department of Energy SNS Beam Commissioning Tools and Experience Andrei Shishlo on Behalf of SNS Team HB2008, Nashville,
Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.
Paul Chu Lattice Database.  Learning MySQL  Model DB prototyped Include part of the Lattice DB (Device Settings) Converted from SLAC/LCLS MACHINE_MODEL.
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
Paul Chu SLAC App. 10/14/ SLAC (LCLS) Application Plans P. Chu for SLAC High-Level Application Team.
5-Oct-051 Tango collaboration status ICALEPCS 2005 Geneva (October 2005)
Connecting with Computer Science2 Objectives Learn how software engineering is used to create applications Learn some of the different software engineering.
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
Firmware - 1 CMS Upgrade Workshop October SLHC CMS Firmware SLHC CMS Firmware Organization, Validation, and Commissioning M. Schulte, University.
1 P. Chu 1 Adapting XAL for LCLS EPICS Meeting, Vancouver Adapting XAL for LCLS Paul Chu - SLAC May 1, 2009.
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
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.
B. Dalesio, N. Arnold, M. Kraimer, E. Norum, A. Johnson EPICS Collaboration Meeting December 8-10, 2004 Roadmap for IOC.
ThinStructure: An Overview Support for ThinStructure demonstration. Jean Georges Perrin – Annandale, 21 st April 2004.
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.
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
PLACET User experiences with PLACET and examples of use for the Drive Beam CLIC Workshop 2008 Erik Adli, CERN/University of Oslo, October 16 th 2008 Lots.
Views The architecture was specifically changed to accommodate multiple views. The used of the QStackedWidget makes it easy to switch between the different.
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.
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.
XAL Applications Development in CSNS Weibin Liu for AP Group of CSNS Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong Liu, Jun Peng, Jing.
Monitoring and Information Services Core Infrastructure (MIS-CI) Service Description Mark L. Green OSG Integration Workshop at UC Feb 15-17, 2005.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
+ SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics.
Fermilab Scientific Computing Division Fermi National Accelerator Laboratory, Batavia, Illinois, USA. Off-the-Shelf Hardware and Software DAQ Performance.
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
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.
The Cockroft Institute
LCLS Commissioning & Operations High Level Software
Agenda:- DevOps Tools Chef Jenkins Puppet Apache Ant Apache Maven Logstash Docker New Relic Gradle Git.
GFA Controls IT Alain Bertrand
LCLS Commissioning & Operations High Level Software
Juan, Emanuele, Natalia, Yngve, Sofia
Tango in a Nutshell 31/12/2018.
High Level applications development status
High Level Physics Applications for LCLS Commissioning
DOE Review of the LCLS Project 7-9 February 2006
Presentation transcript:

XAL Recent Development Paul Chu FRIB Controls Group Leader (Acting)

Outline XAL Introduction and features XAL software management Open XAL status XAL setup Summary Paul Chu, XAL, 14 Jun 2011

Accelerator Control XAL in high-level application infrastructure XAL and its apps Paul Chu, XAL, 14 Jun 2011

What XAL can offer? Written in Java (multi-platform support) A hierarchical view of an accelerator Quick physics modeling tool A common look-and-feel graphical user interface (GUI) Use EPICS CA But in principle can support other control system with a proper adapter. Oracle database adapter Many other utility packages Re-use as much as possible Paul Chu, XAL, 14 Jun 2011

XAL Online Model Single Particle Tracking Algorithm. Adaptive Envelope Tracking Algorithm. Space charge code. Phase space coordinates, Twiss parameters, R-matrix for each modeling element. SNS version based on Trace-3D. LCLS version based on MAD8. Support DESIGN, EXTANT (live), and ‘what-if’ modes. SLAC version has solenoid, T-cav. TRIUMF needs electrostatic devices. Paul Chu, XAL, 14 Jun 2011

XAL Utility Packages Optimization Data plotting package In-memory database Can dump to XML Math utility GUI framework Common look-and-feel No need to go through some detail GUI programming Paul Chu, XAL, 14 Jun 2011

Services and Applications PVLogger service Can take machine snapshot with time correlation Online model supports PVLogger snapshot replay Knobs Model GUI Can do orbit difference, i.e. comparison Orbit Correction 1D/2D Scan Virtual Accelerator General purpose PV display, aka Z-plot Orbit Display with beam synchronous acquisition buffer display Many other apps Many “apps” are callable API Paul Chu, XAL, 14 Jun 2011

Scripting Interface to XAL Scripting interfaces are available with Jython (www.jython.org) and Matlab No glue code, or extra compile steps etc needed!!! Mix XAL java classes seamlessly with scripting language Providing simple code examples. Coding up on-the-fly experiments. http://www.sns.gov/APGroup/appProg/xal/scripts/jythonScripts.html MatLab % scan the first quad % monitor beam positions in the last MEBT BPM for i =1:10 fld(i) = field; quad.setField(field); va_chan.putVal(1); % for virtual accelerator pause(1); % for virtual accelerator xpos(i) = bpm.getXAvg; ypos(i) = bpm.getYAvg; field = field * 1.015; % increment field value end % Plot results plot(fld, ypos) Jython # read the accelerator acc_xml = "file:./sns.xal" acc = XmlDataSource.parseUrlAt(acc_xml, 0) # get the some primary sequences from the accelerator mebt = acc.getSequence("MEBT") dtl1 = acc.getSequence("DTL1") dtl2 = acc.getSequence("DTL2") print " There are ", mebt.getAllNodes().size(), "nodes in the sequence", mebt.getId() Paul Chu, XAL, 14 Jun 2011

XAL Software Management Open Source Open XAL – SourceForge, Git Multi-lab collaboration A good community support behind it Labs presently using XAL: SNS, SLAC/LCLS, KEK (part), J-PARC (linac), BNL/NSLS-II, CSNS, MSU, GANIL/Spiral-2… Ant build for easy deployment Can also build with your favorite IDE LCLS specific code in separate package which depends on XAL (LCLS own branch) Paul Chu, XAL, 14 Jun 2011

Open XAL Goals (T. Pelaia) Support collaboration Manage project on Source Forge Make XAL easier to port General cleanup Improve the online model Reduce overhead for adding new device types Modernize code and eliminate obsolete code Paul Chu, XAL, 14 Jun 2011

Open XAL Completed Work (T. Pelaia) Project skeleton with more powerful, zero configuration build architecture Application framework ported and modernized New online model implemented Git repository to ease collaboration and site customization Website with plan, roadmap and documentation http://xaldev.sourceforge.net/ Paul Chu, XAL, 14 Jun 2011

Roadmap Summary (T. Pelaia) Due Date Progress Task Oct. 31, 2010 100% Project Skeleton Dec. 31, 2010 Develop Website Feb. 15, 2011 Application Framework Apr. 30, 2011 Online Model Aug. 31, 2011 25% Lattice Generator Dec. 31, 2011 40% JSON Package 80% Common Tools Dec. 31, 2012 0% Test Suites Common Services 5% Common Applications Paul Chu, XAL, 14 Jun 2011

Improvement Ideas Some multi-function apps are too heavy. Need to improve performance and robustness. Go service oriented. Service runs continuously Reduce initialization overhead Avoid heavy computation in individual application Better exception/error handling, message logging Easy for quick prototyping/experiment setup Separate XAL/SNS GUI from the package. Paul Chu, XAL, 14 Jun 2011

XAL Setup A repository to store everything It is easier if source code modification necessary Your schedule is not controlled by somebody else (Optional) Need a database to hold input (configuration) data. Modification to SMF/online model If some devices which is not currently supported by XAL. Not trivial but doable Understanding the system Learn XAL. JCA (Java Channel Access) expertise Get used to XAL It’s not as difficult as you might have thought Paul Chu, XAL, 14 Jun 2011

Summary XAL has a lot of features Several labs are using or evaluating XAL Even EPICS Archiver Viewer is based on XAL But, it’s not perfect. Still a lot of work to do Need your help, suggestion Paul Chu, XAL, 14 Jun 2011

Additional Information XAL in SourceForge Source code XAL workshop slides It’s called ‘Open XAL’ now Mailing list USPAS XAL course material https://wiki.ornl.gov/sites/xaldocs/default.aspx XAL API (JavaDOC) can be generated from ‘ant javadoc-xal’. Paul Chu, XAL, 14 Jun 2011