Presentation is loading. Please wait.

Presentation is loading. Please wait.

A XML 1 An XML Driven Graphical User Interface and Application Management Toolkit Matthias Clausen (DESY & SLAC) Piotr Bartkiewicz (DESY & FPNT/AGH) Alexei.

Similar presentations


Presentation on theme: "A XML 1 An XML Driven Graphical User Interface and Application Management Toolkit Matthias Clausen (DESY & SLAC) Piotr Bartkiewicz (DESY & FPNT/AGH) Alexei."— Presentation transcript:

1

2 A XML 1 An XML Driven Graphical User Interface and Application Management Toolkit Matthias Clausen (DESY & SLAC) Piotr Bartkiewicz (DESY & FPNT/AGH) Alexei Dmitrovski, Albert Kagarmanov (DESY & IHEP) Zoltan Kakucs (DESY), Greg White, Hamid Shoaee (SLAC)

3 An XML Driven Graphical User Interface and Application Management Toolkit 2 The Initiative for a new Display Tool Started as a Feasibility Study for the COSMIC * Project at SLAC Synoptic (CUD) display (live updates) ‘Emulate’ SCP 8*8 Button Panels (previously Touch Screens) Sending commands to applications Receive configurations and commands from applications Control System Migration Challenge WEA T002 ( Robert Sass)

4 An XML Driven Graphical User Interface and Application Management Toolkit 3 J ava O perator I nterface and M anagement In tegration T ool

5 An XML Driven Graphical User Interface and Application Management Toolkit 4 Main Objectives Develop a toolbox which accepts configurations and commands from other applications Save and reload configuration files ( in XML) Easy integration of graphic objects and/or complete applications Connection to multiple data sources easy integration of new data sources Run local and over the net (as an Applet) Management of applications (registration, inspection)

6 An XML Driven Graphical User Interface and Application Management Toolkit 5 First Implementation (June-’01 @ SLAC) Use Java as core technology ->Run Application on NT and Linux ->Run Applet over LAN and WAN Visual Cafe as development environment Simple graphic objects Multiple data sources ( EPICS channel access and COSMIC / AIDA) Support for asynchronous data exchange

7 An XML Driven Graphical User Interface and Application Management Toolkit 6 Development continues at DESY (Sept-Nov) Joint effort of five members from three different groups New design for graphic objects Implementation of save/ restore New layer for multiple data sources Http client/ server

8 An XML Driven Graphical User Interface and Application Management Toolkit 7 Basic Structure Data Source Connector Databases / Control SystemsApplications Graphic ObjectsAny Java Object Configuration & Commands ? Scan Engine The Core Registry Timer Cfg files Data local thread http client (monitor) http server

9 An XML Driven Graphical User Interface and Application Management Toolkit 8 Registry The Registry is a central hash table storing name/ object duplets Register Objects as ObjectName/ ‚Instance of ObjectClass‘ DeviceName/ hash table of Graphic Objects The hash table of Graphic Objects contains objects which are registered with one of their properties for a deviceName DeviceName: EPICS|WLST1D32_temp

10 An XML Driven Graphical User Interface and Application Management Toolkit 9 Class: JoiTextField Object: JoiTextField-1 Registration Register a Graphic text Object Class: JoiTextField Object: JoiTextField-1 Property: Value Property.deviceName EPICS|WLST1D32_temp Registry register object Name Object JoiTextField-1 instance of JoiTextField register devicename /object EPICS|WLST1D32_temp Name Object Method JoiTextField-1 instance of JoiTextField setValue... Send Command „JoiTextField-1“ „setWidth“ „200“ Send Value „ EPICS|WLST1D32_temp“ „actual value“ actual value Graphic Text Object

11 An XML Driven Graphical User Interface and Application Management Toolkit 10 Message: Graphic Objects Registration using: (String) Name (Object) Object Instance (Method) property Method Activation using: (String) Object Name + Method Invocation (String) Device Name + Method Invocation

12 An XML Driven Graphical User Interface and Application Management Toolkit 11 Basic Structure Data Source Connector Databases / Control SystemsApplications Graphic ObjectsAny Java Object Configuration & Commands ? Scan Engine The Core Registry Timer Cfg files Data local thread http client (monitor) http server

