pcapac satellite workshop ~ high level applications development and the matlab middlelayer ~...
TRANSCRIPT
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
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]
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
Accelerator control interface
MML2EDM
Function Library‘hundreds of functions for accelerator control ‘
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
“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 ESSTodd Satogata, Jefferson Lab
proton beam through a ~420m superconducting linac
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
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!”
• 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
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
Client-Server Communications for High Level Applications
Nikolay Malitsky, Brookhaven National Laboratory
Typical three-tier high level application environment
EPICS-DDS Conceptual Design
Data-Distributed Service Architecture
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
Middlelayer Scripting Tools for Beamline Control
Andres Pazos, European Molecular Biology Lab
PETRA-III
Low level
DESY
LabView for users
Application of Matlab at CLS PX Beamlines
Protein Sample Diffraction - Data Collection
Russ Berg – Canadian Light Source
ALS
SLC
SPEAR 3
PEPSPEAR 2 LCLSPEP-II
Evolution of Control Systems
Poject-M
Dials
Fortran cards
Forth
TRANSPORT
MAGIC/COMFORT/SYNCH
Models
Micros
Fortran
C, X
Matlab
Thumbwheels
Scopes/meters
Slide rules
COBAL on campus
EPICS
iocs
internet
Matlab
MiddleLayer
EPICS
XAL
Matlab
?
1960 1975 1990 2005
Bevatron
2010!JAVA
PythonCSS
DDS…