PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~
description
Transcript of PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~
![Page 1: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/1.jpg)
PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~
Sponsored by the Canadian Light SourceSaskatoon, Canada
October 5, 2010
Jeff Corbett SLAC National LaboratoryGreg Portmann Lawrence Berkeley Laboratory
![Page 2: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/2.jpg)
PowerSupply
'crate' D-to- A
A-to- D
ioc
backplane
networkHigh-Level Application
computer
set
get
Accelerator
Man-to-Machine Connection
Magnet
QF [3,1]
![Page 3: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/3.jpg)
High Level Applications
Control System Interface
(LabCA, MCA, …)
Middle Layer
Accelerator Toolbox(AT - Model)
Accelerator Hardware
AT Server(Simulator)
Matlab for Accelerator Experimentation and Control Greg Portmann/Advance Light Source
![Page 4: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/4.jpg)
Accelerator control interface
MML2EDM
Function Library‘hundreds of functions for accelerator control ‘
![Page 5: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/5.jpg)
Magnet lattice save / restore / configuration controlEnergy RampingSlow orbit feedbackInsertion device compensationQuadrupole centeringDisplay (plotfamily) / DiagnosticsTransport line tuningGeneral scripting language for machine shiftsLOCO (Response matrix analysis)…
High Level MATLAB Applications
![Page 6: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/6.jpg)
“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
![Page 7: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/7.jpg)
High Level Application Development at the ESSTodd Satogata, Jefferson Lab
proton beam through a ~420m superconducting linac
![Page 8: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/8.jpg)
ESS: 12 institutions, 6-7 years
write a study…
-EPICSto be used at co-located MAX-IV, SNS connections
-Linux service layer
-Oracle RDBMSLeverage CERN, Jlab SCRF software
![Page 9: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/9.jpg)
Input Output Controller (IOC)
EPICS IOC
Channel Access
Device Support
Device Support
anal
og in
puts
Eth
erne
t/IP
PLC
Device Support
Intelligent Controller
Ethernet SwitchEthernet SwitchPROFINET TCP/IP, UDP/IP
PLC
PLC Intelligent Controller
Intelligent Controller
analog/digital I/O analog/digital I/O
Responsibility of the ESS integrators
Responsibility of the subsystem developers/integrators
Ethernet Switch
Oth
er
subs
yste
ms,
ce
ntra
l se
rvic
es,
cont
rol r
oom
, et
c.
A/D module
“The block diagram not the challenging partdelivering a control system, however, is!”
![Page 10: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/10.jpg)
NSLS-II Physics Infrastructure & Matlab
Guobao Shen, Brookhaven National Laboratory
![Page 11: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/11.jpg)
• The epics-pvdata project– 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
![Page 12: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/12.jpg)
The great integration project…
![Page 13: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/13.jpg)
MATLAB for CLS Accelerator OperationsWard 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
![Page 14: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/14.jpg)
Injection Optimization
CSR Production
Emittance Calculation
![Page 15: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/15.jpg)
Client-Server Communications for High Level Applications
Nikolay Malitsky, Brookhaven National Laboratory
Typical three-tier high level application environment
![Page 16: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/16.jpg)
EPICS-DDS Conceptual Design
Data-Distributed Service Architecture
EPICS 4 Middle Layer Server, Dynamic Data
![Page 17: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/17.jpg)
![Page 18: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/18.jpg)
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
![Page 19: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/19.jpg)
Web Services:
Service-Oriented Architecture:
![Page 20: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/20.jpg)
Middlelayer Scripting Tools for Beamline Control
Andres Pazos, European Molecular Biology Lab
PETRA-III
Low level
DESY
LabView for users
![Page 21: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/21.jpg)
Scripting Environmenet
Scripting ToolsPython as a candidate
“PyTINE“
![Page 22: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/22.jpg)
![Page 23: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/23.jpg)
Application of Matlab at CLS PX Beamlines
Protein Sample Diffraction - Data Collection
Russ Berg – Canadian Light Source
![Page 24: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/24.jpg)
Protein Crystal Transfer - Robot Control
![Page 25: PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~](https://reader035.fdocuments.in/reader035/viewer/2022062410/56816039550346895dcf5cef/html5/thumbnails/25.jpg)
ALSSLC
SPEAR 3PEPSPEAR 2 LCLSPEP-II
Evolution of Control Systems
Poject-M
DialsFortran cardsForthTRANSPORTMAGIC/COMFORT/SYNCH
ModelsMicrosFortranC, XMatlab
ThumbwheelsScopes/metersSlide rulesCOBAL on campus
EPICSiocsinternetMatlabMiddleLayer
EPICSXALMatlab ?
1960 1975 1990 2005
Bevatron
2010!JAVAPythonCSSDDS…