While Lisa was restarting Pr28 with the delta-mix configuration, I added a simple "tunable on the fly" alpha filter to the Gc and recompiled. We made a couple of measurements to help us tune the new Alpha filter: noise injected on MICH from 854244200 for 200 seconds, noise injected on DARM from 854244670 for 100 seconds. Both of these were made with Alpha = 0 and Beta = 0, running in the standard B2_3f configuration.
Alpha should be the ratio of the MICH_z and DARM_z transfer functions to B1. That is (Pr_B1_ACp/Gc_MICH_z) / (2 Pr_B1_ACp/Gc_DARM_z), with the MICH TF measured with noise on MICH, and the DARM TF measured with noise on DARM. The factor of 2 in the denominator comes from the fact that we have 0.5 in the output matrix, such that Gc_DARM_z is a factor of 2 larger than what actually goes to NE and WE_zCorr. The measured TF ratio is shown in the plot.
The interesting feature is that this TF (let‘s call it TF_Alpha) is not even close to flat. Apparently, we achieve decent cancelation at 40 Hz with alpha equal to 0.08 by luck. At that frequency, TF_Alpha has a phase which is close to zero, and a magnitude that doesn‘t cause big problems at other frequencies (i.e., even though the sign is wrong at 200 Hz and above, we are saved by the NEO at 50 Hz).
We will need at least a 6th order filter to make a decent match to TF_Alpha, but it would be nice to know the origin of its shape, its variability over time, and what parameters can change it. In anycase, with this complicated shape, cancelation better than a factor of 10 over a broad range of frequencies may prove challenging.
For some reason switching Gc Locking from Await to Steady now takes about 40 seconds. When working properly, this takes only a few seconds. No changes to the Locking Gc have been made since the appearance of this problem, though significant work has been done on the Alignment Gc.
I made the change suggested in entry 14880 which allows for work on the end benches without unlocking. We discovered that AlpInj::Inj_Main also checks the B7_DC value, and disables the SSFS when it goes low, so I changed this as well. After that, we tried again, this time with more success.
The B5 threshold is set at 20mW, about half the full-lock power. If B5 goes below this value, the checks return to the previous logic (if B7 or B8 is low, unlock).
o Almost all the entire shift was used to understand the Gc problems:
- offsets on the error signals for the cavities AA signals which misaligned the cavities.
- initial constant error signal values (different for each lock) for each mirror, starting from step 4 on the Gc signals, while they should be 0.
Nicolas and Fabien are working on this.
o Unlocks at step 7
seem due to wrong phase of B2_3f, so we have restored the old phase.
o Common Mode quadrant centering
Alpized the absolute move for the quadrant position for the Q21 quadrant (-7000,-78000)
The calibration of FmodErr can now be done automatically with ... CalibrateFmodErr. The procedure is available under AlpInj and takes about 2 minutes to run. Several tests showed the calibration to be repeatable to within half a percent.
We checked the FmodErr calibration and, as usual, found that it was wrong. In this case, the error was 30% (from 0.76 to 0.98). We would like to automate this tuning, but a new gname will be required in the IB card.
This is a comment to:
https://logbook.virgo-gw.eu/virgo/?r=14852
The problems were triggered by a traffic peak occurring exactly from 23:28 to 23:30 on many switch ports on the Interferometer network at the same time (in the image attached it is shown one port as an example).
Also non-Virgo applications like the surveillance system (GSS) have lost connection.
The peaks are uni-directional and pervasive. This means that their traffic does not belong to a higher level connection.
The most probable hypothesis is that a physical network loop has been temporarily setup on 2 different switches (someone connecting 2 plugs together by mistake). This causes a sustained traffic provoked by switches relaying frames with addresses they don‘t find in their bridging tables.
I changed the WE GcGain in LOCK_INIT to -1.1 This value was found to better balance the drives (i.e., reduce the CARM to B1_ACp coupling). It seems to make sense since the WE is about 12 um/V while the NE is about 14.
I also wanted to change the logic in LOCK_GUARD and WAIT_SMART to allow work on the end benches without unlocking the ITF or playing games with photodiode offsets. (This is now supported by the Gc, only Alp needs to be changed.) But I didn‘t feel good making changes that I couldn‘t test, so I just put some comments in MainLogic.cfg. They are:
##### to use B5 when in full lock, uncomment this code
# and comment IF B7_DC < TH_B7_DC || B8_DC < TH_B8_DC below.
#
#OP_CH B5_DC = Mean 1. Pr_B5_DC
#IF B7_DC < TH_B7_DC || B8_DC < TH_B8_DC
# OP B78_LOW = 1
#ELSE
# OP B78_LOW = 0
#ENDIF
#
#IF B78_LOW && B5_DC < TH_B5_DC
IF B7_DC < TH_B7_DC || B8_DC < TH_B8_DC
#IF B8_DC < TH_B8_DC /* check temporary done only on W cavity */
OP LOCKED = 0
PRINT_INFO "B7_DC and B8_DC powers below threshold. (B7_DC=" -d B7_DC -t " B8_DC=" -d B8_DC -t ")"
PRINT_INFO " LOCKED variable set to: " -d LOCKED
ELSE
OP LOCKED = 1
ENDIF
I guess the meaning is obvious. A similar change should probably be made to WAIT_SMART and LOCK_CHECK. I hope this helps with scattered light work.
I arrived today to work on other things, but found the IMC unlocked. A quick look at the IB and MC Gx signals, and the BMS signals, showed no obvious problem. The beam on IMC Ref looks healthy, but I see nothing on the MC MIRR cam. The MC LC light is on.
I‘ll try to realign it (now 18:34 UTC). The original MC offsets are: tx = 0.09, ty = -0.059. For IB I have tx = -0.027, ty = 0.27, tz = -0.365. After much exploration without ever seeing a beam on the MC mirror, Matteo noticed that the valves were closed, so I put the IB back where it started.
In the exploration process I opened the IB guardian. I tried to recover by closing the LC and waiting for things to damp, but I was unable to close the guardian without opening the LC. I waited a long time (until the LC light went off) and tried again, this time with success. This seems like a bug rather than a feature.
We leave the valves as they are and the problems to the Monday morning crew.
Now that the locking thresholds are OnFly, Alp is now much more active about changing them. The thresholds are initialized for locking in LOCK_INIT, are set in step 3 to prevent re-lock attempts by Gc without LOCK_INIT and to soften the impact on the IMC in case of an unlock. The threholds are further increased in step 7 to keep the unlock soft for the IMC, RFC and suspensions.
The plot shows an intentional unlock caused by switching on the NI zdamper. I did this rather than requesting an unlock from Alp so that Alp would have to respond to the unlock. Note that the IMC and RFC remain locked, that the Gc state goes to 20 (not locking) and stays there, and that the z corrections go quickly to zero.
We switched again to B2. We did not tune parameters or do anything special. We left the phase and offset as before (-15 dg, and -7000 counts) and just clicked the switch button. It worked without much of a bump, so at this point it seems that we have a repeatable enough alignment that we can move to B2 without much effort.
As previously reported, the lock on B2 is not as stable as B2_3f, though it is stable enough to stay locked. The first plot shows a histogram of B5_ACq when on B2_3f and B2, note the larger spread when on B2.
We made a quick attempt at tuning alpha. The nominal value has been 0.073 for some time now, but was 0.083 before. We explored the range between these values and found that one could improve the cancelation at 40Hz by increasing alpha to 0.08. This is, however, at the expense of cancelation at 20Hz (see second plot). This seems to indicate that we need a filter for alpha so that we can get good cancelation at more than one point.
Two unlocks at 853283884 and 853284170 occurred during the coil driver switching (NI, WI and BS). Do we need to tune some hardware offsets? Or is this due to an oscillation of PRCL?
In the current lock (step 12 reached at 853273949) a line at 62.8 Hz appeared. It was easly noticed because it is really close to the 62 Hz, which is the permanent line we inject on PR.
A quick look at the data says that the line wasn‘t there before.
We switched off all the CaRT file: the line was still there.
By increasing the amplitude of the 62 Hz, the amplitude of the 62.8 Hz didn‘t change.
We though that it could be somehow connected with the new version of locking algo, but the Gc elapsed time is good and the TF between photodiode signals and Gc corrections doesn‘t show any structure at that frequency.
We postpone further investigations... If the problem persists, it is best to double the PR line to help AlpLock maintain coherence. This can be done in the DSP, or in the CaRT cfg file
I recompiled Gc Locking and renamed the old binary directories with today‘s date as before. This compile has the excitation amplitude bug fixed one new feature: a selectable debugging channel. When onfly "debug_chan" is between 1 and 15, Gc_Locked is used to output some internal data:
1 - 4 = gains in use (MICH, PRCL, DARM, RFC)
5 = crossMP
6 = mix57
7 - 9 = counters (State3_Narm, State3_Warm, State4)
10 - 15 = power signals (Pp, Ps, Pn, Pw, sPp, sPs)
We also reconfigured the DB (IO_Config 1.72, was 1.71 and Fr_Synonyms 1.35, was 1.33) to output some new signals: Gc_DARM_z, Gc_MICH_z and Gc_PRCL_z are the control signals (i.e., post filter, pre-driving matrix) signals for these DOFs.
I also tested the gain filters, which are working and now enabled by AlpMain at step 8. I haven‘t looked very carefully, but the filters appear to increase the coherence between Pr_B1_ACp and Gc_Differential (which wasn‘t bad before, but is better now).
Having just watched a good movie called "The Sum of All Fears" (terrorist incited nuclear conflict during the cold war period), we were on the way to bed. I foolishly decided to check to see if the ITF was still locked. It wasn‘t... and I noticed that the LOCK_STEP had not returned to zero. Checking the AlpMain state from the web, I found that it had hung (blocked) while running LOCK_INIT. Not really knowning at which point things had gone bad, and fearing that the ITF might be in for a beating, we decided to go to Virgo instead of going to bed.
We found FbfSuspS and FbmSusp down. I restarted them at 2:55 local time while Lisa reran AlpMain::LOCK_INIT. A quick check of the suspensions seems to indicate that all is well. AlpMain was able to execute the Safety Actions before hanging.
The new Gc appears to prevent the IMC from unlocking with the ITF. In none of the 5 unlocks since the new Gc has been running has the IMC been unlocked. In only 1 of the 5 did the RFC unlock.
As a result, the FmodErr value has been around 10mHz with each measurement. This is representative of the random error in the FmodErr measurement (since there was no IMC unlock between these measurements, and the RFC resonance was the same for each, the actual length of the IMC was the same for each).
During this evenings noise injections, fluctuation in the PRCL to B1_ACp coupling was visible (both in magnitude and sign, much like for frequency noise). For the involved lock, Beta was zero (i.e., the coupling was roughly mean zero).
The observed fluctuation seems to imply that improvments in the beta technique are futile as the coupling which Beta attempts to cancel fluctuates. Of course, Beta should be tuned to leave a mean-zero coupling for each lock (and eventually the alignment reproducibility should be improved to make this happen with Beta = 0), but the addition of filtering to better tune the cancelation is not likely to help.
This night, after a few weeks, we tried again the switch to B2, which worked at the first trial.
Here are the parameters used:
B2 demod phase = -15
B2_d2_ACp offs = -7000
gain = -1.25e-3
Without any further adjustments, except reducing the MICH ugf in order to avoid HF oscillations, the ITF was stable enough to perform a calibration:
GPS: 853128053 - 353
The curve, compared with the one measured yesterday morning, is shown in the first plot. Between 50 and 200 Hz B2_3f wasn‘t limiting the sensitivity (see also second plot), so that no improvement was expected (actually the sensitivity is worse because the 80, 100 and 130 Hz peaks were bigger this night).
Below 50 Hz, instead, significant improvements are visible.
Even if the ITF seemed to be less stable than on B2_3f, in terms of SB amplitude fluctuations and corresponding less robustness of the MICH loop, the quality of the data doesn‘t seem to be bad (see last plot).
We may have a slight problem in our method of generating calibrated noise curves. During the 5 minutes of noise injection, the DARM gain loop tends to change the gain since its measurement coherence is reduced by the noise injection. When the noise is removed for the 5 minutes of clean data, the DARM gain measurement coherence returns, and the gain returns to its previous value. The size of the effect is about 10%. We should probably consider stopping the gain servos before injecting noise for the calibration, and restarting them when the clean data period is finished.
We injected noise in the longitudinal degrees of freedom.
* Noise on PRCL: A=5e-5 (pole@10Hz, zero @30Hz)
GPS: 853120790 - 853121090
UGF @ 28 Hz
* Noise on MICH: A=1e-3 (pole@10Hz, zero @100Hz)
GPS: 853122160 - 853122633
UGF @ 8 Hz
* Noise in the RFC loop:
-> line on CARM @ 75 Hz, A=1e-10 (853122937 - 853123290)
Driving Matrix adjusted so to minimize the CARM line on B1_ACp:
GcGain in WE DSP card moved from -1 to -1.1
-> Noise: A=1e-6 (pole@10Hz, zero @100Hz)
UGF @ 1.8 Hz
-> Quick conclusion: RFC loop noise is not seen in B1
* Noise in the SSFS: A= 1e-8
GPS: 853125234 - 853125434
At this point we are locked to step 12 with the new Gc. The noise generator appears to be working as expected (see first plot, made with Exc_DOF = 0). The Gc_ElapsedTime is now much lower than before (see second plot).
oops... found a bug in the noise amplitude. In debug mode it is right, but when applied to a DOF the amplitude is applied twice, so the noise scales with Exc_Amp^2. This will be fixed in the next recompile... Friday?
A bug which caused much confusion (of me), and tripped many guardians (sorry Fede!), has inspired me to recompile the Gc. I also hope to have fixed the noise generator (which wasn‘t filtering properly, sorry Gabri!). The Exc_DOF map is 1 == MICH, 2 == PRCL, 3 == DARM, 4 == CARM and the amplitudes are not multiplied by any funny numbers.
Of couse, I couldn‘t just fix bugs. I also added filtering for the gains and powers used in science mode. We will be testing the effect of these filters, but for now setting "gain_filter_state" onfly to zero is sufficient to disable them (1 to start the filters, but not use the output, 2 to use the filtered signals).
I also added some pre-driving correction signals debugging data to the filtering section. For filtering, the debugging_data map is 0 = MICH_corr, 1 = PRCL_corr, 2 = DARM_corr, and 3 = CARM_corr.
I started trying to start the new Gc at about mid-night (local time), but after 1.5 hours (at 19:30 Boston time, our nominal jet-lag) I gave up and asked Lisa for help. A few minutes later things seemed to be working.
The old binaries are in RIO806X_070117. If things go wrong:
cd /virgoDev/Gc/Locking/v17r5
mv RIO806X RIO806X_bad_Matt
mv RIO806X_070117 RIO806X
cd /virgoDev/Gc/Locking/Locking_Algorithms/v4r2
mv RIO806X RIO806X_bad_Matt
mv RIO806X_070117 RIO806X
and restart Gc.
In order to restart Gc, I generalized the famous Frasconi‘ s strategy, known as "senza saper ne‘ leggere e ne‘ scrivere" ( "without knowing how to read or write"), typically used for restoring order in suspension land.
I stopped the Locking process, Locking_Mirror and Alignment , the partition, and the Supervisor. Finally I rebooted rio36a and rio38a.
After that, everything could be properly restarted....Thanks Franco!