Docstoc

FGC Software Design Review

Document Sample
FGC Software Design Review Powered By Docstoc
					LHC Software


          Mike Lamont
      Outline

    LSA  Core
    Hardware
    Instrumentation
    High level facilities
    Testing and deployment




7/12/2007        LHC software - MAC November 07   2
      LSA

            Middle tier designed to provide services to allow
                       effective accelerator control



                  Client tier         GUI Applications


                 Server tier          Business Layer


                                 Hardware           Database




7/12/2007                       LHC software - MAC November 07   3
       Among other things it covers…
       Optics
          Information about all devices
          Machine layout
          Twiss parameters
       Settings generation
          Generation of initial settings based on optics
       Settings management & trim
          Management of values for all parameters
          Coherent modifications
          History of changes and rollback
       Hardware exploitation
          Equipment control
          Sending settings to the hardware
       Equipment & beam measurements
          Equipment monitoring
          Data concentrators e.g. BLM, BPM


7/12/2007
06/11/2007                      LHC software - MAC November 07   4
      Generic Applications
 Data model & business layer are common for all accelerators
  reuse applications




             SPS
                                                       LHC

7/12/2007
06/11/2007                  LHC software - MAC November 07     5
      Trim




7/12/2007    LHC software - MAC November 07   6
      Optics




7/12/2007      LHC software - MAC November 07   7
      Generic Equipment Control




7/12/2007         LHC software - MAC November 07   8
      Generic Measurement




7/12/2007         LHC software - MAC November 07   9
  Data Concentrators
     Operator    Operator     Operator      Operator                   Fixed
                                                        Logging
     Console 1   Console 2    Console 3     Console 4                 Displays

                                                                      Broadcasting


                                          Publication


                                        BLMs
                                     Concentration




                               4000 Beam Loss Monitors
                   BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11
             BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11
            BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11            BLM99
                                                                               BLM99
           BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11
          BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11            BLM99
                                                                             BLM99
         BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11
        BLM1 BLM2 BLM3 BLM4 BLM5 BLM6 BLM7 BLM8 BLM9 BLM10 BLM11            BLM99
                                                                           BLM99
       BLM1                                                               BLM99
      BLM1 BLM2 BLM3 BLM4 BLM5 software - BLM7 BLM8 07BLM9 BLM10 BLM11 … BLM99
                                    BLM6 MAC November
7/12/2007                       LHC                                                10
       Security

       Role Based Access Control (RBAC)
                Restrict access to accelerator devices
                Developed in the framework of the LHC at Fermilab Software (LAFS)
                 collaboration


       Management of Machine Critical Settings (MCS)




                    Fully incorporated into the LSA framework



7/12/2007
06/11/2007                          LHC software - MAC November 07                   11
7/12/2007   LHC software - MAC November 07   12
            Development, test, and production databases
            One account for LEIR, SPS, HWC, lines, LHC

                                            AB/CO/DM: Ronny Billen, Chris Roderick

7/12/2007               LHC software - MAC November 07                               13
      LSA
           It has been deployed and thus tested on:
               SPS
               LEIR
               TI2/TI8/CNGS and other transfer lines
               SM18 magnet tests
               HWC
           Database is in good shape
           Technology well established
           Core software in place, tested and deployed
                   TI8                          CNGS             TI2




7/12/2007                       LHC software - MAC November 07         14
Main Hardware Systems
                                                Acquisition




                                                                       Interlocks
                           Application




                                                                        Software


                                                                        Settings


                                                                                    Mortem
                                                                         Critical
                                                  Analog




                                                                                             Timing
                                         XPOC




                                                              Alarms




                                                                                     Post
     INJECTION KICKERS                  X        X           X               X       X      X
     BEAM DUMP                          X        X           X               X       X      X
     POWER CONVERTERS                                         X        X              X      X
     COLLIMATORS                                             X        X      X       X      X
     RF                                         X           X        X              X      X
     Longitudinal FB                             X           X               X       X      X
     Transverse Damper                           X           X                       X      X
     MAGNETS                                                  X                       X
     MKQA                                                     X        X              X      X
     WARM MAGNETS                                             X        X              X      X
     RADIATION MONITORS                                       X                       X
     SPECTROMETERS                                            X        X              X
