An Accelerator Control Middle Layer Using MATLAB Page: 3 of 3
This article is part of the collection entitled: Office of Scientific & Technical Information Technical Reports and was provided to Digital Library by the UNT Libraries Government Documents Department.
The following text was automatically extracted from the image on this page using optical character recognition software:
liddleLayer Data Flow Diagram
Pccelrator Data flavwfor getpv and setpv AT o~del l
Ha rdwaM le L r p igts
unitsCai ratd t
domiat'ac s re buagn bnet
fo the iddle LaeUfrdaamaiulton,)il
Laergraly simlferrs) comuiatio wih celrao
The idde Lyer lsoproide hgevel Cfunction
(:G)in m enae m ang- -mRe r rcpnn,
Gain2 e OCO) eaecdso ec Ctfecrfls
(3)me sdip-asure th di s rn funtio
Aenraizd <e "o l Plotaml lunes
Corect rs"Eerg s ing t e ~ o e.
The Middle Layer software simplifies high-level
application programming for machine control and script
development for accelerator physics. Matlab scripts rely
heavily on Middle Layer software to perform correlated
perturb/measure studies. Application programs can be
dominated by user-interface software but again benefit
from the Middle Layer for data manipulation, file
handling and machine control. In both cases the Middle
Layer greatly simplifies communication with accelerator
The Middle Layer also provides high-level functions
for common accelerator physics tasks. Examples include:
(1) measrespmat - measure response matrix
(2) getrespmat - read response data from files
(3) measdisp - measure the dispersion function
A centralized accelerator control gui PlotFamily launches
many high-level Middle Layer functions and can
graphically displays live data, simulated data or data
contained in the AO.
The Matlab toolboxes written for accelerator
applications (AT, MCA, LOCO, Middle Layer) are well
integrated and have proven quite useful for machine
studies and control. The relatively user-friendly software
and machine-independent programming language have
fostered a number of collaborations. Most scientists find
the syntax quite intuitive making it possible for visitors to
participate in accelerator physics studies with minimal
training. To date, the software has been installed on six
machines (ALS, CLS, NSLS VUJV, NSLS X-ray, PLS,
SPEAR3) and has received interest from other
laboratories including ASP, ALBA, CAMD, DIAMOND,
SOLEIL,, and SSRF.
The Middle Layer requires a small, upfront investment
to build the AO, AD and AT-model files in order to install
on a new accelerator. The complete software can be made
functional for most applications within a few days and be
fully operational in a few weeks, including exercising
routines in the simulate and online modes. Developing a
fully calibrated online model with accurate hardware-to-
physics conversion parameters is the most time-
consuming part of the setup.
Having multiple laboratories use the same high level
software has proven to be quite useful.
" Not every laboratory has to spend the resources to
write the same algorithms. For new laboratories
it's a very fast and inexpensive way to acquire high
level control and simulation software.
" Having one software package that is debugged at
many laboratories improves reliability. Thousands
of dedicated accelerator hours have been spent
testing, debugging and improving the
AT/MCA/Middle Layer software packages.
" As with any collaboration, software expansion,
suggestions, and new ideas come from a bigger
pool of participants.
" The number of physicists and engineers trained on
the Middle Layer is growing rapidly. Visiting
scientists can work immediately on the new
accelerator. This was very useful for SPEAR 3
" Since it's easy to switch between different
accelerators in the simulation mode, it's easy to test
algorithms on different accelerators.
The authors would like to thank the ALS/LBNL and
SPEAR/SLAC management for encouraging and
supporting a productive collaboration on the Middle
Layer. We would also like to thank the staff members at
the laboratories that use the Middle Layer for the helpful
suggestions that everyone has made along the way.
 G. Portmann, J. Corbett, A. Terebilo, "Middle Layer
Software Manual for Accelerator Physics," LBNL Internal
Report, LSAP-302, 2005.
 A. Terebilo "Accelerator Modeling with MATLAB
Accelerator Toolbox," PAC 2001.
 A. Terebilo, "Channel Access Toolbox for Matlab,"
 J. Corbett, et al., "Orbit Control Using MATLAB,"
 J. Safranek, G. Portmann, A. Terebilo and C. Steier, "Matlab
Based LOCO," EPAC 2002.
 J. Corbett, G. Portmann, A. Terebilo, J. Safranek, "SPEAR 3
Commissioning Software," EPAC 2004.
 J. Safranek, et al, "SPEAR 3 Commissioning" , APAC 2004.
 J. Corbett, A. Terebilo, G. Portmann, "Accelerator Control
Middle Layer," PAC 2003.
 A. Terebilo, "Simulated Commissioning of SPEAR 3,"
This article can be searched. Note: Results may vary based on the legibility of text within the document.
Tools / Downloads
Get a copy of this page or view the extracted text.
Citing and Sharing
Basic information for referencing this web page. We also provide extended guidance on usage rights, references, copying or embedding.
Reference the current page of this Article.
Portmann, Gregory J.; Corbett, Jeff & Terebilo, Andrei. An Accelerator Control Middle Layer Using MATLAB, article, May 15, 2005; (digital.library.unt.edu/ark:/67531/metadc787444/m1/3/: accessed February 16, 2019), University of North Texas Libraries, Digital Library, digital.library.unt.edu; crediting UNT Libraries Government Documents Department.