An Overview of XAL XAL - A High-Level Control Application Framework Christopher K. Allen Los Alamos National Laboratory KEK - February 18, 2005.

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.
PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~ Sponsored by the Canadian Light Source Saskatoon, Canada October.
® IBM Software Group © 2006 IBM Corporation Rational Software France Object-Oriented Analysis and Design with UML2 and Rational Software Modeler 04. Other.
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.
L4-1-S1 UML Overview © M.E. Fayad SJSU -- CmpE Software Architectures Dr. M.E. Fayad, Professor Computer Engineering Department, Room #283I.
EPICS Meeting 2005ORNL Rdb systems at SNS Jeff Patton and cast April 27-29, 2005 EPICS Meeting 2005.
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.
NLC - The Next Linear Collider Project Lee Ann Yasukawa 05/25/99 NLC Archiving Requirements (Preliminary)
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.
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.
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
Channel Archiver Introduction 2006
Implementation Yaodong Bi. Introduction to Implementation Purposes of Implementation – Plan the system integrations required in each iteration – Distribute.
An Introduction to Software Architecture
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.
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.
IRMIS Status EPICS 2009 Vancouver D. A. Dohan. Outline IRMIS hardware model cable/cable run channel list Equipment Inventory System RDB Domain separation.
Control System Studio (CSS) Overview Kay Kasemir, July 2009.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
EPICS Collaboration Meeting, November SNS Optics Database N. Malitsky.
R MoeserCorrelator f2f Meeting1 MCAF (Metadata Capture and Formatting) Rich Moeser.
EPICS Collaboration Meeting Fall PAL October 22 ~ 26, 2012 LCLS Timing System (pattern design, evGUI, and high level) Mike Zelazny for LCLS Timing.
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.
Jean Slaughter –April 5, 2004 – all experimenters’ meeting Purposes of SDA Store to store monitoring of performance Long term trends Analysis of specific.
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.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 12, 2010.
Jožef Stefan Institute The New Abeans and CosyBeans Cutting Edge Application and User Interface Framework Igor Verstovsek
ICFA-HB 2004 Commissioning Experience for the SNS Linac A. Aleksandrov, S. Assadi, I. Campisi, P. Chu, S. Cousineau, V. Danilov, G. Dodson, J. Galambos,
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 Michigan State.
CSC 520 – Advanced Object Oriented Programming, Fall, 2010 Thursday, October 14 Week 7, UML Diagrams
Paul Chu XAL for 10/14/ XAL for SLAC/LCLS Paul Chu.
… Work in progress at CTF3 … Davide Gamba 01 July 2013 Study and Implementation of L INEAR F EEDBACK T OOLS for machine study and operation.
EPICS and LabVIEW Tony Vento, National Instruments
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,
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
Debbie Rogind Diane Fairley SLC-Aware BSAC Facility Requirements Review May 26, 2005 SLC Aware IOC BSAC* Facility Requirements Review *Beam Synchronous.
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.
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.
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.
+ SwissFEL Matlab Toolbox ADAQA used for Emittance Measurements Bolko Beutner, Rasmus Ischebeck PSI / DESY / KIT Mini-Workshop on Longitudinal Diagnostics.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
1 RIC 2009 Symbolic Nuclear Analysis Package - SNAP version 1.0: Features and Applications Chester Gingrich RES/DSA/CDB 3/12/09.
LCLS Commissioning & Operations High Level Software
Operations Machine Simulator.
LCLS Commissioning & Operations High Level Software
An Introduction to Software Architecture
High Level applications development status
High Level Physics Applications for LCLS Commissioning
Presentation transcript:

An Overview of XAL XAL - A High-Level Control Application Framework Christopher K. Allen Los Alamos National Laboratory KEK - February 18, 2005

