0 BROOKHAVEN SCIENCE ASSOCIATES NSLS II Physics Application and its Open Architecture Guobao Shen Controls Group, Photon Sciences Brookhaven National Laboratory.

Slides:



Advertisements
Similar presentations
Guobao Shen BNL Services Guobao Shen
Advertisements

Control System Studio (CSS)
V4 Status and Workshop Report CSS, DISCS, an V4 team.
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
SNS Integrated Control System SNS RDB Requirements, wish list, status A little history l Oracle RDB used exclusively by accelerator physics group l JERI.
RTEMS and Linux at the Canadian Light Source Tony Wilson Canadian Light Source University of Saskatchewan.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS V4 Support to Physics Application, Data Acquisition, and Data Analysis L. Dalesio, Gabriele Carcassi, Martin Richard.
0 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services at NSLS II for Beam Commissioning and Operation Guobao Shen Controls Group, Photon Sciences Brookhaven.
PvData,pvAccess,pvIOC,pvService Status EPICS Meeting June 2011 NSRRC,Hsinchu, Taiwan Marty Kraimer, Guobao Shen, and Matej Sekoranja.
EPICS Architecture Version 3 Channel Access Client (CAC) Connection Data Transfers WAN/LAN/Local Connection Data Transfers Channel Access Server (CAS)
Current Status of Virtual Accelerator at J-PARC 3 GeV Rapid Cycling Synchrotron H. Harada*, K. Shigaki (Hiroshima University in Japan), H. Hotchi, F. Noda,
SPEAR Upgrade – EPICS Status
PCaPAC Satellite Workshop ~ High Level Applications Development and the Matlab Middlelayer ~ Sponsored by the Canadian Light Source Saskatoon, Canada October.
Current Status of MATLAB-based Accelerator Physics Application Programs for the TPS Commissioning and Operation at NSRRC Fan-Hsin Tseng ( 曾繁信 ) Beam Dynamics.
Model Server for Physics Applications Paul Chu SLAC National Accelerator Laboratory October 15, 2010.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
SPEAR PV RDB Database EPICS Collaboration Meeting April 27, SPEAR PV RDB Database Clemens Wermelskirchen.
Agenda Adaptation of existing open-source control systems from compact accelerators to large scale facilities.
Data Acquisition at the NSLS II Leo Dalesio, (NSLS II control group) Oct 22, 2014 (not 2010)
Elder Matias Canadian Light Source University of Saskatchewan CLS – Control System Overview.
1 BROOKHAVEN SCIENCE ASSOCIATES Commissioning Plans F. Willeke 9 th ASAC Meeting for NSLS-II Project February 1-2, 2012.
Imperial College Tracker Slow Control & Monitoring.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Core (and other development efforts) L. Dalesio. EPICS April 25, 2013.
1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Physics Applications – Applying V4 The Control Group – presented by Bob Dalesio Taiwan EPICS Meeting, June 2011.
Debby Quock November 13, 2012 IRMIS at CLS. IRMIS Currently at CLS PV Crawler –Perl modules that parse EPICS IOC st.cmd, db, and dbd files. Information.
BROOKHAVEN SCIENCE ASSOCIATES High level applications and EPICS control GUOBAO SHEN NSLS-II, Control Group May 4 th, 2009.
IRMIS Status EPICS 2009 Vancouver D. A. Dohan. Outline IRMIS hardware model cable/cable run channel list Equipment Inventory System RDB Domain separation.
MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.
Elder Matias, Diony Medrano, Dong Liu (At Michigan State University - Nov 2011) IRMIS at CLS.
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Jan Control System Studio, CSS Overview.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
Control Hardware Design Control Hardware Wiring IOC Software (Low Level) OPI Software (High Level) Final Test Front-End (Connection to SR1 Ring) Done Insertion.
1 BROOKHAVEN SCIENCE ASSOCIATES Storage Ring Commissioning Samuel Krinsky-Accelerator Physics Group Leader NSLS-II ASAC Meeting October 14-15, 2010.
Michael Borland Advanced Photon Source Using SDDS for Accelerator Commissioning and Operation Michael Borland Operations Analysis Group Advanced Photon.
1 BROOKHAVEN SCIENCE ASSOCIATES Control System Overview Bob Dalesio, Control Group HLA Review for NSLS-II Project April
EPICS EPICS Limitations Bob Dalesio Marty Kraimer.
Solve problem of integrating other control systems Solve problem of extending our control system Minimize the latency for data Minimize the implementation.
BROOKHAVEN SCIENCE ASSOCIATES Advanced Monitor/Subscription Mechanisms Ralph Lange EPICS Collaboration Meeting October 11, 2009.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 12, 2010.
1 Virtual Accelerator plan and status at RCS Hiroshima University, Graduate School of Science Experimental Quark Physics Lab ( & JAEA Accelerator Development.
Russian Particle Accelerator Conference, – 03.10, 2008 Nikolay Malitsky Brookhaven National Laboratory
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
1 BEAM COMMISSIONING SOFTWARE AND DATABASE FOR J-PARC LINAC Hiroyuki Sako G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEA H. Ikeda, VIC C. K. Allen,
TRIUMF HLA Development High Level Applications Perform tasks of accelerator and beam control at control- room level, directly interfacing with operators.
1 BROOKHAVEN SCIENCE ASSOCIATES NSLSII Control System The Control Group – presented by Bob Dalesio EPICS Meeting April 12, 2015.
Implementation and Testing of RDB Channel Archiver with MySQL Richard Ma, DePauw University Supervisor: Richard Farnsworth, Argonne National Laboratory.
ESS Integrated Control System Software Core Components S.Gysin
Development of Commissioning Software for CSNS Weibin Liu on behalf of CSNS AP Group Yuwen An, Mingyang Huang, Mingtao Li, Yong Li, Zhiping Li, Yudong.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC , the State of Michigan.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Normative V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
Fermilab Control System Jim Patrick - AD/Controls MaRIE Meeting March 9, 2016.
Using COTS Hardware with EPICS Through LabVIEW – A Status Report EPICS Collaboration Meeting Fall 2011.
SNS Integrated Control System ORACLE –JERI DB Generation April 27, 2004 Coles Sibley Jeff Patton.
Control System Tools for Beam Commissioning Timo Korhonen Controls Division Chief Engineer April 8, 2014.
BEAM COMMISSIONING SOFTWARE AND DATABASE FOR J-PARC LINAC Hiroyuki Sako G. Shen, H. Sakaki, H. Takahashi, H. Yoshikawa, JAEA H. Ikeda, VIC C. K. Allen,
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
LCLS Commissioning & Operations High Level Software
Operations Machine Simulator.
Presented by Li Gang Accelerator Control Group
ChannelFinder Directory Service
LCLS Commissioning & Operations High Level Software
EPICS Version 4 Abstract:
A Virtual Implementation of VELA (CLARA)
EPICS 7 Matej Sekoranyja, Marty Karimer, Michael Davidsaver, Ralph Lange, Andrew Johnson, Timo Korhonen, Heinz Junkes, Patrick Marschalik, Murali Shankar,
Update on Software Scope Control System Software
Presentation transcript:

0 BROOKHAVEN SCIENCE ASSOCIATES NSLS II Physics Application and its Open Architecture Guobao Shen Controls Group, Photon Sciences Brookhaven National Laboratory Oct 23 rd, 2014

1 BROOKHAVEN SCIENCE ASSOCIATES Motivation Traditional high level application suites – Closed environment – Self consistent – Come with its own simulation code – Work good once successfully configured Expertise needed Open structure environment – Break into separate modules – Portability – Reusability

2 BROOKHAVEN SCIENCE ASSOCIATES System Architecture 3-tier open architecture at NSLS II Distributed Front-Ends Ethernet Python Apps CA Client MMLT CA Client XAL CA Client SDDS CA Client CS-Studio CA Client IOC HW IOC HW IOC HW IOC HW IOC HW … MySQL PVAS HTTP/REST Lattice/Model Python MySQL PVAS HTTP/REST IDODS Python MySQL PVAS HTTP/REST MUNICONV Python SQLite/MongoDB EPICS V4 MASAR Python MySQL PVAS HTTP/REST AI DS Python IOC Live Optics IOC Live MUNICONV Tracy-III/Elegant IOC Orbit Correction IOC Dispersion Meas … IOC JMS virtual accelerator Tracy-III/Elegant

3 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services Distributed Front-Ends IOC Live Optics IOC Live MUNICONV Ethernet Python Apps CAC PVAC REST MMLT CAC PVAC REST Matlab Apps CAC PVAC REST Channel Arch CAC PVAC REST CS-Studio CAC PVAC REST Tracy-III/Elegant IOC Orbit Correction IOC Dispersion Meas … IOC JMS virtual accelerator Tracy-III/Elegant MySQL PVAS HTTP/REST Lattice/Model Python MySQL PVAS HTTP/REST IDODS Python MySQL PVAS HTTP/REST MUNICONV Python SQLite/MongoDB EPICS V4 MASAR Python MySQL PVAS HTTP/REST AI DS Python

4 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services MASAR –A save/restore tool Machine Snapshot, Archiving, and Retrieve –EPICS V4 Service to snapshot machines General purpose tool Globally handle PVs distributed in different IOCs –Machine A collection of EPICS PVs –Snapshot Data at specific time point –Value, time stamp, connection status, alarm status, alarm severity Similar, but different purpose tools –Autosave Single IOC bumpless rebooting –Channel Archiver Archive periodically Save time serially data

5 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services MASAR Server (EPICS V4 Engine) PyQt Channel Access Gather/C++ MASAR Client Python Library pvAccess Client pvAccess DSL-PY Module (C++ Python) PYMASAR (Python) SQLite PYMASAR (Python) SQLite Scripting IOC CS- Studio/BO Y pvAccess Client Library (Java) Finished User AppsDeveloping Others (Matlab) Others (Matlab) MASAR Architecture Restore MongoDB Plan MySQL

6 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services MASAR terminologies configuration... event event data pv pv group Snapshot

7 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services MASAR Client PyQt4 UI Become official lattice ID in our commissioning reports, olog, …

8 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services 8 Deployed in control network from the first day (3/27/2012) MASAR snapshots taken with time (up to 10/15/2014)

9 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services RESTful based middle layer services – For static data – Data warehouse – Middle layer IOC for live data In V3 currently, and planned to be in V4 Services at NSLS II – MUNICONV: multiple unit conversion – Lattice/Model – Beam based interlock data service – Insertion device data service

10 BROOKHAVEN SCIENCE ASSOCIATES Python Client Middle Layer Services Architecture for RESTful based Service FinishedUser Apps Planning Developing MySQL Python Data API Python-MySQLdb V4 channelRPC service IOC (Live Data) RESTful Scripting CSS/BOY Java Client Others (Matlab) Others (Matlab) Browsers RESTful pvAccess Django Service HTML RESTful

11 BROOKHAVEN SCIENCE ASSOCIATES MUNICONV Service –Multiple unit conversion First implementation targeting on magnets Convert value between different unit systems –i: power supply current –b: magnetic fields –k: value in model/lattice domain –Implemented with Django –MySQL as RDB backend –Client support Python library Web UI Middle Layer Services

12 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services MUNICONV WEB View

13 BROOKHAVEN SCIENCE ASSOCIATES MUNICONV IOC – pyDevSup: Python Device Support – Initialize IOC thru RESTful web service – Trigger processing when HW record processed ~ 1K HWs ~ 4K soft records – SP, RB – B, K values 1 HW PVs => 1 or more soft PVs – Power chain – Separate from H/W IOC – PV Mapping & relation thru C.F. I PV_ Middle Layer Services I PV_ B PV K PV I PV Hardware IOCMUNICONV IOC 1:1 1:N

14 BROOKHAVEN SCIENCE ASSOCIATES MUNICONV

15 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services Lattice/Model Service –A further development based on our virtual accelerator –Consists of 2 parts WEB service Live IOC for online requirement –Support 2 simulation codes (Tracy-3 & Elegant) Transparent switching between each other Beam Parameter Simulation/ Measurement Beam Parameter Lattice Deck Beam Parameter Lattice (Geometric + Strength) Input Model (Simulation result) Output

16 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services Lattice view 16

17 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services 17 Model view

18 BROOKHAVEN SCIENCE ASSOCIATES K PV Middle Layer Services Lattice/Model IOC –On demand mode – CF to get all PVs – MUNICONV to get physics unit – Lattice/Model to produce result WEB service to capture all history data – CS-Studio panel to present results Lattice Deck Generator MUNICONV IOC Lattice/Model IOC Quad Sext H/V Cor Simulator I PV_ PVs Data Processing Lattice/Model RESTful Django Service

19 BROOKHAVEN SCIENCE ASSOCIATES Middle Layer Services Lattice/Model IOC CSS Panel

20 BROOKHAVEN SCIENCE ASSOCIATES IOC JMS virtual accelerator Tracy-III/Elegant MySQL PVAS HTTP/REST Lattice/Model Python MySQL PVAS HTTP/REST IDODS Python MySQL PVAS HTTP/REST MUNICONV Python SQLite/MongoDB EPICS V4 MASAR Python MySQL PVAS HTTP/REST AI DS Python High Level Physics Applications Distributed Front-Ends IOC Live Optics IOC Live MUNICONV Ethernet Python Apps CAC PVAC REST MMLT CAC PVAC REST Matlab Apps CAC PVAC REST Channel Arch CAC PVAC REST CS-Studio CAC PVAC REST Tracy-III/Elegant IOC Orbit Correction IOC Dispersion Meas …

21 BROOKHAVEN SCIENCE ASSOCIATES High Level Physics Applications EPICS V3 IOC EPICS V3 IOC CS-Studio Python Accelerator Physics High Level App (APHLA Library) Accelerator Physics High Level App (APHLA Library) Finished User AppsDeveloping Architecture Planning EPICS Database User Apps EPICS V4 CS-Studio/BOY EPICS V4 Java Client

22 BROOKHAVEN SCIENCE ASSOCIATES High Level Physics Applications IOC as middle layer services – Orbit correction, dispersion measurement, chromaticity measurement/correction, local bump – beta function measurement + beta beat, tune correction, … Orbit Correction – Use orbit response matrix U, s, V = np.linalg.svd(m, full_matrices=True) rcond = s[kwarg["nsv"] - 1] / s[0] # solve for m*dk + (v0 - ref) = 0 dk, resids, rank, s = np.linalg.lstsq(m, -1.0 * v0, rcond=rcond) k0 = np.array(ca.caget(kker), 'd') if dImax is not None and np.max(np.abs(dk)) != 0.0: dk = dk / np.max(np.abs(dk)) * np.abs(dImax)...

23 BROOKHAVEN SCIENCE ASSOCIATES High Level Physics Applications Local bump for insertion device Global orbit Difference display Adjust offset in X plane Adjust angle in Y plane

24 BROOKHAVEN SCIENCE ASSOCIATES System Integration IDODS MASAR Lattice/Model MUNICONV Client App (PyQt, CS-Studio) Client App (PyQt, CS-Studio) MUNICONV IOC MUNICONV IOC Olog Lattice/Model IOC Lattice/Model IOC... IOC Orbit Correction IOC Channel Finder Channel Archiver

25 BROOKHAVEN SCIENCE ASSOCIATES Conclusion Major milestones – : beam commissioning started – : achieve 200 MeV – : injection into booster – : 3 GeV in booster – : storage ring commissioning started – : 1st turn around SR complete – : 25 mA! – : Near 100% injection efficiency – : 50 mA – : Phase I Commissioning complete – : Official approval for routine operations – : Expecting 1 st light to beamline (10:30 EST) ?