Docstoc

Adapting XAL for LCLS - ISAC Control System _

Document Sample
Adapting XAL for LCLS - ISAC Control System _ Powered By Docstoc
					                 Adapting XAL for LCLS

                           Paul Chu - SLAC
                             May 1, 2009




Adapting XAL for LCLS              1   1                     P. Chu
EPICS Meeting, Vancouver                     pchu@slac.stanford.edu
                           What XAL can offer?

     A hierarchical view of an accelerator
     Quick physics modeling tool
     A common look-and-feel graphical user
     interface (GUI)
     Use EPICS CA
     Oracle database adapter
     Many other utility packages

 Re-use as much as possible

Adapting XAL for LCLS               2   2                        P. Chu
EPICS Meeting, Vancouver                         pchu@slac.stanford.edu
                           What to do before using XAL?

     Set up LCLS own XAL repository
     Need a database to hold input (configuration) data
          Prototype in 1-2 weeks
          Get right data to populate the DB take longer
          Generate XAL XML input from DB
          Still a little hand-edit
     Online model modifications
          Transfer matrices – all essential device types rewritten
          in MAD algorithm
          Longitudinal coordinate system for electron beam
          Fix some physics parameter calculation bugs
          Get good design model calculation so far…
Adapting XAL for LCLS                    3   3                            P. Chu
EPICS Meeting, Vancouver                                  pchu@slac.stanford.edu
                                More to do…

     Live machine model improvement
          Chicane dipole bend angle based on field
          Handle some magnets in string (can be done at EPICS
          level)
          Back propagate Twiss parameters
     Backward compatibility for apps
          Existing apps use SLC model system
               Set up Oracle database to store XAL model data
               Use same AIDA interface to access saved models
               Both XAL and SLC models available, default to XAL
     Provide better feature than the SLC model system


Adapting XAL for LCLS                     4   4                                    P. Chu
EPICS Meeting, Vancouver                                           pchu@slac.stanford.edu
                           Online Model QA

    Validate XAL model (XAL vs. MAD)
         R-matrix
         Twiss parameters
         Check whenever model code changed




Adapting XAL for LCLS             5   5                      P. Chu
EPICS Meeting, Vancouver                     pchu@slac.stanford.edu
                           Applications

     Save, compare, restore (SCORE)
          New columns added
          Database configured
          Callable API
     Orbit display
          Beam synchronous acquisition
          Orbit fit
     Linac Energy Manager (use XAL in Matlab)
          Prototype, new version is under way
     Virtual accelerator
Adapting XAL for LCLS            6   6                          P. Chu
EPICS Meeting, Vancouver                        pchu@slac.stanford.edu
                           Applications (cont.)

     Online model manager
          Run model
          View available models – comparison
          Tag GOLD model




Adapting XAL for LCLS                7   7                        P. Chu
EPICS Meeting, Vancouver                          pchu@slac.stanford.edu
                  Set up for LCLS/SLAC Environment

     Messaging
     E-log
     ‘Help’ system – use wiki
     GUI framework/layout
          Common look-and-feel
     Build and release system (ongoing)
          Currently, using Ant/Eclipse
          Decide to use Ant
               Complete build from source for all dependant
               projects from CVS with specific version
                     ‘Framework’ is enforced to be the release version
Adapting XAL for LCLS                         8   8                                  P. Chu
EPICS Meeting, Vancouver                                             pchu@slac.stanford.edu
                           Conclusions

     LCLS XAL is working
     XAL inline model for quick prototyping
     Consideration
          Model or no model
          Need some training
          GUI preference (not quite portable)
     To do:
          Better database schema
          Speed up model run
          More applications
Adapting XAL for LCLS            9   9                          P. Chu
EPICS Meeting, Vancouver                        pchu@slac.stanford.edu

				
DOCUMENT INFO
Shared By:
Categories:
Tags:
Stats:
views:7
posted:4/15/2011
language:English
pages:9