2 XAL Developers and Collaborators ORNL – Tom Pelaia – Paul Chu – Andre Shishlo – John Galambos – Sarah Cousineau ESRF – Wolf-Dieter Klotz LANL – Craig McChesney – Bob Dalesio – Chris Allen Cosylab – Igor Kriznar – Ales Pucelj – Mark Plesko Special thanks to John Galambos for providing much of this presentation!

3 Outline 1. XAL Overview 2. Architecture 3. Simulation Subsystem 4. Application Framework Sample Applications 5. Summary see

1.Overview - Conceptual Diagram XAL is a software infrastructure providing a hierarchical, device-oriented view for application programmers Java based with scripting 1. Overview

5 XAL “Lingo” Framework or Infrastructure (gov.sns.*) – General code sharable among applications (in xal.jar) Application Framework – See gov.sns.application and gov.sns.xal.application – A “template” for building gui applications Accelerator hierarchy, or SMF (gov.sns.xal.smf ) – Class structure for representing accelerator hardware Online model (gov.sns.xal.model) – A physics model for doing quick linear transport modeling 1. Overview

6 XAL in the Control System Hierarchy Hardware EPICS 1 ABeans 1 SCiP 1 Hardware Abstraction XAL 1 Matlab * Python * Device Abstraction Control Applications App * App 1 App * GUI 1. Overview Scripting/tools

7 2. XAL Architecture UML Subsystem Diagram 2. XAL Architecture

8 Global Database Generates XML “Configuration” File Serves as a common configuration file for all applications Creates the accelerator hierarchy – Provides the “map” from the flat list of EPICS signals to the accelerator hierarchy <align x="10000" y=" " z=" " pitch="0" yaw="0“ roll="0" type="bucket" /> - <channel handle="fieldSet" signal="MEBT_Mag:QH01:fieldSet“ settable="true" /> DatabaseXML configuration file 2. XAL Architecture

9 XAL Datagraph XAL “Datagraph” – Class structure provides hierarchical “device view” of the accelerator – Sequences (MEBT, DTL, CCL, …) – Individual Node type classes (Quads, RF, BPMs, etc.) Sequences can be “pasted together” as ComboSequences. 2. XAL Architecture

10 Tools (gov.sns.tools) Correlator (gov.sns.ca.correlator) – Used to collect PVs with the same timestamp Services – Used for internal communication between XAL processes (clients – services ) Database – Simple database communication tools (pv-logger uses this) XML – Easy interface to write / read structures, used for open/save capability for application documents … 2. XAL Architecture

11 SNS HL Control Deployment 2. XAL Architecture Physics Server – XAL applications deployed on separate node – XAL services and monitoring agents live on physics server

12 3. Simulation Subsystem Lattice Generator (gov.sns.xal.slg) – A model of the machine is constructed from the “device” representation – Drifts are added, elements are split Simulation Scenario (gov.sns.xal.model.scenario) – Lattice element values can be updated from the machine, user defined values or design values – Mostly use an envelope model for linac tracking at present 3. Online Simulation

13 Simulation Subsystem Architecture (Allen, Klotz, Galambos, Pelaia, Chu, McChesney) 3. Online Simulation

14 Online Model (gov.sns.xal.model) Online beam simulation (i.e., no “decks”) – See LA-UR for theory Uses N. Malitsky’s Element/Algorithm/Probe architecture: – Element: Machine representation basic objects that affects the beam ( e.g. quad, thin lens, drift) – Probe: Represents the beam (or aspects of the beam) Envelope, Single-particle, Multi-particle, etc. – Algorithm: how to propogate the beam Binds Probe to Element and provides dynamics Linear dynamics, higher-order dynamics, etc. 3. Online Simulation

15 4. XAL Application Framework (T. Pelaia) Application Framework used as a common starting point Provides a common look and feel for all applications Quick jump-start for application development Easy retro-fixes across many apps Incorporates a document/view/control architecture (Software Engineering!) Save/open app setup Error logging Toolbar for common actions Html help Accelerator navigating 4. Appl Framework

