control system studio - css - operational integrated environment

52
Managed by UT-Battelle for the Department of Energy Kay Kasemir ORNL/SNS [email protected] with input from Xihui Chen (SNS), Kunal Shroff (BNL) Oct. 2012 EPICS Meeting, PAL, Korea Control System Studio - CSS - Operational Integrated Environment

Upload: fergus

Post on 14-Jan-2016

34 views

Category:

Documents


0 download

DESCRIPTION

Control System Studio - CSS - Operational Integrated Environment. Kay Kasemir ORNL/SNS [email protected] with input from Xihui Chen (SNS), Kunal Shroff (BNL) Oct. 2012 EPICS Meeting, PAL, Korea. Australian Square Kilometre Array Pathfinder (ASKAP), Oct. 5, 2012. - PowerPoint PPT Presentation

TRANSCRIPT

Page 1: Control System Studio  - CSS - Operational Integrated Environment

Managed by UT-Battellefor the Department of Energy

Kay Kasemir

ORNL/SNS

[email protected]

with input from Xihui Chen (SNS), Kunal Shroff (BNL)

Oct. 2012 EPICS Meeting, PAL, Korea

Control System Studio - CSS -

Operational Integrated Environment

Page 2: Control System Studio  - CSS - Operational Integrated Environment

2 Managed by UT-Battellefor the Department of Energy

Australian Square Kilometre Array Pathfinder(ASKAP), Oct. 5, 2012

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

Page 3: Control System Studio  - CSS - Operational Integrated Environment

3 Managed by UT-Battellefor the Department of Energy

CSS for ASKAP

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

Page 4: Control System Studio  - CSS - Operational Integrated Environment

4 Managed by UT-Battellefor the Department of Energy

Original EPICS Operator Interfaces

Many disjoint tools– Static layout

– Inconsistent Look

– Online help?

– primarily for Linux/X11

Page 5: Control System Studio  - CSS - Operational Integrated Environment

5 Managed by UT-Battellefor the Department of Energy

PV Name Exchange?

Note PV associated with Alarm

Start StripTool– Add PV to StripTool

Start Archive viewer– Add PV ..

Page 6: Control System Studio  - CSS - Operational Integrated Environment

6 Managed by UT-Battellefor the Department of Energy

CSS Work Flow: React to Alarm

CSS includes an alarm system.

Operator notices an alarm…

Page 7: Control System Studio  - CSS - Operational Integrated Environment

7 Managed by UT-Battellefor the Department of Energy

CSS Example: React to Alarm!

Context menu of alarm… (“right click”)

Page 8: Control System Studio  - CSS - Operational Integrated Environment

8 Managed by UT-Battellefor the Department of Energy

Example Work Flow: React to Alarm…

Inspect history of PV, annotate, …

Page 9: Control System Studio  - CSS - Operational Integrated Environment

9 Managed by UT-Battellefor the Department of Energy

Finally: Make Logbook Entry

After inspecting alarm PV history,post commented plotto E-Log!

Page 10: Control System Studio  - CSS - Operational Integrated Environment

10 Managed by UT-Battellefor the Department of Energy

What is CSS?

a) To End Users:– Integrated control system

user interface

b) 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

Page 11: Control System Studio  - CSS - Operational Integrated Environment

11 Managed by UT-Battellefor the Department of Energy

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

CSS: A Collaboration

Page 12: Control System Studio  - CSS - Operational Integrated Environment

12 Managed by UT-Battellefor the Department of Energy

– Portable environment (Windows, Linux, OS X)

– Free development tools

– Plug-Ins, Extension points, Registry

– Rich Client Platform (RCP): Windows, menus, help, preferences, online update, …

CSS: Control System Architecture

Page 13: Control System Studio  - CSS - Operational Integrated Environment

13 Managed by UT-Battellefor the Department of Energy

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

Page 14: Control System Studio  - CSS - Operational Integrated Environment

14 Managed by UT-Battellefor the Department of Energy

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, …

Page 15: Control System Studio  - CSS - Operational Integrated Environment

15 Managed by UT-Battellefor the Department of Energy

Basic CSS Tools

Probe– Current value of a PV

EPICS PV Tree– Trace PV links

Both:ResizePV Name

Drop-downhistory

Page 16: Control System Studio  - CSS - Operational Integrated Environment

16 Managed by UT-Battellefor the Department of Energy

Localization

CSS Translations– All: (US) English– Most: German

– One: Chinese

