pcapac satellite workshop ~ high level applications development and the matlab middlelayer ~

25
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

Upload: sofia

Post on 22-Feb-2016

56 views

Category:

Documents


0 download

DESCRIPTION

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. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

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  ~

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  ~

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  ~

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  ~

“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  ~

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  ~

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  ~

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  ~

NSLS-II Physics Infrastructure & Matlab

Guobao Shen, Brookhaven National Laboratory

Page 11: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

• 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  ~

The great integration project…

Page 13: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

Injection Optimization

CSR Production

Emittance Calculation

Page 15: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

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  ~
Page 18: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

Web Services:

Service-Oriented Architecture:

Page 20: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

Scripting Environmenet

Scripting ToolsPython as a candidate

“PyTINE“

Page 22: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~
Page 23: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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  ~

Protein Crystal Transfer - Robot Control

Page 25: PCaPAC Satellite Workshop  ~  High Level Applications Development and the Matlab Middlelayer  ~

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…