You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 63 Next »

Introduction

Beam-based Feedback systems are to be prototyped in MATLAB for the first commissioning of the LCLS system in early 2007.   There are six beam-based feedback systems to be tested in the first commissioning run. 

This Beam-based Feedback in MATLAB will also be used in the second LCLS Commissioning run starting December 2007.  Several new feedbacks will be implemented for this second commissioning run.  It has been decided that the MATLAB Feedbacks will control and read ONLY EPICS devices (RF, Magnets, BPMs). During the second commissioning phase many devices will remain under SLC control, so the discriptions below indicate how each feedback will be implemented until all devices are under EPICs control.

A description of each feedback follows.

Bunch Charge

The Bunch Charge feedback stablizes the bunch charge of each pulse at the RF gun.  This feedback is a accomplished with a set of two nested feedback loops.  An inner loop, local to the laser system, adjusts the wave-pate angle, and therefore the laser pulse energy, by measuring the laser energy with a Joule meter near the cathode.  An outer loop controls the energy setpoint of the inner loop, based  on the total bunch charge measurement of the toroid IM01, near the RF gun.  the inner loop is implemented in EPICS on the associated laser IOCs.  The outer loop is a beam-based feedback implemented in Matlab.

DL1 Energy

The DL1 Energy feedback maintains a constant beam energy at DL1.  the x-position reading of BPM13, a measure of relative energy, is used to calculate adjustments to the phase (or amplitude?) of the klystron L0B.

Energy at the Spec. Dump

The Spectrometer Dump Energy feedback loop is identical to the DL1 Energy loop, except it is used when the beam is directed to the spectrometer dump rather than into Sector 21.   In this case, BMPS2 or BPMS3 x-position is used to measure the relative energy. 

DL1 Energy + BC1 Energy + BC1 Bunch Length

The BC1 location along the linac requires both energy and bunch length stabilization.   This feedback loop will include the energy at DL1 as well, so that the energy feedback from RF gun through and beyond BC1 work together as a single loop.  BPM13 and BPMS11 are used to measure the relative energy, BL11 is used to measure the relative bunch length.  These measurements are used to adjust the phase (or amplitude?) at L0B and the amplitude and phase of L1-S.  In the case where BL11 is not used, the DL1 + BC1 energies alone may be stablized with this loop.

Injector Launch

The Injector Launch feedback is required to stabilize the trajectory of the beam as it enters the linac at Sector 21.  The x-position and y-position measurements of BPM9 through BPM15 will be used to calculate adjustments to the desired B-field of the XCO4 / YCO4 and XCO7 /YC07 corrector magnets.  This feedback attempts to stabilize the states: x-position, x-angle, y-position, y-angle of the beam. 

RF phase of Transverse Deflecting Cavity

This feedback is used to stabilize the phase of the beam with respect to the RF field of the cavity.  This feedback is used only during a Bunch Length Measurement and is integrated into the Bunch Length Measurement application. 

 BPM5 Feedback

 This feedback is used to stablize BPM5 in X and Y using the XCO1 and YC01 corrector magnets.

DL2 Energy  

The Energy and Bunchlength feedbacks of the first commissioning will be expanded to include energy at DL2, energy at BC2 and bunchlength at BC2.  These six parameters will be maintained by a single Longitudinal feedback that is configurable.  It will allow the user to choose which states,  actuators and measurement devices will be used.  It will also include some automatic detection of certain conditions, such as no beam past TD11 etc.  The requirements are documented in the Beam-based Feedback in MATLAB Requirements Document.

NOTE: There are only 3 EPICS controlled BPMs planned for the BC2 commissioning phase; not until about Nov. 2008, so the longitudinal feedback will only include DL1 energy, BC1 Enerby, BC1 Bunch Length, BC2 Energy and BC2 Bunch Length, until all BPMs are under EPICS Control.  Energy at BSY

BSY Energy

It is necessary to stabilize the BSY energy when the beam is diverted from entering the LTU at BSY.

See DL2 Energy above.

DL2 Energy + BC2 Energy + BC2 Bunch Length

See DL2 Energy above.

L2 Launch

The L2 Launch feedback is a transverse feedback used to stabilize the beam trajectory in the L2 region.  The BPMs in this area are all under SLC control for the second commissioning.  It was decided to leave the correctors for this feedback under SLC control as well, so that this feedback can be implemented with existing SLC feedbacks.

L3 Launch