– Next: Korean?

Page 17: Control System Studio  - CSS - Operational Integrated Environment

17 Managed by UT-Battellefor the Department of Energy

Data Browser

Plot ‘live’ and ‘archived’ data over time

Page 18: Control System Studio  - CSS - Operational Integrated Environment

18 Managed by UT-Battellefor the Department of Energy

Data Browser: Search Archive, Config. Plot

Page 19: Control System Studio  - CSS - Operational Integrated Environment

19 Managed by UT-Battellefor the Department of Energy

Alarm System (BEAST)

Tabular or Tree view, voice annunciations, …

Sort by Time,Severity, …Sort by Time,Severity, …

Select by Name, Description

Select by Name, Description

AcknowledgeAcknowledge

Page 20: Control System Studio  - CSS - Operational Integrated Environment

20 Managed by UT-Battellefor the Department of Energy

BOY – Best OPI, Yet

Operator Interface Editor Runtime

Page 21: Control System Studio  - CSS - Operational Integrated Environment

21 Managed by UT-Battellefor the Department of Energy

SNS Examples

Top-level displays created by operators

Tim Southern, Nick Luciano

Page 22: Control System Studio  - CSS - Operational Integrated Environment

22 Managed by UT-Battellefor the Department of Energy

Flexible Layout

Panels can be closed, reopened, repositioned

Multiple Perspectives– Name, Save, Restore

Multiple document instances share same configuration panels

Page 23: Control System Studio  - CSS - Operational Integrated Environment

23 Managed by UT-Battellefor the Department of Energy

CSS PV Exchange

PV in any CSS Tool Context Menu Select other PV Tools– Opens other tool with that PV

Page 24: Control System Studio  - CSS - Operational Integrated Environment

24 Managed by UT-Battellefor the Department of Energy

(SNS) PV Fields Viewer

Detailed configuration info for a PV@SNS: Info in Oracle, live data from EPICS

Page 25: Control System Studio  - CSS - Operational Integrated Environment

25 Managed by UT-Battellefor the Department of Energy

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”

PV Fields API“get info for PV Name”

SNS ImplementationGet info from Oracle

SNS ImplementationGet info from Oracle

Your Implementation

Get info from …

Page 26: Control System Studio  - CSS - Operational Integrated Environment

26 Managed by UT-Battellefor the Department of Energy

CSS Integration at NSLS-II (BNL)

Page 27: Control System Studio  - CSS - Operational Integrated Environment

Channel Viewer

Kunal Shroff (BNL)

Page 28: Control System Studio  - CSS - Operational Integrated Environment

Channel Tree by Property

Kunal Shroff (BNL)

Page 29: Control System Studio  - CSS - Operational Integrated Environment

Channel Orchestrator / Line Plot

Kunal Shroff (BNL)

Page 30: Control System Studio  - CSS - Operational Integrated Environment

30 Managed by UT-Battellefor the Department of Energy

Other “Pluggable” Examples

APIAPI

Some Implementation

Some Implementation

Another Implementation

APIs– Live Data Access

– Historic Data Access

– Authentication

– ...

Implementations– EPICS Channel Access,

Simulated

– Chan.Arch XML-RPC, RDB, …

– Kerberos, LDAP

– …

Page 31: Control System Studio  - CSS - Operational Integrated Environment

31 Managed by UT-Battellefor the Department of Energy

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, ..

Page 32: Control System Studio  - CSS - Operational Integrated Environment

32 Managed by UT-Battellefor the Department of Energy

Evolving: Logbook support

a) Current CSS Logbook API– Basic support for sending

current alarms, OPI screenshot, … to logbook

b) NSLS-2, FRIB “OLog”– ‘Tags’, ..

Combined:– ‘Tags’ and other entry properties

– Logbook Reader

Page 33: Control System Studio  - CSS - Operational Integrated Environment

CSS and Olog

Kunal Shroff (BNL)

Page 34: Control System Studio  - CSS - Operational Integrated Environment

CSS and Olog

Kunal Shroff (BNL)

Page 35: Control System Studio  - CSS - Operational Integrated Environment

35 Managed by UT-Battellefor the Department of Energy

Integrated Help, Preferences Uniform access to settings,

searchable help– Applications

– Support Libraries Logging Control System access

Page 36: Control System Studio  - CSS - Operational Integrated Environment

36 Managed by UT-Battellefor the U.S. Department of Energy

SNS Plan: CSS for Instrument Automation

Sample Environment Equipments

