MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013.

Slides:



Advertisements
Similar presentations
Guobao Shen BNL Services Guobao Shen
Advertisements

V4 Status and Workshop Report CSS, DISCS, an V4 team.
Paul Chu FRIB Controls Group Leader (Acting) Service-Oriented Architecture for High-level Applications.
1 1999/Ph 514: Channel Access Concepts EPICS Channel Access Concepts Bob Dalesio LANL.
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.
Jan Hatje, DESY AMS – Alarm Management System PCaPAC AMS – Alarm Management System and CSS – Control System Studio Update PCaPAC 2008 J.Stefan Institute,
EPICS Architecture Version 3 Channel Access Client (CAC) Connection Data Transfers WAN/LAN/Local Connection Data Transfers Channel Access Server (CAS)
AccelUtils Gabriele Carcassi, Kunal Shroff – BNL Eric Berryman, Robert Gaul – MSU Ralph Lange – HZB.
LCLS Control System Overview Mike Zelazny SLAC ICD Software Department Accelerator Directorate.
0 BROOKHAVEN SCIENCE ASSOCIATES NSLS II Physics Application and its Open Architecture Guobao Shen Controls Group, Photon Sciences Brookhaven National Laboratory.
9-12 Oct 2000PCaPAC 2000, DESY Hamburg Epics to TINE translator Matthias Clausen, DESY Hamburg Phil Duval, DESY Hamburg Zoltan Kakucs, DESY Hamburg.
Pete Owens MICE Controls & Monitoring Workshop 25th September 2006 MICE Control and Monitoring: General Architecture Subsystem Integration User Interface.
SPEAR PV RDB Database EPICS Collaboration Meeting April 27, SPEAR PV RDB Database Clemens Wermelskirchen.
Brian Martlew 25 th Sept 2006 MICE Control & Monitoring Plan Brian Martlew.
Olog Kunal Shroff Eric Berryman Dejan Dežman Arman Arkilic.
8/21/2015J-PARC1 Data Management Machine / Application State Data.
1 BROOKHAVEN SCIENCE ASSOCIATES Control System Overview Bob Dalesio, Control Group Leader 8 th ASAC meeting for NSLS-II Project May 10-11, 2011.
Data Acquisition at the NSLS II Leo Dalesio, (NSLS II control group) Oct 22, 2014 (not 2010)
EPICS and EDM Overview 03 October 2008 Matt Boyes EPICS and EDM Overview Lecture 1 Matt Boyes.
Tools Strategy for BNL and MSU Gabriele Carcassi - BNL Eric Berryman - MSU.
SRUTHI NAGULAVANCHA CIS 764, FALL 2008 Department of Computing and Information Sciences (CIS) Kansas State University -1- Back up & Recovery Strategies.
50mm Telescope ACS Course Garching, 15 th to 19 th January 2007 January 2007Garching.
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.
‘ActiveX’ CA Server (… and Client) Oct Kay-Uwe Kasemir, LANL.
IRMIS Status EPICS 2009 Vancouver D. A. Dohan. Outline IRMIS hardware model cable/cable run channel list Equipment Inventory System RDB Domain separation.
1/15 G. Manduchi EPICS Collaboration Meeting, Aix-en-Provence, Spring 2010 INTEGRATION OF EPICS AND MDSplus G. Manduchi, A. Luchetta, C. Taliercio, R.
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Jan Hatje, DESY CSS ITER March 2009: Technology and Interfaces XFEL The European X-Ray Laser Project X-Ray Free-Electron Laser 1 CSS – Control.
The CSS Scan System Kay-Uwe Kasemir SNS/ORNL Dec
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS Oct EPICS Meeting, PAL, Korea Control System Studio Training.
Slim Ayadi, Majid Ounsy Tango Meeting Mai Mai 2009 Archiving News.
1 Channel Access Concepts – EPICS Training – K.Furukawa – Mar EPICS Channel Access Concepts Kazuro Furukawa, KEK, ( ) (Bob Dalesio, LANL,
MASAR Server & Application Guobao Shen Photon Sciences Department Brookhaven National Laboratory Collaboration Working Group Oct 02, 2013.
Jožef Stefan Institute Oct. 8-9, 2005ACS 2005 Workshop Comparison of EPICS and ACS M. Plesko – JSI and Cosylab, in collaboration with Phil Duval, DESY.
March 2008EPICS Meeting in Shanghai1 KEKB Control System Status Mar Tatsuro NAKAMURA KEKB Control Group, KEK.
Petra III Status Teresa Núñez Hasylab-DESY Tango Meeting DESY,
1 BROOKHAVEN SCIENCE ASSOCIATES Control System Overview Bob Dalesio, Control Group HLA Review for NSLS-II Project April
Managed by UT-Battelle for the Department of Energy CSS Update Matthias Clausen, Helge Rickens, Jan Hatje and DESY Delphy Armstrong, Xihui Chen,
Peter Chochula ALICE Offline Week, October 04,2005 External access to the ALICE DCS archives.
A U.S. Department of Energy Office of Science Laboratory Operated by The University of Chicago Argonne National Laboratory Office of Science U.S. Department.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 12, 2010.
1. LabVIEW and EPICS Workshop EPICS Collaboration Meeting Fall 2011.
BROOKHAVEN SCIENCE ASSOCIATES Enhanced Directory Service Ralph Lange EPICS Collaboration Meeting October 11, 2009.
1 BROOKHAVEN SCIENCE ASSOCIATES High Level Applications Infrastructure and Current Status Guobao Shen, Lingyun Yang* Controls Group & Accelerator Physics.
This material is based upon work supported by the U.S. Department of Energy Office of Science under Cooperative Agreement DE-SC Michigan State.
Matthias Clausen, Jan Hatje, DESY CSS Overview – Alarm System and Management CSS Overview - GSI, 11 Februrary CSS Overview Alarm System and CSS.
11 th February 2008Brian Martlew EPICS for MICE Status of the MICE slow control system Brian Martlew STFC, Daresbury Laboratory.
RDB Issues at SLAC Archiver Store General EPICS Support.
1 Channel Access Concepts – IHEP EPICS Training – K.F – Aug EPICS Channel Access Concepts Kazuro Furukawa, KEK (Bob Dalesio, LANL)
The DCS Databases Peter Chochula. 31/05/2005Peter Chochula 2 Outline PVSS basics (boring topic but useful if one wants to understand the DCS data flow)
ESS Integrated Control System Software Core Components S.Gysin
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.
Managed by UT-Battelle for the Department of Energy Quest for the Best Ever Alarm System Tool Kay Kasemir Oct
Software Core Components (ICS WP3) Suzanne Gysin Work Package Lead February 22, 2014.
1 BROOKHAVEN SCIENCE ASSOCIATES EPICS Version 4 – Normative V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
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.
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 – Development Plan V4 Team – presented by Bob Dalesio EPICS Meeting October 7, 2011.
AccelUtils Gabriele Carcassi, Kunal Shroff – BNL
Presented by Li Gang Accelerator Control Group
ChannelFinder Directory Service
EPICS Version 4 Abstract:
EPICS 7 Matej Sekoranyja, Marty Karimer, Michael Davidsaver, Ralph Lange, Andrew Johnson, Timo Korhonen, Heinz Junkes, Patrick Marschalik, Murali Shankar,
Presentation transcript:

MASAR Service Guobao Shen Photon Sciences Department Brookhaven National Laboratory EPICS Collaboration Workshop Oct 05, 2013

Outline  What’s MASAR & architecture  MASAR server  MASAR client  Experience at NSLS II 2

Infrastructure  Architecture 3 Ethernet Distributed Front-Ends CAS PVAS Diag db CAS PVAS PS db CAS PVAS RF db Physical Device CAS PVAS VA db Physical Device CAS JMS Service Tracy-III Simulation MySQL/IRMIS PVAS HTTP/REST Lattice/Model Python MySQL PVAS HTTP/REST Channel Finder Java MySQL/IRMIS PVAS HTTP/REST MUNICONV Python SQLite/IRMIS pvAccess/chan nelRPC MASAR Python Python Apps CAC PVAC REST MMLT CAC PVAC REST Matlab Apps CAC PVAC REST Channel Arch CAC PVAC REST CSS pvManager CAC PVAC REST

What’s MASAR?  MASAR  Machine Snapshot, Archiving, and Retrieve  An EPICS tool for experimental control system  Machine  A facility controlled by EPICS, accelerator for example  Snapshot  Data at specific time point  Value, time stamp, connection status, alarm status, alarm severity  Similar tools, but different purpose  IOC automatic save & restore  IOC bumpless rebooting  Channel Archiving  Archive pre-defined configuration periodically  All data saved time serially 4

What’s MASAR?  MASAR Glance 5

MASAR Architecture 6 Service Engine pvAccess/channelRPC PyQt Channel Access Gather/C++ Low Level Python Client Library pvAccess/channelRPC Client (C++) pvAccess DSL-PY Module PYMASAR (SQLite) PYMASAR (SQLite) Scripting IOC Scripting High Level Scripting API CSS/BOY pvAccess Client API Library (Java) Finished User AppsPlanningDeveloping Others (Matlab) Others (Matlab)

MASAR Server  Snapshot taken with pre-configuration  RDB to store configuration and snapshot data  SQLite  PYMASAY to access SQLite  API in Python  Isolate RDB and service engine  Schema change transparent  RDB pluggable  DSL-PY to manage data in Python & C++ domain  Service engine  Analyze & response client commands  Implement in EPICS V4/C++  Use pvAccess/channelRPC for communication 7

MASAR Server  Snapshot configuration 8 pv group configuration event... event data pv Snapshot

MASAR Server  Snapshot configuration  EPICS PV orientated  Support all scalar and waveform PV types  Float, double, string, and enum  PV group  Collection of PV names  Can be a mix of any of the types  One PV can be in many PV groups  Configuration  Collection of PV groups, therefore, collection of PV names  One PV group can be in many configurations  Snapshot  An event happened at a particular time  Belongs to one configuration  One configuration can have many events  Each event is one data set  Header information + meta data (value, time stamp)

MASAR Client/UI  API for scripting environment  7 APIs in Python  PyQt UI  Based on above APIs  Browse config  Browse event  Take snapshot  Retrieve data  Compare data  Restore machine  Export data 10

MASAR Client/UI  Data plot for waveform PV  Saved data and live data of one waveform PV in one graph 11

MASAR Client/UI  Multiple data sets comparison  Support up to 9 data sets 12

Experience at NSLS II 13  Deployed in control network from the first day (3/27/2012)  Configuration increasing with time

Experience at NSLS II 14  Snapshots taken with time

Experience at NSLS II 15  Snapshots taken with time  Events (by :18:48) total taken: 369, approved: 108

Experience at NSLS II 16  Database size growing over time

Plan  Tools for pv group/configuration management  Display all PV& PV group(s) of a configuration  Compare existing configuration  Create a new configuration  RDB data management  Performance concerns saving large configuration  Lots of PVs  Large data size of PV  Migrate to a dedicate RDB server  Separate meta data out of SQLite  PyQt UI continuous improvement  CSS integration for client  ChannelFinder integration for configuration 17

Backup 18

Experience at NSLS II  Question offten asked  Why timing mode was often changed?  Why BPM calibration offset went back to 0? We just calibrated it recently, and it should not be changed after it was determined.  Why all quadrupoles’ setting are 0 when I try to restore a snapshot?  I want to take one snapshot of configure A, and right after 1 second, take another snapshot of configure B. Then combine those 2 data set to compare them. Does MASAR support this requirement?  Why the file size growing with time since the total pv are same? 19

Experience at NSLS II  Lesson learned  Design each configuration carefully  Collect requirement from user: physicist/operator  Ask sub-system control experts to review it before creating a configuration  Separate operator configuration and sub-system export configuration  Not all pvs need to be restored  Obvious, but not everyone is aware of it 20

Experience at NSLS II  Lesson learned  MASAR provides restore function inside the PyQt GUI  Check snapshot before restoring  Restoring machine to the status MASAR recorded  Not the status in mind  For that particular question, with Olog, we confirmed that snapshot was taken during machine shutdown.  MASAR is aiming to snapshot the data.  User is encouraged to develop their own application to use the data  Check the timestamp of both event and pvs when using the data  Timestamp of event is when the snapshot was taken  Timestamp of pv is when the pv was processed  It is the SQLite database file size, not each snapshot.  All snapshots are saved into one database 21