7/12/2007                 LHC software - MAC November 07                                              16
      Power converters



                              Full functionality exploited
                                   Hardware Commissioning
                                   Ramp and Squeeze Tests
                                   Tracking tests in SM18
                              Tested interfaces to:
                                   Post mortem
                                   LSA
                                   Logging
                                   Alarms
                                   Timing

7/12/2007           LHC software - MAC November 07            17
      Squeeze




7/12/2007       LHC software - MAC November 07   18
      RF                                     Delphine Jacquet




                  Slightly behind the curve here
                        Slow control established
                        Functions via FGCs – standard LSA
                        Requirements spec circulating


7/12/2007   LHC software - MAC November 07                      19
      Injection kickers




7/12/2007             LHC software - MAC November 07   20
      Beam Dump




                      Can’t touch too much at the high level
                      Important though is XPOC
                      Prototype in test generating many GBs
                      from kicker tests in IR 6



7/12/2007         LHC software - MAC November 07               21
      Collimators                                      Stefano Redaelli




                    Serious prototyping and testing done
                    Development still going on at the middle level.
                    Big system, lot of work to get the full system
                    singing and dancing.



7/12/2007             LHC software - MAC November 07                      22
       LHC Timing

                                                                                 LSA
      All LHC processes (e.g. injection,
       ramp,...) will be synchronized and                        Other modules
       triggered using timing events
          Sent by the LHC Timing System


      LSA provides services to manage
       these events                                              Timing module
         Creation, modification
         Loading to and unloading from the
          Timing System


                                                               LHC Timing System




7/12/2007                     LHC software - MAC November 07                           23
      Timing




                                                Tests in progress
7/12/2007      LHC software - MAC November 07                       24
Instrumentation
        Instrumentation


                Concentration



                                Settings




                                                                        Interlocks



                                                                                     Settings
                                                     Logging




                                                               Mortem




                                                                                                Priority
                                                                                     Critical
                                                                Post



                                                                            SW
                                            State




                                                                                                           GUI
BPMs            X                                    X          X                                  1
BLMs            X                                    X          X                     X            1       
BCT                                                  X                                             1
BTV                              X          X        X                    X                        1       
Rest Gas                         X          X        X                    X                        3       
Sync. Rad                        X          X        X                    X                        1       
Wire Scanners                    X                   X                    X                        2       
Luminosity                                           X                                             1       
Tune etc.                        X          X        X          X                                  1       
AGM                                                  X                                             2       
Schottky                                             X                                             2       
Wall Current                                         X                                             2       
BST
7/12/2007                                  LHC software - MAC November 07                          1             26
      For all systems assume:
           Fixed displays
           Logging
           Measurements
                All measurements to be recorded together with measurement
                 parameters (SDDS)
                Standard facilities for display, browsing and analysis
                Archiving, references etc.
                Access for post-mortem, post-run analysis, web access etc.
                Standard data format
                Interface to analysis tools
           Post Mortem
           Standard fitting routines


                                                                     All in place
7/12/2007                           LHC software - MAC November 07                  27
BPMs
    BPM: acquisition & concentration & publish                      V0.1 in place
    BPM: trajectory display                                         Proto in place
    BPM: trajectory and orbit correction                            YASP
    BPM: multi-turn analysis                                        V1 in place
    BPM: beta beating analysis                                      Work in progress
    BPMDLHC - dump line BPM                                         -
    BPMITLHC – interlocked BPMs                                     -




            Orbit, threading, closure etc. etc.            Done and dusted
            Multi-turn analysis, beating etc.              Work in progress

7/12/2007                          LHC software - MAC November 07                      28
      Orbit c/o YASP                                Jorg Wenninger




7/12/2007          LHC software - MAC November 07                    29
      BPM Concentration




7/12/2007         LHC software - MAC November 07   30
      BLMs
     Beam Loss Monitors acquisition & concentration              Deployed, tests
                                                                 ongoing
     Beam Loss Monitors – display v2                             Prototype
     Beam Loss Monitors – expert app.                            To spec
     Beam Loss Monitors – Management of Critical settings –      Threshold tables in
     configuration & tests                                       place, application to
                                                                 be done
     Beam Loss Monitors - Logging                                Tests in progress

     Beam Loss Monitors – PM, Study buffers, XPOC                Tests in progress




