1 / 29

Experience with Field Quality Analysis Software and Future Projects

This presentation by Laurent Deniau at the 14th International Magnetic Measurement Workshop in Geneva, Switzerland, discusses past projects and future requirements for field quality analysis software. Topics covered include series test requirements, the development and goals of the first and second systems, and the technologies used. The presentation also highlights lessons learned from past experience and proposals for future projects.

bfusco
Télécharger la présentation

Experience with Field Quality Analysis Software and Future Projects

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Experience with Field Quality Analysis Software andFuture Projects Laurent Deniau Laurent.Deniau@cern.ch 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  2. Content • Part I: Past Projects • Series Tests Requirements • First System • Second System • Learning from experience • Part II: Future Projects • Future Requirements • Proposal I • Proposal II • Proposal III 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  3. PART I Past Projects 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  4. Series Test Requirements • Test of ~1300 Main Dipoles • Field Quality: 100% [ 20%] • Test of ~400 Main Quadrupoles • Field Quality: 100% [15%] • Test of ~100 Special Quadrupoles • Field Quality: 100% [10%] • Test of ~500 Correctors (over ~8000) • Field Quality: 100% [20%] • System usage (2000 – 2007+) • ~25 users [ ~10 users] • Inside and outside CERN [ inside CERN] • Cold and warm measurements [ cold measurements] • 15000 measurements/magnets ~150MB [ 5000 ~50MB] 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  5. 1st System • Development 1999 • Deployment 1999 – 2000 • Improvement 2000 – 2003 • Resources ~1 m.year over 3 years • Usage 2000 – 2007 • Effective lines of code: • C: 58300 (59.55%) 33079 (57%) generated • Perl: 38162 (38.98%) • Sh: 295 (0.30%) • Other: 1142 (1.17%) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  6. 1st System – Aims [all achieved] • Deal only with rotating coil devices • long shaft, scanner, mole • Parametrizable transformations from measures to magnet integral field and harmonics • Measure + Calibration  Field • Automatic calibration (never used) • Measure + Field  Calibration • Generic processing of devices and magnets • Data extraction (e.g. b3 vs I, b3 vs b1, ...) and plots • Command line tools (Server) • Web interface (Client) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  7. 1st System – Architecture • Each block is a command line program • Communication is through pipes (files transfer) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  8. 1st System – Web Interface 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  9. 1st System – Technologies • Oracle for DB • Imposed by CERN – IT • C for the tools and libraries • Availability, portability, simplicity, efficiency • Perl for the web scripts • Imposed by developers knowledge • Linux and Apache on 5 web servers • Imposed by CERN – IT • Central repository • CVS for sources • AFS (Andrew File System on CERN servers) • Only free/open source software (except DB client) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  10. 1st System – Experience • System not heavily used • ~10 users • Less magnets and measurements than foreseen (15x) • System is oversized and not enough flexible (standard) • Users prefer graphical interface for simple non-repetitive tasks • Users prefer scripting for flexible, configurable, parameterizable and/or repetitive tasks • Some Users are ready to help for supervised programming (assume a framework) • Error handling/messages are of first importance! • Reliability does matter (confidence in the system) • Speed does not matter so much (DBs are slow) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  11. 2nd System • Development 2002 • Deployment 2002 – 2003 • Improvement 2003 – today • Resources ~1 m.year over 3 years • Usage 2002 – 2007+ • Effective lines of code: • C89: 15956 • PHP: 28563 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  12. 2nd System – Aims [none achieved*] • Process all measurements from all devices • Generic processing of devices and magnets • long shaft, scanner, mole, hall probe, SSW, NMR, … • More parametrizable transformation and calibration • More generic data processing (large data set) • Process cycles, history and integral over many magnets • More data manipulation and DBs access • More data extraction facilities • Flexible and extensible (not data oriented) • Unification • The data and DBs access (parser, db engine) • The jungle of configs, tools, tables and scripts (many, …) • 4 layers: www  script  tool  libraries 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  13. 2nd System – Web Interface 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  14. 2nd System – Technologies • As 1st System • Oracle, C, Linux, Apache, CVS, AFS • PHP for the web • Imposed by developer knowledge • Improvement of C libraries • Better code insulation • Better filters 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  15. 2nd System – Experience • Much better web interactivity • Windows-like application • Multiple windows, interactivity, error handler, contextual help • Better configurable DB interface • Very extensible and flexible • Magnet Follow-Up • A lot of work for a little use (many plots and parameters) • Id Cards • Warm-Cold extrapolation • Many data representation and plots • Better filters and alarms • Very little advancement for analysis and unification • No aim reached for the moment (reorientation of aims) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  16. Device calibrations Measure DB External DB Reduction Transformation Extraction Combination Visualization Transformations to physical quantities Measurements Results Files or DB Query Files Configuration/Settings Measure DB Learning from Experience 1/3 • Analysis of measurements always looks the same • Dataflow oriented (left to right) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  17. Learning from Experience 2/3 • Final specifications never exist • R&D needs evolutive prototyping • Prototyping requires iterations and never ends • Outsourcing • Not efficient during prototyping and much less evolutive • 5x – 10x slower than local development • Low control on code quality (result oriented) • Efficient for converting prototype to production software • Efficient for maintenance and support • Commercial software • Problem for long term projects (cycle > 5 years) • Problem for open problems (must fit the needs) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  18. Learning from Experience 3/3 • Users wish-list • Simplicity for simple tasks (graphical interface) • Flexibility for complex tasks (script) • Automation for repetitive tasks (script) • Clear multi-level checks/alarms (error handler) • Access from the web (even for script) • Low level code control (advanced users) • Developers wish-list • Development framework (very important) • Language (very important) • Code test (test-driven development) • Less (no) graphics, plots and interface (take time) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  19. PART II Future Projects 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  20. Future Requirements – 2007+ • Magnet Rescue [MAR] • Test for 1-2 magnets/month • Same as series tests (simplified version) • Fast Measurement Equipment [FAME] • Continuously rotating coils • Large amount of data (> series tests) • New equipments • Field Description for the LHC [FIDEL] • Relies on FAME • Network and DB activities • Very large amount of data (>> series tests, (cycle, history)) • May require to be online one day (fast response time) • Easy prototyping and configuration 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  21. Resources Availability • Technical Students ~8 – 12 months [Easy] • Short term development, require framework and tutorial • Simple programming (except for computer scientists) • Doctoral Students ~2 – 3 years (part time)[Medium] • More time for training (can learn new languages) • Medium – long term development, require framework • Scientific and/or computer skills • Fellows & P.A ~2 – 5 years [Medium  Hard] • Long term development, develop framework, open training • Scientific and/or computer skills • Skills availability (in CERN – AT) • Physicist [Easy] • Computer scientists [Hard] 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  22. Technologies • Already selected or imposed • Labview for acquisition and control • Oracle for DB • PHP & Apache for web • Linux PCs for servers • Analysis interface • Integrated and/or communicate with acquisition • Accessible and/or compatible with Labview • Semi-open questions • Scripting language for users • Programming language for developers/advanced users • Web servers (central) or local program (distributed) • Support and maintenance 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  23. Language Requirements • Widely known (or very easy to learn) • Highly Portable (including 64 bits) • Normalized (ISO) or formally specified (and stable) • Object Oriented • Very good code insulation • Simple memory management • Non-local error management • Reflection • Simple and Efficient • Large set of available libraries • Good operating system API (POSIX) • Good database API (OCI) 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  24. Languages Widely Used • Open source Debian GNU/Linux system includes 230 millions of effective line of code(SLOC) in all fields from all horizons: • C %57 * • C++ %16.8 * • Shell %9 • Lisp %3 • Perl %2.8 • Python %1.8 • Java %1.6 • Fortran %1.2 * • PHP %0.93 • Pascal %0.62 * • Ada %0.61 * Blue languages are normalized (ISO) Green languages are formally specified Red stars indicate languages compiled to native executables, others are interpreted 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  25. 1st Proposal – Resources Oriented • Provide only integrated ‘black boxes’ for analysis • Build prototypes internally (next point Labview) • Rely on sparse resources • Incomplete specification • Enough for fast interactive prototyping • Build prototypes • Validation of analysis ‘black boxes’ • Possibility to extend/improve ‘black boxes’ in C • Hard to use for large projects (unification, refactoring) • Delegate production development • Only AB – CO can take over • Labview everywhere, including prototyping • Design is fixed • Delegate support & maintenance 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  26. 2nd Proposal – Users Oriented • Provide a complete framework (extend 2nd system) • 3 layers: web  script  libraries of scripts • Users can use and/or write advanced scripts • Powerful and flexible • Require users training and tutorial • Hard to control modules unification/integration • Scripting Language • Python (interpreted) – Lisp (interpreted + compiled) • Easy, available, extensible in C • Python not standardized, Lisp is functional • Java – (virtual machine) • Easy, available (?), hard to extend, needs virtual machine • Not standardized but well specified and supported • Maybe blocked by efficiency and/or memory 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  27. 3rd Proposal – All-in-One • Provide a complete framework (extend 2nd system) • 4 layers: web  script  tool  libraries • Users can use and write simple scripts • Powerful but less flexible (focus on simplicity) • No training, small tutorial and examples • Easy to control unification/integration/extension • Advanced users can write plug-in (classes) • Some training, small manual (require knowledge of C) • Powerful and flexible (no limit), still allow Python (or Perl) • Language: Object Oriented C (ISO C89) • Allow Java-like programming in C with all OO features and more! • Easy, available, portable, standard, natively extendable • No problem with efficiency, memory, libraries or APIs 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  28. User WWW DB Data Analysis and Processing Data Analysis and Processing Acquisition and Control Proposals – Architectures Online Acquisition (many sites) Remote Analysis (central) Acquisition Systems Labview on Sun DB Servers Oracle Analysis Servers Linux Script Script 2nd proposal  Python 3rd proposal  OOC http://sma.cern.ch 2nd and 3rd proposals only Sun local copy of tool 1st proposal  Labview 2nd proposal  Python 3rd proposal  OOC 2nd and 3rd proposals only! 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

  29. Proposals – Summary 14th International Magnetic Measurement Workshop26-29 September 2005, Geneva, Switzerland

More Related