The European XRay Laser Project XFEL XRay FreeElectron

  • Slides: 34
Download presentation
The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS – Control System Studio

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS – Control System Studio Name Space browser/ Setup CSS - Tools CSS – Control System Studio Summary Presentation @ GSI February 11 th 2009 Matthias Clausen, Jan Hatje (DESY / MKS-2) Presented by: Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 1

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Overview Name Server for EPICS

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Overview Name Server for EPICS Record Names – How to set up a name server – IOC and lists of records – LDAP set up Name Space Browser – Generic approach – Examples • DESY-EPICS • DESY-TINE CSS – the integrated development platform – Creating EPICS databases using CSS-DCT – Creating State Notation Language (SNL) programs – Analyzing the network traffic using ca. Snooper Summary Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 2

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Setting up a Name Server

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Setting up a Name Server for EPICS IOCs 1. Create a list of records from the IOC during boot time • Create a file in your preferred directory on the file server with the name: logical. Ioc. Name 2. Create IOCpathes file specifying the LDAP structure. • At DESY the file is created by a script which is crawling through the IOC boot directories. 3. Run ldap. Updater – a CSS headless application • ldap. Updater will use the files mentioned above create LDAP sub-trees and write record names to the LDAP tree Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 3

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Create a File containing all

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Create a File containing all Record Names IOC startup File: # startup ######### Individual Settings ################ home="/vx. Boot/ioc/mth/xmts. Kryo. Stand" app="xmts. Kryo. Stand“ … ioc. Init … # Create record list on /applic/dir. Server/xxxxx sprintf startup. Buffer, "/applic/directory. Server/%s", app dbl 0, startup. Buffer … Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 4

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser IOCpathes File Logical Name xmts.

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser IOCpathes File Logical Name xmts. Kryo. Pump xmts. Kryo. Stand test. LDAP test. PBDP kryo. KS 2 wiener. VME … Boot Path /vx. Boot/ioc/mth/xmts. Kryo. Pump /vx. Boot/ioc/mth/xmts. Kryo. Stand /vx. Boot/ioc/test. LDAP /vx. Boot/ioc/test. PBDP /vx. Boot/ioc/kryo. KS 2 /vx. Boot/ioc/utility/wiener. VME Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools Physical Name epics. PC 02 epics. PC 03 epics. PC 04 epics. PC 21 epics. PC 23 epics. PC 24 5

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Setting up the LDAP Server

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Setting up the LDAP Server http: //css. desy. de/content/e 428/e 262/e 2469/index_eng. html Sun DS 6. 2 for Solaris Table of contents: Download Installation Loading EPICS Schema/Data Creating Replication Deleting Replication Tuning Replication Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 6

The European X-Ray Laser Project The CSS Onion: XFEL X-Ray Free-Electron Laser Namespace Browser

