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.

Slides:



Advertisements
Similar presentations
Control System Studio (CSS)
Advertisements

Tools used for the beam commissioning of J-PARC LINAC Guobao SHEN J-PARC Center Japan Atomic Energy Agency Mar
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
R. Miyamoto, Beam Physics Design of MEBT, ESS AD Retreat 1 Beam Physics Design of MEBT Ryoichi Miyamoto (ESS) November 29th, 2012 ESS AD Retreat On behalf.
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,
5/18/2015J-PARC1 High Level Physics Applications Magnets & Beams Day ?, Lecture ? Accelerator View from the Physicist.
XAL Recent Development
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 Emma LCLS FAC April 16, Initial Experience with Injector Commissioning P. Emma, et al. Facilities Advisory Committee.
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.
Diane Fairley High Level October 24-28, 2005 High Level Physics Applications LCLS Week / FAC October 24-28, 2005.
Chris Rogers, Analysis Parallel, MICE CM17 Progress in Cooling Channel Simulation.
Henrik Loos High Level 17 June 2008 High Level Physics Applications for LCLS Commissioning Henrik Loos.
Maintaining and Updating Windows Server 2008
Managed by UT-Battelle for the Department of Energy Open XAL Open Development of the XAL Accelerator Application Framework Christopher K. Allen Tom Pelaia.
Oracle Applications for Control Systems By Katia Danilova 09/29/2005.
8/21/2015J-PARC1 Data Management Machine / Application State Data.
Introduction Status of SC simulations at CERN
JCE A Java-based Commissioning Environment tool Hiroyuki Sako, JAEA Hiroshi Ikeda, Visible Information Center Inc. SAD Workshop.
ESS DTL beam commissioning
AGS Polarized Proton Development toward Run-9 Oct. 3, 2008 Haixin Huang.
PTC ½ day – Experience in PS2 and SPS H. Bartosik, Y. Papaphilippou.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
HPS Online Software Discussion Jeremy McCormick, SLAC Status and Plans.
Beam diagnostics control for J-PARC LINAC Guobao SHEN J-PARC Center Japan Atomic Energy Agency Mar
EPICS at APS in June.2006, n.kami, KEK J-PARC Status N. Kamikubota, KEK and J-PARC Control members * Try to enhance updates in the last 1 year.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda, H. Sako, H. Suzuki,
CHRISTOPHER K. ALLEN, ORNL HIROYUKI SAKO, JAEA MASANORI IKEGAMI, KEK GUOBAO SHEN, JAEA HIROSHI IKEDA, VIC TOMOHIRO OHKAWA, JAEA AKIRA UENO, JAEA XAL Online.
ATF Control System and Interface to sub-systems Nobuhiro Terunuma, KEK 21/Nov/2007.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
(Java) CA Client Libraries Status Matej Šekoranja
ATF2 beam commissioning status and beam time request Toshiyuki Okugi 2008 / 11 / 12 ATF2 Commissioning Meeting.
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,
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
Managed by UT-Battelle for the Department of Energy Using Online Single Particle Model for SNS Accelerator Tuning Andrei Shishlo, Alexander Aleksandrov.
J-PARC Trace3D Upgrades Christopher K. Allen Los Alamos National Laboratory.
Linda R. Coney – 5 November 2009 Online Reconstruction Linda R. Coney 5 November 2009.
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.
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.
ROCS Web Based Reporting Tool Using SNS Relational Database By Katia Danilova, Ernest L. Williams Jr. Control Systems group, ASD, SNS.
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.
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,
Simulations - Beam dynamics in low emittance transport (LET: From the exit of Damping Ring) K. Kubo
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.
A.Saini, K.Ranjan, N.Solyak, S.Mishra, V.Yakovlev on the behalf of our team Feb. 8, 2011 Study of failure effects of elements in beam transport line &
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.
MAUS Status A. Dobbs CM43 29 th October Contents MAUS Overview Infrastructure Geometry and CDB Detector Updates CKOV EMR KL TOF Tracker Global Tracking.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
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,
LCLS Commissioning & Operations High Level Software
Weiming Guo Accelerator Physics Group / ASD Advanced Photon Source
Andrei Shishlo ORNL SNS Project Florence, Italy November 2015
LCLS Commissioning & Operations High Level Software
OCELOT orbit correction and optimizer
High Level applications development status
High Level Physics Applications for LCLS Commissioning
Linac Diagnostics Commissioning Experience
High Level Physics Applications Lehman Review February 7 - 9, 2006
Presentation transcript:

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

Why did we introduce XAL to J-PARC? All functions necessary for commissioning apps are there –EPICS CA (with a wrapper “Channel” class) –GUI (a template for GUI application) –Online model –RDB interface Implemented in Java –Easy development/maintenance in OO language with IDE –Code organization seemed clear and good. Each code is understandable. Close relation between model and device control –Read a channel and set the value to the model –Read data from the model and set it to a channel –“Virtual Accelerator” seemed attractive Testing apps with simulation in CA without beam There are many apps which may be used in J-PARC.

Installing XAL Building XAL (Linux, Windows) –Installation of java SDK, ant, JCA/CAJ, (EPICS, PCAS) –Building XAL had no problem. Successful in the first attempt. Setup –JCA/CAJ configuration –PCAS (for virtual accelerator) Development of XAL input files –Base for all XAL tools –Developed a RDB and an automatic generation tool input files XAL lattice data structure is easy to map to RDB –Each element is located at a z-position. No need to fill drift between elements.

