Скачать презентацию BOY A Modern Graphical Operator Interface Editor and Скачать презентацию BOY A Modern Graphical Operator Interface Editor and

2e2d9ecd1a7ab8f7eae938a60a9406ed.ppt

  • Количество слайдов: 26

BOY, A Modern Graphical Operator Interface Editor and Runtime Xihui Chen, Kay Kasemir chenx BOY, A Modern Graphical Operator Interface Editor and Runtime Xihui Chen, Kay Kasemir chenx [email protected] gov RAD Control Group

What is BOY? • BOY (Best OPI, Yet) – An Operator Interface (OPI) development What is BOY? • BOY (Best OPI, Yet) – An Operator Interface (OPI) development and runtime environment • OPI – Graphical User Interface for a control system • Similar to EDM, MEDM, SDS, DM 2 K… 2 Managed by UT-Battelle for the U. S. Department of Energy

Why Best? • Best of SDS (Synoptic Display Studio: DESY) ü Java portability ü Why Best? • Best of SDS (Synoptic Display Studio: DESY) ü Java portability ü CSS integration ü Every property can be dynamic ü Modern Graphical Editor based on GEF • Best of EDM (Extensible Display Manager: John Sinclair) ü Simple things (Label, Textupdate, …) are simple ü Macros • Combined with New Ideas ü Dynamic via PV-triggered scripts or rules ü Web browser like Runtime (tab, CTRL, SHIFT click) ü Comprehensive types of Widgets ü Good ideas from EPICS community 3 Managed by UT-Battelle for the U. S. Department of Energy Thanks to the creators of SDS and EDM for their

OPI Editor Perspective • All-In-One workbench for OPI editing Toolbar Navigator Editor Palette Properties OPI Editor Perspective • All-In-One workbench for OPI editing Toolbar Navigator Editor Palette Properties Outline 4 Managed by UT-Battelle for the U. S. Department of Energy Console

OPI Editor Perspective • Every View in the workbench can be dragged around, detached, OPI Editor Perspective • Every View in the workbench can be dragged around, detached, minimized, maximized or closed. • Recover the default perspective by resetting it. A Customized Perspective 5 Managed by UT-Battelle for the U. S. Department of Energy

Editing Features • Adding Widgets – Drag & Drop • Snap to G, align, Editing Features • Adding Widgets – Drag & Drop • Snap to G, align, distribute • Ctrl+Drag widgets to duplicate • Select multiple widgets to – Edit common properties – Adjust size or move around 6 Managed by UT-Battelle for the U. S. Department of Energy

A simple OPI • Create a functional OPI in a breeze 1. Create a A simple OPI • Create a functional OPI in a breeze 1. Create a new OPI file 2. Drag a widget (Knob for example) from palette to editor 3. Enter the PV name in Properties view 4. Click the “Run ” button to execute it! • What you will get ü ü ü 7 PV value as text and via knob position PV severity reflected in border color PV name and value shown in tool-tip PV’s display limits set the knob’s default range PV’s Hi. Hi, High, Low, Lo. Lo limits displayed in ramp ü Indicate ‘disconnected’ state via a pink border Managed by UT-Battelle for the U. S. Department of Energy

OPI Runtime • Behaves like a Web Browser 8 – OPIs display in Tabs OPI Runtime • Behaves like a Web Browser 8 – OPIs display in Tabs can be rearranged. – Open related OPI in a new Tab via Ctrl+click , or in a new Window via Shift+click. – Navigate Backward/Forward – Zoom In/Out – Full Screen/Compact Mode – Screenshot to printer, Email, Managed by UT-Battelle for the U. S. Department of Energy Navigation Zoom In/Out Top OPIs

Rules - Easily to make widget properties dynamic • Directly send PV’s value to Rules - Easily to make widget properties dynamic • Directly send PV’s value to a property • Condition dependent property value • Multiple rules per widget 9 Managed by UT-Battelle for the U. S. Department of Energy

Scripts - Intelligentize your OPI Javascript Access Widget Access PV Call Java code 10 Scripts - Intelligentize your OPI Javascript Access Widget Access PV Call Java code 10 Managed by UT-Battelle for the U. S. Department of Energy

Scripts - Intelligentize your OPI • Don’t like Javascript? Use Python Script 11 Managed Scripts - Intelligentize your OPI • Don’t like Javascript? Use Python Script 11 Managed by UT-Battelle for the U. S. Department of Energy