Sample Environment Equipments

Sample Environment Equipments

Sample Environment Equipments

Sample Environment

Sample Environment

DetectorDetector Instrument EventsInstrument EventsAggregatorAggregator Translation

ServiceTranslation

Service

MantidMantidHistogramService

HistogramService

Data StreamData Stream

GUI: CSSGUI: CSSGUI: CSSGUI: CSSGUI: CSSGUI: CSS

EPICSIOCsEPICSIOCs

Scan ServerScan Server

Channel Access

Page 37: Control System Studio  - CSS - Operational Integrated Environment

37 Managed by UT-Battellefor the U.S. Department of Energy

“Scan” from BOY 1. Configure1. Configure

2. Start2. Start

3. Monitor3. Monitor

Page 38: Control System Studio  - CSS - Operational Integrated Environment

38 Managed by UT-Battellefor the U.S. Department of Energy

Tabular OPI

Page 39: Control System Studio  - CSS - Operational Integrated Environment

39 Managed by UT-Battellefor the U.S. Department of Energy

Scan Monitor

List Scans on Server– Idle: To be executed next– Running: With progress report– Finished, Failed: Past runs

Page 40: Control System Studio  - CSS - Operational Integrated Environment

40 Managed by UT-Battellefor the U.S. Department of Energy

ScanEditor Add commands

Set parameters

Open, save

• “Undo”

• Drag/dropcommands or PV names (also as XML text)

• Device PVs (or alias) can be picked from beamline-specific configuration

Page 41: Control System Studio  - CSS - Operational Integrated Environment

41 Managed by UT-Battellefor the U.S. Department of Energy

Scan Plot

• Plot variables used by scan

• Get data from Running or Finished scans

Page 42: Control System Studio  - CSS - Operational Integrated Environment

42 Managed by UT-Battellefor the U.S. Department of Energy

Simulation Mode

• Simulated PV changes

• Estimates times

Page 43: Control System Studio  - CSS - Operational Integrated Environment

43 Managed by UT-Battellefor the U.S. Department of Energy

Monitor, Adjust Live Scan

Active CommandActive Command

Scan InfoScan Info

Adjust propertiesof live scan

Adjust propertiesof live scan

Page 44: Control System Studio  - CSS - Operational Integrated Environment

44 Managed by UT-Battellefor the U.S. Department of Energy

Scripted Scan

… or use ‘vi’, shell

Jython editor, debugger

Jython editor, debugger

Jython consoleJython console

Page 45: Control System Studio  - CSS - Operational Integrated Environment

45 Managed by UT-Battellefor the U.S. Department of Energy

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

Page 46: Control System Studio  - CSS - Operational Integrated Environment

46 Managed by UT-Battellefor the Department of Energy

Web OPI

CSS is Desktop app, will probably remain so, but

*.opi files can be viewed online!

Page 47: Control System Studio  - CSS - Operational Integrated Environment

47 Managed by UT-Battellefor the Department of Energy

Site-Specific Setup

1. Product:Tools andsettingsfor your usersat your site.

Decide whichparts of CSSyou need.

Page 48: Control System Studio  - CSS - Operational Integrated Environment

48 Managed by UT-Battellefor the Department of Energy

Site-Specific Setup

1. Product for your users

2. Web site:Initial download

Page 49: Control System Studio  - CSS - Operational Integrated Environment

49 Managed by UT-Battellefor the Department of Energy

… Site-Specific Setup

1. Product

2. Web site

3. Automatedupdates

Page 50: Control System Studio  - CSS - Operational Integrated Environment

50 Managed by UT-Battellefor the Department of Energy

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

Page 51: Control System Studio  - CSS - Operational Integrated Environment

51 Managed by UT-Battellefor the Department of Energy

What is CSS?

Based onhttp://buzzynews.com/wp-content/uploads/2008/01/steve-jobs-presente-le-mac-book-air-lordinateur-portable-le-plus-fin-du-monde.jpg

Integration ofvariouscontrol-system tools into aconsistent product

Excellentforend-users!

Page 52: Control System Studio  - CSS - Operational Integrated Environment

52 Managed by UT-Battellefor the Department of Energy

Links

CSS– SNS Products to try:

http://ics-web.sns.ornl.gov/css

– Guide book, source-to-product:http://cs-studio.sourceforge.net/docbook/

– CSS Wiki:http://sourceforge.net/apps/trac/cs-studio

Eclipse– http://www.eclipse.org/