Presentation is loading. Please wait.

Presentation is loading. Please wait.

XML scheme for configuration data V.Černý on behalf of the Bratislava group Initiated by Marco’s call:...a software layer for implementing the handling.

Similar presentations


Presentation on theme: "XML scheme for configuration data V.Černý on behalf of the Bratislava group Initiated by Marco’s call:...a software layer for implementing the handling."— Presentation transcript:

1 XML scheme for configuration data V.Černý on behalf of the Bratislava group Initiated by Marco’s call:...a software layer for implementing the handling of the configuration files which will be used to specify at run time the complete configuration of a sub-detector: we should have files containing the whole information on thresholds, register values, etc. which need to be both stored in the online database and passed to the online software for initialization. This is something that all systems (from farm to last subdetector) will have to do, and if we have a common data format (e.g. ASCII XML) and a common (C) interface to handle it everything would be simpler.

2 Status of the project fully functional software demo available for early beta testing https://twiki.cern.ch/twiki/bin/view/NA62/ConfigurationDataScheme https://twiki.cern.ch/twiki/bin/view/NA62/ConfigurationDataScheme we are developing a preprocessor to automatize large fraction of programming work we are not proposing any scheme how to include the.xml configuration files into the NA62 DCS The main purpose of this presentation is to get feedback: comments, suggestions for changes or additional features Mail to: Vladimir.Cerny@cern.ch

3 XML format: tagged text file Essential: human readable, human editable Example of a simple xml configuration file: LTUconfig.xml

4 More structured xml file:

5 LTU’s in crate vme processor Control program (c) I/O Proxy (C++) Config.xml Operation scheme 1: C with C++ proxy

6 LTU’s in crate vme processor Control program (c++) Config.xml Operation scheme 2: C++

7 LTU’s in crate vme processor Control program (Java) Config.xml Operation scheme 3: Java

8 Operation scheme 1: C with C++ proxy Operation scheme 2: C++ Operation scheme 3: Java C cannot be made self-contained: no xml supporting libraries available C++ and Java need third-party libraries

9 C++ xml-supporting library: boost

10 LTU’s in crate vme processor Control program (c) I/O Proxy (C++) Config.xml C with C++ proxy: technicalities Temporary binary file

11 C with C++ proxy: technicalities Define your configuration structure in c include file Construct the corresponding c++ include file Write input and output c code Write the corresponding input and output c++ proxy code The first (red) task is to be done ad hoc describing your specific configuration structure The other three (blue) task can be automatized by a preprocessor reading your c include file (this is yet to be done)

12 C with C++ proxy: technicalities Define your configuration structure in c include file Construct the corresponding c++ include file Write input and output c code Write the corresponding input and output c++ proxy code

13 C with C++ proxy: technicalities Define your configuration structure in c include file Construct the corresponding c++ include file Write input and output c code Write the corresponding input and output c++ proxy code

14 C with C++ proxy: technicalities Define your configuration structure in c include file Construct the corresponding c++ include file Write input and output c code Write the corresponding input and output c++ proxy code

15 C with C++ proxy: technicalities Define your configuration structure in c include file Construct the corresponding c++ include file Write input and output c code Write the corresponding input and output c++ proxy code

16 LTUconfig.xml

17 More complicated c include file: DemoXML.h

18 To be done: how to include xml files to some central database how to send the xml file to subdetector by the run control some overlp of information with Valeri’s data: this even can be changed dynamically by shifters/experts during run CONSISTENCY of data to get correct info offline

19 Additional side remark The current LTU firmware is Version 17, the main new feature is emulation support for SOB/EOB Corresponding LTUdirect and LTUDIM clients are available for download at Twiki https://twiki.cern.ch/twiki/bin/view/NA62/LTUrelatedSoftware


Download ppt "XML scheme for configuration data V.Černý on behalf of the Bratislava group Initiated by Marco’s call:...a software layer for implementing the handling."

Similar presentations


Ads by Google