13 An XML Driven Graphical User Interface and Application Management Toolkit 12 Configuring and Running the DataSource AliasObjectMethodIP-AddressPort # Defaultwww-kryo.desy.de8081 EPICSwww-kryo.desy.de8081 ARCHIVEwww-kryo.desy.de8081 Data Source Connector Scan Engine Timer The Core Registry http client http server scan queues AliasObjectMethodIP-AddressPort # Defaultwww-kryo.desy.de8081 EPICSwww-kryo.desy.de8081 ARCHIVEwww-kryo.desy.de8081 LOCALnumberCruncherprocessData AliasObjectMethodIP-AddressPort # Defaultwww-kryo.desy.de8081 EPICSwww-kryo.desy.de8081 ARCHIVEwww-kryo.desy.de8081 LOCALnumberCruncherprocessData EPICSchannelAccesscaGet alternative

14 An XML Driven Graphical User Interface and Application Management Toolkit 13 LMI Local Method Invocation A very effective way to decouple the Graphics Objects and the data source implementation from the main code. Objects register themselves. (no object dependant code in any other class) Base class supports save and restore of XML config. files. (once for all) Dynamic access to all properties -> property window

15 An XML Driven Graphical User Interface and Application Management Toolkit 14 Property Window Access to all Properties All Properties can be: Static ( number) Dynamic ( deviceName) Some objects have Properties ( like the text field), which can also be: Active ( deviceName)

16 An XML Driven Graphical User Interface and Application Management Toolkit 15 Object Tab Definition of available objects in XML config file: Controls JoiButton JoiSlider JoiTextField JoiScrollTime Connection between JoiMint and the object class is referenced –by name-!

17 An XML Driven Graphical User Interface and Application Management Toolkit 16 Graphic Objects Controls and Shapes

18 An XML Driven Graphical User Interface and Application Management Toolkit 17 Graphic Objects Complex Types: Archive PlotStrip Chart

19 An XML Driven Graphical User Interface and Application Management Toolkit 18 XML Is used for: Configuration Data: Graphic Object Tab (Http) Data source definition Synoptic Displays (i.e. translated dm2k screens) Data/ Commands Value Updates Archived Data Commands to/ from Applications

20 An XML Driven Graphical User Interface and Application Management Toolkit 19 JoiMint Where to use it? Remote access to control system’s data Diagnostic data from ‚smart devices‘ PLC‘s or power supplies Get graphic config file from default http port Get dynamic data from control system One special smarty is JoiMint itself.. With a built in http server Quick diagnostic using a PDA version (planned) An example of a ‘light weight’ application for Global Accelerator Networks

21 An XML Driven Graphical User Interface and Application Management Toolkit 20 Future Plans Add properties Scantime Alarm-State / -Severity Display limits (High-/ Low-Display) Add more graphic objects Support more data sources (TINE, DOOCS) Save data from objects to file (I.e. complete display and/or strip chart) Record and playback

22 An XML Driven Graphical User Interface and Application Management Toolkit 21 The Development Team + Albert Zoltan Karol Alexei Matthias

23 An XML Driven Graphical User Interface and Application Management Toolkit 22 Short Demo

24 An XML Driven Graphical User Interface and Application Management Toolkit 23 Command Record and Playback Record all operator commands Allow command editing Implementation of sequencing features: Loops If – then – else structures (based on live data from the underlying control system) Store commands as XML file Load command-set from XML file Replay commands

25 An XML Driven Graphical User Interface and Application Management Toolkit 24 Data Sources: HTTP Communication Server: Simple ‚C‘ program accepting http requests Designed for XML communication Data and commands are transferred as XML streams of data Client: Simple Java html client Parsing XML for further processing in JoiMint Advantage: Easy to manage (html passes firewalls) Clients can connect from anywhere (default for Applets) Disadvantage: Only ASCII data/ slow i.e. for archived data


Download ppt "A XML 1 An XML Driven Graphical User Interface and Application Management Toolkit Matthias Clausen (DESY & SLAC) Piotr Bartkiewicz (DESY & FPNT/AGH) Alexei."

Similar presentations


Ads by Google