16 1-D Scan Application (A. Shishlo) Provides an easy way to scan one quantity and monitor others Can average over pulses, scan multiple times, pause Analysis includes fitting, intersection finding, min/max, etc. Easy way to do a quick unanticipated experiment Predefined scans with specialized analysis are possible – DTL and MEBT phase + amplitude setting applications Faraday cup amplitudes vs. DTL RF settings 4. Appl Framework

17 2-D Scan Application (A. Shishlo) Added 2-D scan capability (parametric scans) Define preset configurations – Optional analysis capability Used for DTL acceptance scans for phase/amplitude setting – Scan DTL phase + amplitude, monitor Faraday Cup signal 4. Appl Framework

18 Scope Application Triggered Acquisition (T. Pelaia) The Digital Oscilloscope – with a similar user interface as analog scopes MEBT rebuncher (RF) forward power trace with beam loading: – RF = 1 20 Hz, beam = 50 1 Hz – Use the correlator to filter only RF signals with beam pulses Potential for future applications Requires vigilance on good signal time stamps and proper time waveform packaging 4. Appl Framework

19 Loss Viewer Application ( S.Cousineau) View a summary of beam loss by machine section – “Zoomable” to specific BLMs – Viewable as fraction of permissible loss Waterfall display of a specific beamline portion – Faraday cup inserted here 4. Appl Framework

20 Service Applications (T. Pelaia) MPS post-mortem (tracks first fault incidents) – posts statistics to elog daily – history views PV Logger – posts sets of data to the database – periodically or pushbutton – Generalized to allow for custom PV sets Client PV Logger Browser Client MPS Post- mortem viewer 4. Appl Framework

21 XYZ Correlator Application (P. Chu) Pick 2 (or three) signals and monitor them together Can use the time correlator to ensure signals are from the same pulse Added customization features + added to the framework Can export or fit the acquired data Correlation between phase measurements of 2 BPMs 4. Appl Framework

22 Save-Compare-Restore (Score) Application (J. Galambos) Provides a means to capture machine setup, compare live values to a saved set, and to restore values to a saved set – Grabs settable + readback signals Can sort by system and device type This is the primary means to snap-shot the machine state 4. Appl Framework

Xio Application (P. Chu) General purpose value displayer (tables, and or plots) Added to application framework, works for MEBT + DTL Pick accelerator Pick device + signal types  MEBT + DTL -> 4. Appl Framework

24 Online Model Application (W.-D. Klotz) An online model is now available within the XAL framework Online model can be run for 1) live values, 2) design values and 3) user defined what-if changes Can display or dump beam Twiss output Vertical and horizontal beta functions through the MEBT, DTL + D- plate for design values 4. Appl Framework

25 External Lattice Generator (P. Chu) Generate an external lattice file for selected part of the accelerator Uses the online model lattice generation Tested though DTL (+ HEBT) Can use live or design values Trace3D or Dynac input files can be created. May be incorporated into the online model application. 4. Appl Framework

26 Orbit-Difference Application (P. Chu) Compares differences in beam orbits, for both BPMs and calculated Online model is also used in the Orbit Difference Application, in addition to running Trace 3D (external fortran code) Orbit difference example using the online model Used to observe orbit difference in the horizontal direction Helped resolve sign issue in BPMs Kick applied here 4. Appl Framework

27 Summary The XAL application programming infrastructure is in place and working at SNS – > 20 applications written – actively used in commissioning activities – Online model used more extensively SLAC will employ XAL in the LCLS Issues – Java – “heavier” than typical X-widgets. – Need to revisit some applications to make them more efficient.

28 “Device View” Environment Class structure provides hierarchical “device view” of the accelerator to the application programmers – Sequences (MEBT, DTL, CCL, …) – Individual Node type classes (Quads, RF, BPMs, etc.) Sequences can be “pasted together” as ComboSequences. 2. XAL Architecture