Length Sensing and Control›Locking characterization
#30166
How to properly use the medmod function
We have many on-line monitors which work by injecting a sinusoidal signal into some degree-of-freedom and demodulating the line in some output of the ITF. The results are calculated using the 'medmod' function available in Alp, which uses some dirty hacks an ingenious algorithm by Matt Evans. One of these monitors calculates the unity-gain-frequency of the DARM loop, which showed some problems in the past, but also more recently after we lowered the DARM line.
Studying the algorithm a bit more in detail, it appears that when demodulating two 'dirty signals' with each other, unwanted offsets can appear in the output when large lines are present close to the line of interest. To prevent this, the medmod function uses resonant input-filters, but these are sometimes not steep enough. In case of the 379 Hz DARM line, this filter only suppresses by a factor ~100 at the frequency of the violin modes, which is not enough in case of a strong violin concert that dwarfs the DARM line, see fig 1. The lesson is that, if possible, the medmod function should only be used to demodulate some 'dirty signal' with a clean signal that only contains the original calibration line that was injected into the system. In this way, the results of the algorithm are equal to a classical demodulation.
AlpLock was updated to compute the UGF of the DARM loop in a new way, using two medmods (Gc_DARM_AddExc vs PreExc and AddExc vs PostExc, instead of a single one using PostExc vs PreExc), which is available as Alp_Lock_UGF_DARM_TEST. The old monitor is called xx_FAST, while xx_SLOW is a previous attempt to solve the problem (using only a steeper filter).
Fig 2 compares the 3 UGF-monitors during the lock acquisition. When the DARM-line is high, both the old and the new monitor show a similar value. When the line is lowered at the end of step 12, the old monitor cannot see the line anymore and goes crazy. The slow monitor uses too many averages and cannot see the fast changes of the UGF during the lock acquisition (biggest jump when we switch to LN1?). Fig 3 is a similar comparison during the first few hours of the lock. Note that the slow monitor was in loop for the gain of DARM. The oscillations in the BRMS of the violin band (probably caused by the beating of the two orthogonal modes of the violin at 461 Hz) are clearly visible in the FAST and SLOW monitors, but are completely absent in the TEST one. The three monitors slowly converge to the same value as the violin modes ring down during several hours. AlpLock will be updated to only use the new monitor.
The same medmod function is also used to demodulate low-frequency lines for aligning the input-mirrors. These signals are usually not reliable when the 8Hz line is very excited, spoiling about 2 hours of data at the beginning of every lock. A similar modification should be considered for these alignment signals and for all the remaining cases (alpha, beta, ugf_mich, ugf_prcl).