7/12/2007                       LHC software - MAC November 07                           31
      BQBBQLHC – Tune meter
           Tune:
               FFT
               Continuous FFT
               PLL
               Feedback
           Chromaticity
               Baseline: Frequency modulation/PLL
           V3 requirements spec in circulation (c/o LAFS)

           (Template & components exists for SPS)




7/12/2007                        LHC software - MAC November 07   32
      Other Instrumentation

   RADMON – acq – conc - display                                 Prototype in place
   BQHTLHC – head-tail Chromaticity                              BI
   BSRALHC Abort gap monitor                                     Spec
   BSRTFLHC/BSRTSLHC                                             LAFS – V1 in place
   Synchrotron radiation monitors
   BGILHC – Rest Gas Monitor                                     LAFS
   BWSLHC Wire Scanner                                           LAFS – V1 in place
   Wall Current Monitors (RF)
   BQSLLHC - Schottky                                            LAFS - specification
   BTVI/BTVMLHC Screens (matching monitors)                      Extension of existing
   BRASCLHC/BRASGLHC - Luminosity monitors                       Pre-spec


7/12/2007                       LHC software - MAC November 07                           33
      BCTDCLHC & BCTFDLHC & BCTFRLHC




7/12/2007         LHC software - MAC November 07   34
      Synchrotron radiation monitors                  Dennis Nicklaus FNAL




7/12/2007            LHC software - MAC November 07                      35
      Wire scanner                                    Elliott McCrory FNAL




7/12/2007            LHC software - MAC November 07                          36
      Screens                                    Markus Albert




7/12/2007       LHC software - MAC November 07                   37
      CMS Luminosity




7/12/2007         LHC software - MAC November 07   38
High level applications
      FIDEL




            Using data from series cold measurements FiDel models
                components of total field in aperture of magnet




              Set of parameterized equations - fit to the measured
                   behaviour of the set of magnets in a circuit

7/12/2007                      LHC software - MAC November 07        40
      MAD & FIDEL




7/12/2007           LHC software - MAC November 07   41
      FiDeL status                                                    Luca Bottura

           Data collection has advanced at a reduced pace. Data available today
            covers about 60 % of the magnet families and work is in progress to
            complete the LHC Magnetic Archive.
           The work has focused on:
              preparation of the structures for the synthesis of the model
               parameters (machine layout),
              storage of the parameters (database supported by AB-OP),
              retrieval and use of the parameters (FiDeL in the LHC controls).
           Tracking tests were performed in the benches of SM-18 to verify the
            accuracy of the model:
              2 dipoles (MB2598, MB2624),
              1 SSS (SSS064),
              powered through LSA, implementing the FiDeL algorithm for field
               forecast and correction,
              verified B1 tracking among sectors, B2/B1 tracking among main
               quadrupoles and dipoles, b3 and b5 correction at each dipole.
              Fruitful AT-AB collaboration in the preparation, running and
               evaluation of the test results

7/12/2007                           LHC software - MAC November 07                   42
      FiDeL tracking test results 1/2
      The integral dipole field in two MB’s track on
    average within 1 unit of B1, with peak error of
    2.5 units of B1 and reproducibility from cycle to
            cycle well within 1 unit of B1 (including
                              measurement errors !)

                                                                              1 unit of B1




               0.003 units of tune Q       The ratio B2/B1 tracks on average within
                                            0.01 unit of tune Q, and the reproducibility
                                            from cycle to cycle is within the tolerance
                                            window of 0.003 unit of tune (including
                                            measurement errors !)


7/12/2007                          LHC software - MAC November 07
                                                                    Analysis by P. Xydi, AT-MTM
                                                                                              43
      FiDeL tracking test results 2/2
     The compensation of the integral b3
       in a single dipole, using the FiDeL
         algorithm, has an error of  0.25
                      units (quite good !)

            Integral b3 after compensation

             Integral b3 before compensation
  The reproducibility of the b3 compensation, on two MB’s, same powering sequence,
  is 0.1 units of b3, equivalent to 5 units of chromaticity (excellent !)



                                                                          10 units of
                                                                          chromaticity 



                                                               Analysis by N. Sammut, AB-OP
7/12/2007                                            FIDEL@LSA by Merek Strzelczyk, AB-OP
                                   LHC software - MAC November 07                           44
      On-line Model (MAD-X)                                        Jutta Netzel, Ilya Agapov

           Simulation and validation of settings changes before applying them
            to the hardware
           Creation of KNOBS (e.g. bumps)
           …