Macros • Format: $(macro_name) or ${macro_name} • Embedded in text-base properties – PV Name, Macros • Format: $(macro_name) or ${macro_name} • Embedded in text-base properties – PV Name, tooltip, rules … • Replaced at runtime • Powerful way for duplicating duplicate 12 Managed by UT-Battelle for the U. S. Department of Energy

Color & Font Macros • Predefine colors or fonts in text files • Using Color & Font Macros • Predefine colors or fonts in text files • Using Color and Font macro will help you üHave consistent look for a set of OPIs across Linux, Windows, Mac OS üAdjust for example “Title” in one place üReuse some particular color or font 13 Managed by UT-Battelle for the U. S. Department of Energy

Color Macros 14 Managed by UT-Battelle for the U. S. Department of Energy Color Macros 14 Managed by UT-Battelle for the U. S. Department of Energy

Font Macros Note slightly different definition to achieve common look on Linux, Windows, Mac Font Macros Note slightly different definition to achieve common look on Linux, Windows, Mac OS 15 Managed by UT-Battelle for the U. S. Department of Energy

Send PV name to other CSS tools Use common CSS Process Variable context menu Send PV name to other CSS tools Use common CSS Process Variable context menu to send PV name to other CSS tools 16 Managed by UT-Battelle for the U. S. Department of Energy

Drag & Drop • Drag Source could be text or PV • Drop to Drag & Drop • Drag Source could be text or PV • Drop to OPI editor to create widgets 17 Managed by UT-Battelle for the U. S. Department of Energy

Widgets • Support various types of data – Double, Integer, String, Enum, Boolean, Waveform… Widgets • Support various types of data – Double, Integer, String, Enum, Boolean, Waveform… – Allow plugging in customized widgets • Data Browser Widget – browsing history and live data in BOY 18 Managed by UT-Battelle for the U. S. Department of Energy

Technical View • Coding in Java, based on Eclipse, GEF and CSS platform • Technical View • Coding in Java, based on Eclipse, GEF and CSS platform • Portable to Windows, Mac OS and Linux • BOY is a set of Eclipse Plugins • Integrated with CSS natively, also possible to integrate it with other RCP applications 19 Managed by UT-Battelle for the U. S. Department of Energy

OPIs in CCR • The OPIs deployed in CCR can also be opened from OPIs in CCR • The OPIs deployed in CCR can also be opened from SNS office network Open the main screen from here 20 Managed by UT-Battelle for the U. S. Department of Energy

OPIs in CCR • Top-level displays created by operators 21 Managed by UT-Battelle for OPIs in CCR • Top-level displays created by operators 21 Managed by UT-Battelle for the U. S. Department of Energy Tim Southern, Nick Luciano

OPIs in CCR • Some special displays 22 Managed by UT-Battelle for the U. OPIs in CCR • Some special displays 22 Managed by UT-Battelle for the U. S. Department of Energy

Example: “Steering” Tool Try to get spot into the green, at least into orange Example: “Steering” Tool Try to get spot into the green, at least into orange 23 Managed by UT-Battelle for the U. S. Department of Energy Tim Southern, Nick Luciano

BOY At SNS Office • Used for hardware and IOC test 24 Managed by BOY At SNS Office • Used for hardware and IOC test 24 Managed by UT-Battelle for the U. S. Department of Energy

Summary • BOY is an integrated OPI Editor and Runtime – Technically, Java/Eclipse RCP Summary • BOY is an integrated OPI Editor and Runtime – Technically, Java/Eclipse RCP plugins • Modern graphical editor with comprehensive functions to support your OPI editing • OPI Runtime behaves like a web browser • Rules and Java. Scripts can add logic to your OPI • Need to follow some rules to deploy OPIs in CCR 25 Managed by UT-Battelle for the U. S. Department of Energy

Thank you! • BOY Home Page – http: //sourceforge. net/apps/trac/cs-studio/wiki/BOY • Download – SNS Thank you! • BOY Home Page – http: //sourceforge. net/apps/trac/cs-studio/wiki/BOY • Download – SNS CSS Home Page: http: //ics-web. sns. ornl. gov/css – Unpack and Run CSS, no installation needed. • Tutorials – Online Help – BOY Examples 26 Managed by UT-Battelle for the U. S. Department of Energy Based on http: //buzzynews. com/wp-content/uploads/2008/01/stevejobs-presente-le-mac-book-air-lordinateur-portable-le-plusfin-du-monde. jpg