IPAC2015, Richmond, VA, USA
JACoW Publishing
doi:10.18429/JACoW-IPAC2015-MOPWA040
VIRTUAL CAVITY PROBE GENERATION USING CALIBRATED
FORWARD AND REFLECTED SIGNALS
S. Pfeiffer∗ , V. Ayvazyan, J. Branlard, Ł. Butkowski, H. Schlarb and C. Schmidt,
DESY, Hamburg, Germany
R. Rybaniec, ISE, Warszawa, Poland
1
VP,m
Abstract
200
2
VR,m
2
VF,m
THEORETICAL APPROACH
The main goal of this contribution is to calibrate the measured (index m) complex forward (V F, m ∈ C) and complex
reflected (V R, m ∈ C) signals to the calibrated (index c)
V F,c ∈ C and V R,c ∈ C, respectively. An example for signal detection is shown in Fig. 2. As can be seen, the forward
Signals of ACC1 − Cavity 1
20
15
10
5
Flattop
Pulse delay
Amplitude [MV]
Decay
Filling
0
V
P,m
100
0
V
F,m
Pulse Delay
The Free Electron LASer (FLASH) at the "Deutsches
Elektronen Synchrotron" in Hamburg is a facility for research with tunable laser light. It provides its users a pulsed
light in the X-ray range with tunable wavelength down to
4.2 nm generated by SASE processes. Electron bunch trains
of variable length and frequency with a repetition rate of
10 Hz are accelerated to about 1.2 GeV. Each pulse is enabled for about 1.4 ms, meanwhile up to 2400 bunches with
a maximum repetition rate of 3 MHz are injected. In order
to provide stable and reproducible photon pulses a precise
acceleration field control is needed. During the last years,
several control strategies for vector-sum regulation, i.e. the
sum of up to 16 cavities and its RF field probes, were developed and included in the Low-Level RF (LLRF) controller.
Hereby learning feedforward (LFF) minimizes repetitive
amplitude and phase errors from pulse to pulse [1], whereas
the multiple input multiple output (MIMO) controller acts
within the pulse [2]. The necessary RF field regulation requirements are reached and below a relative amplitude error
of 0.01 % and an absolute phase error of 0.01 degree. Besides the detection of the cavity probe signal, the forward
and reflected signals of each cavity at the waveguide distribution is measured, as depicted in Fig. 1. In this paper,
it is shown that the latter can be used to generate a virtual
probe signal usable for system health detection and failure
classification. If the real probe detection fails, the virtual
probe can still be used to drive the system and ensure the
amplitude and phase regulation requirements.
MOPWA040
Cavity 2
Figure 1: Waveguide distribution as example for the first
accelerator module ACC1 at FLASH with depicted complex
probe (VcP, m ), forward (VcF, m ) and reflected (VcR, m ) signal
measurement for 2 out of 8 cavities, i.e. c = 1, 2.
INTRODUCTION
sven.pfeiffer@desy.de
1
VF,m
1
VR,m
The European X-ray free electron laser requires a highprecision control of accelerating fields to ensure a stable
photon generation. Its low level radio frequency system,
based on the MicroTCA.4 standard, detects the probe, forward and reflected signals for each cavity. While the probe
signal is used to control the accelerating fields, a combination of the forward and reflected signals can be used to
compute a virtual probe, whose accuracy is comparable to
the directly sampled probe. This requires the removal of
cross-coupling effects between the forward and reflected signals. This paper presents the precise generation of a virtual
probe using an extended method of least squares. The virtual
probe can then be used for precise field control in case the
probe signal is missing or corrupted. It can also be used to
detect any deviation from the nominal probe profile.
∗
2
VP,m
Cavity 1
Phase [deg.]
Content from this work may be used under the terms of the CC BY 3.0 licence (© 2015). Any distribution of this work must maintain attribution to the author(s), title of the work, publisher, and DOI.
6th International Particle Accelerator Conference
ISBN: 978-3-95450-168-7
VR,m
−100
0
200
400
600
800 1000
Time [µs]
1200
1400
1600
1800
Figure 2: Measured probe, forward and reflected signals (precalibrated by (1)) for a standard RF pulse with Q L ≪ Q0 for
β ≫ 1.
signal shows an amplitude value which is non-zero during
decay, although the RF drive is switched off. A measurement calibration can overcome the imperfection of the signal
detection, mainly caused by signal couplings at the pick-up,
also visible in the reflected signal.
5: Beam Dynamics and EM Fields
D03 - Calculations of EM fields - Theory and Code Developments
IPAC2015, Richmond, VA, USA
JACoW Publishing
doi:10.18429/JACoW-IPAC2015-MOPWA040
Introduction
Estimation Using Extended MLS
The measurements for a single pulse are collected as complex value V P, m (k) = VP, m (k) + i · VP, m (k) with discrete
time instance k ∈ [1, T] containing the entire RF pulse by
P, m = V P, m (1) . . . V P, m (k) . . . V P, m (T ) T ,
V
F, m = V F, m (1) . . . V F, m (k) . . . V F, m (T ) T ,
V
R, m = V R, m (1) . . . V R, m (k) . . . V R, m (T ) T .
V
In order to identify the four independent parameters, it
is necessary to extend (1) to the problem given in (2). Furthermore, it is necessary to add additional constraints to
cope with the rank of two limitation for the measurement
matrix. First, let us consider only the decay phase before
adding additional weighting factors to the general parameter
estimation problem.
The calibration method assumes, that the measured probe
signal is the sum of forward and reflected signal given as
P, m = x V
F, m + y V
R, m ,
V
(1)
with constant complex calibration parameters x ∈ C and
y ∈ C, [3]. It is assumed that the measured probe signal
P, m is perfectly detected, hence constitutes a reference
V
signal for signal calibration. Furthermore, we will assume
non-zero cross-couplings between the forward and reflected
signals which can be represented as
F, c
V
P, m
V
δ
V
R, c
δ
V
P, m
R, c
V
F, m + b V
R, m + c V
F, m + d V
R, m ,
=aV
P, v = V
F,c + V
R,c .
V
(3)
Estimation Using Method of Least Squares
The estimation of x = a + c and y = b + d is unique within
an usual RF pulse, i.e. as long as the signal shape differs for
forward, reflected and probe signals. This can be checked
by the rank or the singular value decomposition (SVD) of
measurement matrix containing the forward and reflected
signals. If the rank is two, the estimation of x and y is unique,
while the estimation of the extended set of parameters to
estimate is unique if and only if the rank is four. However
it will be shown that an extended set of equations based on
auxiliary conditions can be used to solve the problem.
Hereby the measurement matrix to be calibrated is given
by forward and reflected signals as
R, m ],
V
(4)
which is to be calibrated with respect to the probe signal
using a method of least square (MLS) to solve x and y by
x
(5)
[V P, m ] = Am ·
y
−1
x
P, m .
→
= ATm Am
(6)
ATm V
y
δ +d·V
δ
=c·V
F, m
VδF, m
R, m
VδR, m
0 = a ·
.
+b·
(2)
where a, b, c and d are the four complex parameters to be
estimated leading to the virtual probe signal
F, m
A m = [V
Decay phase To separate the entire RF pulse and the
decay phase an additional superscript is introduced. The
variables with superscript δ contains only the RF signals
during the decay phase. During this time, the driving signal
for the RF pulse is switched off, hence to the calibrated for δ = 0. Nevertheless, the RF gate may still
ward signal V
F,c
be opened and hence a forward signal with small contribution may be observed. Furthermore, the reflected signal
during decay contains the overall power from the cavity. The
following equations are valid only during decay:
(7)
(8)
δ
V
F, c
Example ACC1 - Cavity 1: Given the decay phase of probe
δ , forward V
δ and reflected V
δ signal. The meaV
P, m
R, m
F, m
δ
δ V
surement matrix V
has
a
rank
of two and singuF, m
R, m
lar values of σ1 ≈ 522 and σ2 ≈ 0.23, hence the solution
of (7) is unique and gives c = 0.96+i ·0.1 and d = 1−i ·0.05.
However such huge cross-coupling from forward to reflected
signal is unlikely, hence the resulting cross-coupling parameter c is ill-conditioned and needs to be constraint.
Weighting factors Two additional weighting factors are
introduced to keep the order of occurring cross-couplings
between the forward and reflected signal and vice versa in
right dimension. Hereby the focus is on penalizing the magnitudes |b| and |c| to a reasonable number without loosing
precision of parameter estimation. Such penalty methods,
e.g. logarithmic barrier function in interior point method,
are widely used in a class of algorithms to solve constrained
optimization problems.
The ratio of forward to reflected signal during decay leads
to an estimation of the cross-couplings by
δ = Sab · V
δ ,
V
F, m
R, m
(9)
with Sab ≪ 1 and used in the following to extend the MLS.
This solution is unique if and only if the rank of Am is two.
This can also be checked by the singular values of SVD for
the matrix Am .
5: Beam Dynamics and EM Fields
D03 - Calculations of EM fields - Theory and Code Developments
MOPWA040
201
Content from this work may be used under the terms of the CC BY 3.0 licence (© 2015). Any distribution of this work must maintain attribution to the author(s), title of the work, publisher, and DOI.
6th International Particle Accelerator Conference
ISBN: 978-3-95450-168-7
IPAC2015, Richmond, VA, USA
JACoW Publishing
doi:10.18429/JACoW-IPAC2015-MOPWA040
Therefore the extended form of method of least square
(with neglected measurement indication m) to solve a, b , c
and d ∈ C is given by
R
V
VδR
0
0
|y| − Wb
a
b
c
(10)
d
Half bandwidth for ACC1 − C1
where Wb = |Sab | and Wc = k add · |Sab | are weighting
factors to the parameters b and c, respectively. An additional
variable k add is introduced which is equal to one as a first
assumption. We will discuss in the following section why it
is necessary to tune Wc by an additional parameter.
Amplitude [MV]
18.49
18.46
18.43
18.4
800
20
810
820
830
840
11
830
840
V
850
P,v
V
F,m
V
−100
R,m
600
400
600
800
1000
1200
Time [µs]
1400
1600
1800
R,c
820
VP,m
400
0
V
810
0
200
500
VF,c
11.5
0
1/2,filtered
f1/2,decay
Figure 4: Computation of half bandwidth for calibrated
signals. The computed value (black line) and filtered value
(red dashed line) are shown for the entire pulse. Furthermore,
the bandwidth computed from decay (single value from
probe decay) is visualized for the whole RF pulse (yellow
line).
850
0
10.5
800
1/2
f
200
10
100
f
−500
Calibrated Signals of ACC1 − C1
30
1000
[Hz]
F
V
VδF
0
W−1
c
0
1/2
R
V
0
δ
V
R
0
W−1
b
coefficients, the latter are showing steps in the transition
from filling to flattop and from flattop to decay which is
unlikely for SRF cavities. However this information can be
used to optimize the parameter estimation by an adaptive
estimation process optimizing the independently generated
signals (∆ f and f 1/2 ). To do so, the additional tuning parameter k add is introduced, highly suitable to weight the set
of parameters to their right order.
f
F
V
V
δP
0
V P
δ
0 = V
|x|
|x| −FW
c
|y|
0
Phase [deg.]
Content from this work may be used under the terms of the CC BY 3.0 licence (© 2015). Any distribution of this work must maintain attribution to the author(s), title of the work, publisher, and DOI.
6th International Particle Accelerator Conference
ISBN: 978-3-95450-168-7
800 1000
Time [µs]
1200
1400
1600
1800
Figure 3: Example of uncalibrated (dashed lines) and calibrated (solid lines) signals for cavity 1 in ACC1 at FLASH
with zoom in time range for both probe signals.
CONCLUSION
This paper describes a suitable calibration tool for forward
and reflected waveguide signals. Both are calibrated with
respect to the measured probe signal. The missing information about cross-couplings is solved by using an extended set
of equations solved by linear regression. Additional crosschecks using independently generated signals further helps
tuning the complex calibration constants to a reasonable
number. Investigations considering effects from neighboring cavities, shown in Fig. 1, are in progress.
REFERENCES
DISCUSSION
Figure 3 shows an example for signal calibration for the
first cavity at FLASH. There are two single spikes visible in
P, v . On the one
the amplitude of the virtual probe signal V
hand, during the transition from filling to flattop and on the
other from flattop to decay. This is explainable by the hard
transition during the different operation points. Furthermore,
the signals are low-pass filtered from 81 MHz to 9 MHz after the ADC detection. Such filtering may lead to different
sensor dynamics, while a perfect virtual probe generation
requires the same dynamics for forward and reflected signal.
However, such a transition can be filtered out or removed
from the dataset if the virtual probe is used for driving the
system. Furthermore, some of the signal calibrations may
not be perfect. This can be shown by consideration of independent signals, e.g. signals not used for signal calibration,
like the detuning and the half bandwidth within a pulse [4],
an example is shown in Fig. 4. Especially for larger coupling
MOPWA040
202
[1] S. Kirchhoff et al., “An Iterative Learning Algorithm for Control of an Accelerator based Free Electron Laser,” 47th IEEE
Conference on Decision and Control, Cancun, Mexico, 2008.
[2] C. Schmidt et al., “Parameter estimation and tuning of a
multivariable RF controller with FPGA technique for the
Free Electron Laser FLASH,” American Control Conference,
Seattle, Washington, USA, 2008.
[3] A. Brandt, “Development of a Finite State Machine for the Automated Operation of the LLRF Control at FLASH,” DESY,
PhD Thesis, 2007.
[4] R. Rybaniec et al., “Real-time Estimation of Superconducting
Cavities Parameters ,” IPAC, 2014.
5: Beam Dynamics and EM Fields
D03 - Calculations of EM fields - Theory and Code Developments