The European X-Ray Laser Project The CSS Onion: XFEL X-Ray Free-Electron Laser Namespace Browser T I N E Na me s p ace Br o w ser LDAP Server OSGi Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 7

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser Plugin to Display

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser Plugin to Display Hierarchical Name Configurations Two Implementations: EPICS: • The EPICS names are stored in an LDAP server • The Structure has three levels: Facility | IOC | Record • Clicking on the last Element (Record) will activate the Contribution Menu -> Activate other plugins passing the record name. TINE (DESY): • TINE names are stored in TINE name server • The Structure has three levels: Facility | IOC | Record • Clicking on the last Element (Record) will activate the Contribution Menu -> Activate other plugins passing the record name. Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 8

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser (EPICS) Call up:

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser (EPICS) Call up: • Display • PV-Table • …… Drag and Drop • Into PV-Table • Into Display (edit mode) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 9

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser (TINE) Call up:

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Browser (TINE) Call up: • Display • PV-Table • …… Drag and Drop • Into PV-Table • Into Display (edit mode) No DAL support – yet for PV-Table Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 10

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace-Browser (TINE) and Data. Browser

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace-Browser (TINE) and Data. Browser Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 11

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Searching the Namespace for

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Namespace Searching the Namespace for record names according to a given pattern (probably only relevant for EPICS) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 12

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Who is

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Who is involved? • Design and Implementation by DESY Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 13

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Relevance for

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Relevance for GSI Users: • The existing implementation can be used on any LDAP server. – The DESY schema must be used • The current setup runs on a Sun Cluster – Provides reliable operation Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 14

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Future Plans:

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Name Space Browser Future Plans: • Add more metadata to: – Each record entry – Each IOC entry Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 15

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS an Integrated Programming Environment

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS an Integrated Programming Environment • • State Notation Language Database Creation IOC diagnostic IOC Management / EPICS-IDE (future) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 16

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser State Notation Language SNL Matthias

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser State Notation Language SNL Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 17

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser State Notation Language (SNL) •

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser State Notation Language (SNL) • Programming of sequential operations • SNL program is executed on the IOC (or on the host) • Interaction with EPICS databases via channel access Declaration part State Set part Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 18

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser The new SNL Editor •

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser The new SNL Editor • SNL Project type with adequate folder structure • SNL Editor is inherited from Eclipse standard editor • SNL Editor is connected to *. st files • SNC compiles SNL- files with each saving • Compiler options settable in preference page Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 19

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Editor features • SNL

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Editor features • SNL Keywords are colored • Outline view shows program structure • Items in Outline view are linked with editor items • Checks the basic structure of the program • Problem view with a list of code errors Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 20

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger IOC Remote Management

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger IOC Remote Management • SNL Debugger is part of the Remote IOC Management • Redundancy Monitor Task (RMT) distributes XML commands • RMT reads and writes to SNL Exec • SNL Debugger is integrated in CSS • Using the CSS IOC-Communication for redundant IOCs (may run on non-redundant IOCs) • Support Drag and Drop and object contribution of CSS datatypes IOC, Vx. Works CAN Driver CSS SNL Debugger CCE Command (XML) Response (XML) Redundancy Monitor Task (RMT) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools SNL Exec 21

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger • Examine and

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger • Examine and check running state programs • Read / Write values of variables • Jump to states of a state set • Control run mode of state sets • Host list is configurable by preferences • SNL Documentation: Menu ‘Help’ → ’Help Contents’ → ’CSS Applications’ Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 22

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger User Interface IP

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Debugger User Interface IP Address of IOC Remote Management General information Node information SNL Debugger List of running state programs List of commands to display SNL Exec status List of commands to manage SNL Exec Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 23

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Editor – Plans •

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser SNL Editor – Plans • Adding graphic representation of state sets (GEF) • Adding messages (with reply) to interact with the operator • Integrating the SNL editor into ‚a‘ EPICS-IDE – Starting from Ken‘s EPICS-IDE? – Integrating an EPICS-IDE in CSS? – Improving editing functons • EPICS-IDE features: – Compiling SNL programs – Downloading SNL programs to the IOC (in the works) – Running SNL programs on the host (Linux/ Mac? ) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 24

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS Database Creation Tool CSS-DCT

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS Database Creation Tool CSS-DCT Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 25

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS-DCT Creating Hierarchical EPICS Databases

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser CSS-DCT Creating Hierarchical EPICS Databases interactively (like Visual DCT – VDCT) Persistent Store in Relational Database (Oracle) Visual Part for Documentation purpose Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 26

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Channel Access Snooper ca. Snooper

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Channel Access Snooper ca. Snooper SDS Connection View Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 27

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser ca. Snooper Matthias Clausen, DESY

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser ca. Snooper Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 28

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Remote Ca. Snooper Data Ca.

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Remote Ca. Snooper Data Ca. Snooper Subnet A Ca. Snooper Subnet B Subnet C get data get. List XMPP CSS Receiving the Ca. Snooper All CSS instances Information from remote à RCP Ca. Snooper servers. à CSS-headless Server register here. Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 29

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Combining Tools: Connection View/ Ca.

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Combining Tools: Connection View/ Ca. Snooper Bad IOC database Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 30

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Information Transfer by means of

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Information Transfer by means of Contributions ‚Information on your fingertip‘ From Graphics From PV Table Sequence: 1. Start CSS From Connection View Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 2. From any application start any other application (plugin) with PV data object or list of PVs or Frontend. Controller or data. Browser data. 31

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Summary Matthias Clausen, DESY CSS

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Summary Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 32

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Current Status • CSS Version

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Current Status • CSS Version 1. 1 is available from: http: //css. desy. de/content/e 413/index_eng. html – DESY plugins can be added from the update site • Working with the University of Hamburg: – Four Master thesis have been written in the CSS context. – Two doctoral thesis on the way • Several plugins have been written by external collaborators (Data. Browser, PV-Table) • CSS is the platform for cryogenic controls and utitlity controls for the European XFEL. • Alarm Management System, Alarm Plugins and Data. Browser are running in production, Synoptic Displays are going into production these days (operator training has just begun) Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 33

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Outlook, Further information • CSS

The European X-Ray Laser Project XFEL X-Ray Free-Electron Laser Outlook, Further information • CSS 1. 2 will be released as soon as the transition from DCF to ECF has been finished. • For more information or to download CSS please see the CSS website: http: //css. desy. de • To get additional CSS applications (plugins) please use the update mechanism: Help → Software Updates → Find and Install → Search for new features • For questions please contact: matthias. clausen@desy. de jan. hatje@desy. de - Thank you - Matthias Clausen, DESY CSS Presentation @ GSI Feb. 2009: CSS Namespace Browser and CSS Tools 34