The L3 Launch feedback is a transverse feedback used to stabilize the beam trajectory in the L3 region.  The BPMs in this area are all under SLC control for the second commissioning.  It was decided to leave the correctors for this feedback under SLC control as well, so that this feedback can be implemented with existing SLC feedbacks.

References

Magnet Interface: see the Magnet Application Programmer Interface document at Sharepoint Power Supplies and Control Hardware page

Magnet max B-field values: see Requirements for LCLS Dipole Steering Corrector Magnets 

LLRF Inteface: see RF Actuator Information

Event System Interface:

BPM Interface:

Bunch Length Monitor Interface:

Toroid Interface:

Laser Energy Loop:  

Beamline Optics: See LCLS Linac Current Beamline Design Optics Files. For the full machine see LCLS Optics/Element List, for Injector to Spectrometer Dump see 135-MeV Spect. Optics/Element List

Feedback Support Soft IOC Device and PV names: see Feedback Support Soft IOC 

Also, see requirements documents below. 

Requirements and Design

The matlab feedbacks are prototypes, and as such are not subject to the rigorous documentation requirements of production-level software for LCLS.  These prototypes will be used as learning tools for the final design of an EPICS-based fast feedback to be developed for the LCLS second commissioning run in early 2008. 

Controls Requirements for LCLS Feedback Systemsdocuments the final requirements for the fast feedback EPICS implementation.  This document is used to guide development of the prototypes.

Beam-based Feedback in MATLAB Requirements Document.  This documents the feedback requirements for BC2 commissioning, starting Dec. 2007

Bunch Charge Feedback Loop

Testing

There is a development environment test setup for testing feedback loop designs before running them in the production environment. This setup includes:

  • the FbckSimulator soft IOC that simulates the devices needed in each individual feedback loop to be created.
  • the EDM screens for the FbckSimulator soft IOC
  • the development FbckSupport soft IOC , sioc-sys0-fb0d.
  • the development version of the xml configuration file needed for each feedback loop. Stored in $MATLABDATAFILES on the development nfs file system.
  • the development version of the edm screens

User Guide

Beam-based Feedback in MATLAB: Users Guide  

Task Lists and Schedules

The Feedback Prototyping project includes several sub-projects. A task list and schedule is (will be...) included for each:

  • Matlab Framework for Feedback Applications
    • DONE. check overall longitudinal State indicator before starting an individual one.
    • may need to use the edefReserve and edefAcq matlab functions, slows down the feedback but gaurantees synchronous acquisition
    • DONE. divide into Feedback Engine Application and Feedback Configuration Application
    • Error reporting - to log - add in more, figure out how to limit repeated errors
    • Alarms - evaluate and create alarm conditions and reporting
    • OBE: no longer necessary. Read non-epics BPMs (AIDA) evaluate effect of using Aida as opposed to channel access.
    • DONE. Restore Actuators application  to set an actuator to the fbckSupport stored actuator value
    • DONE reference orbit collection from configuration application.
    • allow user to create? a reference orbit by hand
    •  
  • soft IOC for stored Feedback data and dynamic setpoints - called FB00 in prod, FB0D on development network
    • Channel Archiver: set this up when production softIOC is working; they do not want development PVs in archive
    • add feedback Gain values to the softIOC
    • DONE:Move fbckSupportApp to the build directory
  • EDM and other displays
    • Main control display: single status indicator? combine ON/OFF and Enable/Disable states.
    • summary display: complete this, add all plots and status indicators
    • display name of host each feedback is running on!
    • integrate feedback status with Error Display on CUD
  • Recreate the feedback simulator for testing
    • DONE remove dependancys with magnet subsystem/timing subsystem
    • add simulation for longitudinal  BC2 energy, DL2 energy, BC2 Bunchlength
    • add simulation for L2 and L3 transverse
    • move to build directory
  • Individual Feedbacks
    • Bunch Charge - Get this done!
    • Longitudinal
      • Done:Create an overall Longitudinal state (each individual loop checks this before starting)
      • Done:create individual Longitudinal 1x1, 2x2, 3x3
      • additional states for BC2: BC2 energy, BC2 Bunchlength, DL2 Energy (up to 6x6)
      • add in and test automatic switching capabilities
    • Transverse
      • new feedbacks X/YCO1 - BMP5
      • add error(dX, dY - resPV),  weighting, and chisq values in fit function data
      • weighting can allow Launch feedbacks to automatically ignore missing BPMs
      • evaluate other methods of dynamic reconfiguring (BPMs here)
  • No labels