250 likes | 387 Views
PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~ Sponsored by the Canadian Light Source Saskatoon, Canada October 5, 2010 Jeff Corbett SLAC National Laboratory Greg Portmann Lawrence Berkeley Laboratory. Man-to-Machine Connection.
E N D
PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~ Sponsored by the Canadian Light Source Saskatoon, Canada October 5, 2010 Jeff Corbett SLAC National Laboratory Greg Portmann Lawrence Berkeley Laboratory
Man-to-Machine Connection Power Supply Magnet Accelerator 'crate' i o c D -to- A A -to- D backplane QF [3,1] network High-Level Application get computer set
High Level Applications Middle Layer Accelerator Toolbox (AT - Model) Control System Interface (LabCA, MCA, …) Accelerator Hardware AT Server (Simulator) Matlab for Accelerator Experimentation and Control Greg Portmann/Advance Light Source
Accelerator control interface Function Library ‘hundreds of functions for accelerator control ‘ MML2EDM
High Level MATLAB Applications Magnet lattice save / restore / configuration control Energy Ramping Slow orbit feedback Insertion device compensation Quadrupole centering Display (plotfamily) / Diagnostics Transport line tuning General scripting language for machine shifts LOCO (Response matrix analysis) …
“MATLAB and MML allow accelerator physicists to perform simple tasks independent of the Controls Department” “For more complex tasks, MATLAB and MML provide a good platform to collaborate with the Controls Department” • - Ward A. Wurtz, Physicist, Canadian Light Source
High Level Application Development at the ESS • Todd Satogata, Jefferson Lab proton beam through a ~420m superconducting linac
ESS: 12 institutions, 6-7 years write a study… • -EPICS • to be used at co-located MAX-IV, SNS connections • -Linux service layer • -Oracle RDBMS • Leverage CERN, Jlab SCRF software
“The block diagram not the challenging part • delivering a control system, however, is!”
NSLS-II Physics Infrastructure& Matlab GuobaoShen, Brookhaven National Laboratory
The epics-pvdataproject • pvData • memory resident database – records have structured data • pvAccess • New version of EPICS Channel Access • javaIOC • An engine for record processing and optional support • pvService • Service developed against pvData/pvAccess
MATLAB for CLS Accelerator Operations • Ward A. Wurtz, Canadian Light Source • CLS relies on MATLAB and the MML for many tasks: • Online accelerator control • Offline data analysis • Extensively use for tasks that do not involve the MML software
Injection Optimization CSR Production Emittance Calculation
Client-Server Communications for High Level Applications NikolayMalitsky, Brookhaven National Laboratory Typical three-tier high level application environment
Data-Distributed Service Architecture EPICS-DDS Conceptual Design • EPICS 4 Middle Layer Server, Dynamic Data
Cloud Computing: - IT resources for database, storage, application development and services - Leverage resources that you do not have to maintain - Distributes software complexity over the internet
Web Services: Service-Oriented Architecture:
Middlelayer Scripting Tools for Beamline Control • Andres Pazos, European Molecular Biology Lab • Low level • DESY • PETRA-III • LabView for users
Scripting Environmenet Scripting Tools Python as a candidate “PyTINE“
Application of Matlab at CLS PX Beamlines Russ Berg – Canadian Light Source Protein Sample Diffraction - Data Collection
Evolution of Control Systems ALS SPEAR 3 Poject-M SPEAR 2 PEP SLC PEP-II LCLS Bevatron Thumbwheels Scopes/meters Slide rules COBAL on campus Dials Fortran cards Forth TRANSPORT MAGIC/COMFORT/SYNCH Models Micros Fortran C, X Matlab EPICS iocs internet Matlab MiddleLayer EPICS XAL Matlab ? 2010! JAVA PythonCSS DDS… 1960 1975 1990 2005