2e2d9ecd1a7ab8f7eae938a60a9406ed.ppt
- Количество слайдов: 26
BOY, A Modern Graphical Operator Interface Editor and Runtime Xihui Chen, Kay Kasemir chenx 1@ornl. gov RAD Control Group
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 ü 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 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, 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, 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 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 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 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 Managed by UT-Battelle for the U. S. Department of Energy
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, 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 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
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 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 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… – 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 • 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 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 the U. S. Department of Energy Tim Southern, Nick Luciano
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 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 UT-Battelle for the U. S. Department of Energy
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 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
2e2d9ecd1a7ab8f7eae938a60a9406ed.ppt