7/12/2007                         LHC software - MAC November 07                               45
      Sequencer                                    Reyes Alemany




                      Tested:
                            Ramp & squeeze tests
                            SM18
                      All key functionality provided by LSA

7/12/2007         LHC software - MAC November 07                   46
      Selected to-do list
      RF - beam control                                              Spec in place
      BLM – threshold management                                     Work in progress
      Tune                                                           LAFS?
      Luminosity optimization etc                                    Spec in progress
      K-modulation                                                   SLAC
      Collimator scans                                               Work in progress
      Measurement procedures: aperture, dynamic
      aperture, matching, scans
      Triggered acquisition – data collection and
      organization
      Interface to feedback systems
      On-line Aperture Model



     And a lot, a lot of details: settings, FIDEL, configuration…
7/12/2007                           LHC software - MAC November 07                      47
DEPLOYMENT AND
TESTING
       Testing
      Currently use unit testing (automated black-box testing) for
       business logic and Data Access Objects

      GUI applications are tested manually
        Logic operating on the database  development DB
        Hardware access  usually on a real hardware (or test
         FGCs)

      Goal  setup a testing hardware environment which could
       be used for a systematic testing (before each release)
         Lab FGCs, Beam Instrumentation




7/12/2007                  LHC software - MAC November 07             49
      Deployment and testing




7/12/2007           LHC software - MAC November 07   50
      Dry injection run –next week
     Optics                  As usual, ramp and squeeze…
     Settings                Power converters, RF, Kickers, Collimators,
                             Bumps, injection point steering
     FIDEL                   450 GeV – decay, transfer functions for 78
     Timing                  BST, GMT, timing tables, events, telegrams,
                             injection request, application, sequencer
     Kickers                 Timing, control, analog acquisition
     Power converters        ~ 250 in voltage simulation mode
     Collimators             FSM, settings, monitoring, drive
     Screens                 Control, acquisition
     BPMs, BLMs, WS, SRMs Event triggered acquisition
     Standard facilities     Mode, FD, logging, alarms, RBAC


7/12/2007                   LHC software - MAC November 07                 51
      Collaboration
           Good collaboration between Operations, Controls and
            Hardware groups.

           Remarkably fruitful collaboration with Fermilab
               LAFS (Project Leader: Dave McGinnis)
                    RBAC (Suzanne Gysin)
                    Wire Scanners (Elliot McCrory)
                    Synchrotron Light Monitors (Dennis Nicklaus)
                    Valuable input on sequencer, tune etc. (Jim Patrick, Jerry Annala,
                     Dean Still)
                    “Possible” future projects: luminosity monitors, rest-gas monitors,
                     Schottky monitors, triggered data acquisition




7/12/2007                             LHC software - MAC November 07                       52
      Conclusions
           Majority of LSA functionality has been implemented.
           It has been deployed and tested.
           Now in exploitation phase - harness functionality to meet
            LHC requirements

           Staged approached for deployment and testing:
               Individual systems, HWC shadowing, dry runs, magnet
                measurements


           Devil, as always, in the details - still a lot to do…

                                     http://cern.ch/proj-lhc-software-analysis/
                                     http://cern.ch/ab-lsa

7/12/2007                        LHC software - MAC November 07                   53
      Acknowledgements
    Anthony            LEIR, SPS, SETTINGS ++
    Ronny & Chris      DATABASE
    Delphine           Database, Settings, SOD, ++
    Eric               Collimators
    GHH                Kickers
    Greg Kruk          CORE ++
    Guy                TZ, INSTRUMENTATION
    Jorg               SPS, ORBIT ++
    Jutta              CORE, On-line model
    Lasse              GENERATION
    Marek              GENERATION, FIDEL, MAD
    Markus             BCT, AUTOTRIM, SPS++, ACTUAL TRIM
    Nicholas           CORE + BLM + MONITORING
    Raphael            CORE
    Reyes              SEQUENCER
    Stephane           TIMING
    Vito               CORE, SEQUENCER
    Wojtek Sliwinski   CORE ++
                                                                  & LAFS
7/12/2007                        LHC software - MAC November 07            54

				
DOCUMENT INFO
Shared By:
Categories:
Stats:
views:7
posted:9/14/2011
language:English
pages:54