Cavity control system: optimization methods for single cavity driving and envelope detection

The paper is an introduction to the optimization methods of the linear accelerator cavity control system. Three distinct time periods of cavity operation are considered; filling with the EM field energy, field stabilization, and field decay. These periods represent completely different states and behavior of the cavity. The cavity could be operated by several different methods in each work phase: During the filling -- feedback and feed-forward alone, feedback and feed-forward together, self-tuning; During the flattop -- feed-forward and feedback alone or together, During the decay -- detuning and quality factor may be measured. The optimization is understood as a choice of the most efficient way of the cavity control during each period. The control may be done in terms of minimum power consumption from the klystron during whole work cycle and efficient field stabilization in the cavity, during flattop period. The introductory analysis of the cavity operational modes in three mentioned periods is presented in this paper. Additionally the alternative more precise algorithm of the cavity voltage envelope detection is proposed.