1 / 25

LCLS Commissioning & Operations High Level Software

This meeting discusses the commissioning strategy and high-level software used for the operation of the LCLS accelerator. Topics include hardware and software checks, EPICS device controls, Matlab applications, beam property measurements, and more.

cpuckett
Download Presentation

LCLS Commissioning & Operations High Level Software

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. LCLS Commissioning & Operations High Level Software PAL XFEL MAC Meeting Henrik Loos November 19, 2014

  2. LCLS Commissioning Strategy PAL XFEL MAC Meeting / Nov 19, 2014 • Hardware • Extensive pre-beam check-out (field probes for magnets etc.) • Check every device again with beam (functionality, polarity, calibrations, etc.) • Software • Need basic commissioning software on day 1 (beam orbit, size, emittance, bunch length, etc.) • Test software on virtual accelerator controls environment • Procedural HLAs for common task automation develop later

  3. General Controls Software PAL XFEL MAC Meeting / Nov 19, 2014 • LCLS now has all Epics device controls • EDM screens, strip tool, alarm handler, etc. • Java applications • Oracle database • Configuration control (SCORE) • Archive engine • Machine model (XAL) • Beam orbit display • Matlab applications • High level software • Some Python also

  4. Matlab Commissioning and Operations Software PAL XFEL MAC Meeting / Nov 19, 2014 • High Level (Physics) Applications developed in Matlab during LCLS-I commissioning by physicists • Quick to adapt changes, test in commissioning • Large suite of matured software after 7 years • Used in daily LCLS operation • 3 levels of Matlab software • about 80 GUIs • ~20 background scripts • low level services • Control system interface • EPICS (labCA) & Aida (Accelerator Independent Data Access)

  5. Matlab HLA GUIs PAL XFEL MAC Meeting / Nov 19, 2014 • Beam property measurements • Beam corrections • Configuration control • Undulator & FEL • Others

  6. Matlab HLA Architecture High Level Applications Real-Time Model Matlab Name Server • Profiles Images RF Magnet Model CA Simulation Control Systems LabCA AIDA* EPICS IOCs SCP† XAL Model SLC Model † SLC Control Program *Accelerator Integrated Data Access PAL XFEL MAC Meeting / Nov 19, 2014

  7. Basic Linac Commissioning Matlab HLAs Phase Scans Optics Matching Correlation Plot BSA GUI Dispersion Correction CA Emittance Bunch Length Bowtie Plots Profile Monitors SVD Steering Wire Scan PAL XFEL MAC Meeting / Nov 19, 2014

  8. Profile Monitor PAL XFEL MAC Meeting / Nov 19, 2014 • Interface to a variety of SLAC camera IOC types • Image processing used by HLAs needing beam profile data • Different fit functions and rms methods for beam moments

  9. Wire Scan GUI Raw Data Processed Scan PAL XFEL MAC Meeting / Nov 19, 2014 • Interface to EPICS scan software • Beam jitter correction • From online model • Profile analysis same asfor beam images

  10. Emittance PAL XFEL MAC Meeting / Nov 19, 2014 • Beam profiles from wire scans or screens • Quad scan or multiple locations • Online model input • Results stored in PVs • Used by matching software

  11. Matching PAL XFEL MAC Meeting / Nov 19, 2014 • Configurable sets of locations for • Twiss measurement • Goal locations • Optimization quads • Uses online model • Input from emittance GUI

  12. Correlation Plot PAL XFEL MAC Meeting / Nov 19, 2014 • Generic Epics part • Scans 1 or 2 PVs • Reads multiple PVs • Matlab HLA interface • Beam profiles, emittance, bunch length • BSA acquisition • Data analysis

  13. Other Matlab HLAs RF Phase Scans TCAV Bunch Length PAL XFEL MAC Meeting / Nov 19, 2014 • Time calibration and bunch length • Results in PVs to be picked up by XTCAV x-ray analysis • Scan of single station, entire sector or linac phase

  14. HLA for Beam Setup Automation ~10 - 20 min ~1 - 5 min Charge Change ~15 min Energy Ramp Energy Change/LEM PAL XFEL MAC Meeting / Nov 19, 2014

  15. Procedural Matlab GUIs PAL XFEL MAC Meeting / Nov 19, 2014 • Bunch compressor R56 control • Beam destination switching (gun/injector spectrometers) • Self seeding setup • Hard x-ray chicane and diamond control • Soft x-ray chicane and optics control

  16. Beam-Based Alignment Software Simulation parameters PAL XFEL MAC Meeting / Nov 19, 2014 • Multi-purpose beam orbit fitting • Undulator BBA • SVD orbit steering • Undulator field integral • RF kicks • Integrated simulation mode • Data taking and correction application • Manual energy change

  17. Undulator Taper Control PAL XFEL MAC Meeting / Nov 19, 2014

  18. Gain Length Measurement PAL XFEL MAC Meeting / Nov 19, 2014

  19. LINAC Energy Management PAL XFEL MAC Meeting / Nov 19, 2014 • “LEM” • Provides actual machine energy profile • Fudges RF vector sum energy gain to match fixed energy locations • Used for • Online model calculation • Scale magnet strengths to actual beam energy • Implementation • Originally XAL based • Now mainly Matlab process with EPICS PV interface • Added features • Sets bend magnet trims • Options to implement energy specific optics • Implement design or scale present

  20. LEM Server Display PAL XFEL MAC Meeting / Nov 19, 2014 • EDM screen to display LEM calculation results • Activate Matlab script to set optimized magnet settings

  21. Machine Save Restore PAL XFEL MAC Meeting / Nov 19, 2014 • Saves and restores EPICS PVs to and from Oracle database

  22. Present Online Machine Model PAL XFEL MAC Meeting / Nov 19, 2014 • Master source is MAD deck, Elegant etc. derived from it • Oracle as main device database • Populated from MAD deck • Other devices manually • XAL used for “official” online model • Design, equal to MAD output • Extant, uses actual RF and magnet settings • XAL XDXF input file generated manually • Java Model GUI to run XAL, upload to database, define “Gold” • Model data access • AIDA (Accelerator Independent Data Access) to retrieve model from Oracle database • MAD/Oracle/XAL synchronization process cumbersome

  23. Java Model Manager PAL XFEL MAC Meeting / Nov 19, 2014

  24. New Online Model System Greg White PAL XFEL MAC Meeting / Nov 19, 2014 • MEME (MAD EPICS Matlab Environment) • MAD deck for model computation • Patch files to update device properties with actuals • Matlab used as GUI interface • Model runs uploaded to Oracle • EPICS V4 services • Retrieve online model data • Directory service (get device name lists based on MAD lines) • Possible extension to archive data and other data services • EPICS V4 • Integration of high level control services beyond device IOCs • Adds structured data types to EPICS • Query with options and qualifiers

  25. Summary PAL XFEL MAC Meeting / Nov 19, 2014 • Matlab convenient platform to develop GUIs and to analyze data • Simulation of control system and measurement data reduces development time in control room • Script automation saves enormous time in machine commissioning and tuning

More Related