1 / 52

Control System Studio - CSS - Operational Integrated Environment

Control System Studio - CSS - Operational Integrated Environment. Kay Kasemir ORNL/SNS kasemirk@ornl.gov with input from Xihui Chen (SNS), Kunal Shroff (BNL) Oct. 2012 EPICS Meeting, PAL, Korea. Australian Square Kilometre Array Pathfinder (ASKAP), Oct. 5, 2012.

fergus
Download Presentation

Control System Studio - CSS - Operational Integrated Environment

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Control System Studio - CSS -Operational Integrated Environment Kay Kasemir ORNL/SNS kasemirk@ornl.gov with input from Xihui Chen (SNS), Kunal Shroff (BNL) Oct. 2012 EPICS Meeting, PAL, Korea

  2. Australian Square Kilometre Array Pathfinder(ASKAP), Oct. 5, 2012 Juan Guzman, http://www.aps.anl.gov/epics/tech-talk/2012/msg02113.php

  3. CSS for ASKAP Juan Guzman, http://www.aps.anl.gov/epics/tech-talk/2012/msg02113.php

  4. Original EPICS Operator Interfaces Many disjoint tools • Static layout • Inconsistent Look • Online help? • primarily for Linux/X11

  5. PV Name Exchange? • Note PV associated with Alarm • Start StripTool • Add PV to StripTool • Start Archive viewer • Add PV ..

  6. CSS includes an alarm system. Operator notices an alarm… CSS Work Flow: React to Alarm

  7. Context menu of alarm… (“right click”) CSS Example: React to Alarm!

  8. Inspect history of PV, annotate, … Example Work Flow: React to Alarm… 3 2 1

  9. Finally: Make Logbook Entry After inspecting alarm PV history,post commented plotto E-Log!

  10. What is CSS? • To End Users: • Integrated control systemuser interface • To Developers: • A Collaboration • An Architecture • A Toolkit http://www.wendolene.co.uk/Pictures/Happy.jpg http://www.citytowninfo.com/images/education-articles/how-to-become-a-software-engineer-2.jpg

  11. CSS: A Collaboration • Started 2006 between DESY and SNS • Joined by CLS, APS, BNL, ITER, KEK/J-PARC, … • http:// .net/apps/trac/cs-studio • Wiki, Mailing lists • Source code: https://github.com/ControlSystemStudio

  12. CSS: Control System Architecture • Portable environment (Windows, Linux, OS X) • Free development tools • Plug-Ins, Extension points, Registry • Rich Client Platform (RCP): Windows, menus, help, preferences, online update, …

  13. CSS: Software Toolkit It’s BIG • Repository: ~ 1.500.000 lines of Java Code You pick what you need • SNS uses ~300.000 (20%) Perl cloc tool on July 2011 cs-studio3.0 repo and SNS source snapshot, excluding zip files

  14. CSS Plugin Examples • Application Plug-Ins • Strip-Chart: Data Browser • OPI: SDS, BOY • Alarms: NAMS, BEAST • Archive: DESY Archive, BEAUTY • Utilities: Probe, Clock , PV Tree , Psychiatrist • Library Plug-Ins • Control system data types (PV, Sample, …), Life data access, Historic Data Access, Logbook , E-Mail, Authentication, Authorization, … • Extension Points • Life data: Channel Access, Simulated, Local PVs • Historic Data: XML-RPC, RDB, … • Authentication: Kerberos, LDAP, …

  15. Basic CSS Tools Probe • Current value of a PV EPICS PV Tree • Trace PV links Both: • Resize • PV NameDrop-downhistory

  16. Localization CSS Translations • All: (US) English • Most: German • One: Chinese • Next: Korean?

  17. Data Browser Plot ‘live’ and ‘archived’ data over time

  18. Data Browser: Search Archive, Config. Plot

  19. Tabular or Tree view, voice annunciations, … Alarm System (BEAST) Select by Name, Description Acknowledge Sort by Time,Severity, …

  20. BOY – Best OPI, Yet Operator Interface Editor Runtime

  21. SNS Examples • Top-level displays created by operators Tim Southern, Nick Luciano

  22. Flexible Layout • Panels can be closed, reopened, repositioned • Multiple Perspectives • Name, Save, Restore • Multiple document instances share same configuration panels

  23. CSS PV Exchange • PV in anyCSS Tool Context Menu  Select other PV Tools • Opens other tool with that PV

  24. (SNS) PV Fields Viewer Detailed configuration info for a PV @SNS: Info in Oracle, live data from EPICS

  25. PV Fields Viewer: Site-Specific? Fine, but how would I benefit from an SNS-specific tool? It’s “Pluggable”! You can provide the glue code to your EPICS config in RDB, LDAP, text files PV Fields API“get info for PV Name” SNS ImplementationGet info from Oracle Your ImplementationGet info from …

  26. CSS Integration at NSLS-II (BNL)

  27. Channel Viewer KunalShroff (BNL)

  28. Channel Tree by Property KunalShroff (BNL)

  29. Channel Orchestrator / Line Plot KunalShroff (BNL)

  30. Other “Pluggable” Examples • APIs • Live Data Access • Historic Data Access • Authentication • ... • Implementations • EPICS Channel Access, Simulated • Chan.Arch XML-RPC, RDB, … • Kerberos, LDAP • … API Some Implementation Another Implementation

  31. CSS Continues to Evolve: PV Access • org.csstudio.utility.pv • Basic PV ‘subscribe’ mechanism • Provides EPICS time, severity, status, meta data • “Works” for BOY, AlarmServer, ArchiveEngine, … • org.csstudio.utility.pvmanager • Allows code like PVManager.read(mapOf(newValuesOf(channels("channel1", "channel2", "channel3")))).maxRate(ofHertz(1)); • To do: write support, EPICS severity/status, ..

  32. Evolving: Logbook support • Current CSS Logbook API • Basic support for sending current alarms, OPI screenshot, … to logbook • NSLS-2, FRIB “OLog” • ‘Tags’, .. Combined: • ‘Tags’ and other entry properties • Logbook Reader

  33. CSS and Olog KunalShroff (BNL)

  34. CSS and Olog KunalShroff (BNL)

  35. Integrated Help, Preferences • Uniform access to settings, searchable help • Applications • Support Libraries • Logging • Control System access

  36. SNS Plan: CSS for Instrument Automation Detector Aggregator Nexus Nexus Instrument Events Translation Service Data Stream Nexus Sample Environment Sample Environment Equipments Sample Environment Equipments Scan Server Mantid Histogram Service GUI: CSS GUI: CSS GUI: CSS EPICSIOCs Channel Access

  37. 1. Configure “Scan” from BOY 2. Start 3. Monitor

  38. Tabular OPI

  39. Scan Monitor List Scans on Server • Idle: To be executed next • Running: With progress report • Finished, Failed: Past runs

  40. ScanEditor • “Undo” • Drag/dropcommands or PV names (also as XML text) • Device PVs (or alias) can be picked from beamline-specific configuration Add commands Open, save Set parameters

  41. Scan Plot • Plot variables used by scan • Get data from Running or Finished scans

  42. Simulation Mode • Simulated PV changes • Estimates times

  43. Monitor, Adjust Live Scan Scan Info Active Command Adjust properties of live scan

  44. Scripted Scan Jython editor, debugger … or use ‘vi’, shell Jython console

  45. Thick Client vs. Web • CSS: Integrated, rich, portable Still: Needs to be installed on each user’s computer.. Accessible from phones, tablets, toasters? OK, nobody asked about the toaster, yet. But it’s getting there, see www.theonion.com

  46. Web OPI CSS is Desktop app, will probably remain so, but *.opi files can be viewed online!

  47. Site-Specific Setup • Product:Tools andsettingsfor your usersat your site.Decide whichparts of CSSyou need.

  48. Site-Specific Setup • Product for your users • Web site:Initial download

  49. … Site-Specific Setup • Product • Web site • Automatedupdates

  50. Need Site-Specific Setup Developer: End User: Happy Steep Learning Curve for Developers • … but also many Books, online Tutorials • Invest to learn it, and you’ll like it

More Related