250 likes | 264 Views
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.
E N D
LCLS Commissioning & Operations High Level Software PAL XFEL MAC Meeting Henrik Loos November 19, 2014
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
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
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)
Matlab HLA GUIs PAL XFEL MAC Meeting / Nov 19, 2014 • Beam property measurements • Beam corrections • Configuration control • Undulator & FEL • Others
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
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
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
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
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
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
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
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
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
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
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
Undulator Taper Control PAL XFEL MAC Meeting / Nov 19, 2014
Gain Length Measurement PAL XFEL MAC Meeting / Nov 19, 2014
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
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
Machine Save Restore PAL XFEL MAC Meeting / Nov 19, 2014 • Saves and restores EPICS PVs to and from Oracle database
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
Java Model Manager PAL XFEL MAC Meeting / Nov 19, 2014
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
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