ER diagram of Commissioning DB (for lattice info) PostgreSQL 8.1 Beam table –Twiss/emittance/energy Generation of Probe file Lattice data –Geometry table (static) –Device parameter table (many sets of data with tags) –Different tables for each device type Dipole magnet Quad magnet RF monitor

Lattice Data Manager GUI tool for lattice related tables Save a lattice data set with a tag and comments Generation of XAL and Trace3D lattice files Both calculated sets and corrected sets with beam are stored with different tags

Developing XAL Extension and test of the online model –Detailed comparison of the online model with TRACE3D Because we use also TRACE3D As a result, we have fixed XAL bugs –Space charge calculations –RF gap transfer matrix  Finally difference from Trace3D becomes less than 1% (Thanks Chris) –PMQ (QM with fringe field) element added –Emittance growth effect at RF gap Interface for PostgreSQL –PostgreSQL I/O class (PgsqlDatabaseAdaptor) implemented –DB tables created with same definitions from ORACLE ones. –It took only a few days. PVlogger and SCORE work

Version control Short history May 04First installation of XAL (got tar file from XAL web page) Updates of XAL were done by downloading tar file Dec 04J-PARC version control started with CVS Jun 05Updated (merged) with newest SNS code Aug 06Moved to SVN (then we updated again with newest SNS version from SourceForge) Found SVN is much nicer than CVS –Version control as a whole set of codes Problem: hard to synchronize our version with SNS version –We customize our codes very much for J-PARC. –To update our version from SNS, we compared and merged every code manually. Takes a week. Any better way?

Issues No official document. Only Javadoc. There is no tutorial how to write a XAL application Merging version of each institute may be necessary in near future JCA or CAJ? (not XAL problem) –JCA is stable but slow when treating many channels (more than a few hundreds) –CAJ1.1.3 is fast, but has problems in disconnection and “caput” We identified bugs and fixed with Matej. We still use JCA but could move to the next CAJ version.

PVlogger or SCORE? SCORE –Convenient for comparison and restoring functions –But heavy In J-PARC LINAC (RF/magnets/monitors), we save ~ 9K channels –There is no periodic logging function In J-PARC, some groups want to take a snapshot periodically PVlogger –Can take a snapshot periodically –Also has a function to take a snapshot with comments –Parameters can be read from applications (such as MPX) Connection with the model is there! –But restore function is not there We added corresponding set point record entry in the DB table Save and Restore application (like SCORE) must be implemented Can we use PVloggger instead of SCORE? –We’d like to have your suggestions

Our achievements with XAL XAL applications for LINAC beam commissioning –iTuning (RF tuning) –BBC (Beam Based Calibration) –Orbitcorrect (orbit correction) –EnergyMaster (beam energy analyzer) –SCORE (Save and Restore DB) –PVlogger Reference: ICALEPCS2007, Oct 18(Th) 17:40 H. Sako, et al, Beam commissioning software and database for J-PARC LINAC

RF Tuning (iTuning) Tune RF amplitude and phase to get a designed energy gain by measuring time-of-flight with Fast Current Transformers Energy vs RF phase And fit to a model  2 of fit to a model (Parmila) as a function of RF amplitude

Beam Based Alignment (BBC) –Change QM and steering field and measure beam positions with BPM –Find center of QM MEBT1 BPM05 Downstream BPM positions vs QM field at each steerer field Center BPM positions as a function of the slopes (left plot) QM field Slope (Q vs BPM) BPM Steering field

Orbit Correction (orbitcorrect) Measured BPM positions (horizontal) Prediction by online simulator After correction, Measured positions agrees well with prediction After correction Before correction (SDTL)

First Injection to RCS (H0 dump) 5 Oct % CM Carbon plate (thermometer) Beam profiles measured by MWPMs

Summary XAL was developed in J-PARC and successfully applied as LINAC commissioning tools More active collaboration sharing information is useful for development of XAL

Acknowledgements We thank collaborators for successful beam commissioning of J-PARC LINAC with XAL –Especially John Galambos, Chris Allen, Tom Pelaia, Paul Chu, and Andrej Shishlo

Save and Restore DB (SCORE) SCORE application with PostgreSQL –Save, Compare and Restore a set of channels –RF, magnets, monitors (~9k channels in total).

EnergyMaster Collection of information –Beam destination –Beam current –RF timing –RF on/off Choose a proper FCT pair and calculate energy depending on RF acceleration Energy evolution during RF tuning (PVlogger) Energy measurement status

First acceleration to 181 MeV 24 Jan 2007 Design Energy Measured Energy 181MeV

We thought we can use XAL apps but actually developed most of them by ourselves - different hardware and tuning algorithms Applications for commissioning collab. mtg. at Tsukuba XAL apps to be used (or to be modified for J-PARC) Oct07 (actually implemented) RF phase/amp tuningPASTAiTuning (new XAL app) Transverse matching with WS AOCmatcher (no XAL) Emittance/Twiss measurements with WS AOC, emittanceCalc.pyWS profile measurer (no XAL) Orbit correction with steering magnets Orbitcorrect Beam Based Alignmentfind_beam_center.pyBBC (new XAL) Save and Restore toolsSCORE Applications

Some functions which may be useful (we could contribute) Back propagation tracker –Starting with Twiss/emittance at downstream, calculate those at an upstream position Newton-Raphson method with Response matrix –Much faster optimizing method than Simplex A few 10 iterations converge instead of ~ 100 with Simplex –Proved to work in the transverse matching Calculate Response matrix with online model Applications

Newton-Raphson method