As requested, I have been working on making a scan of the North Arm cavity. In normal conditions, we do this scans in the so-called state "ARMS_BEATING", which implies that at low frequencies (up to 10Hz) the error signals used for CARM and DARM are coming from the green beating signal in transmission of the cavities and the actuation is done to the arm cavities' mirrors. During all this process, the loop that tunes the frequency of the green beams is still on, using the error signals in reflection and actuating on the corresponding VCOs.
In the present configuration, there is no west arm available, so the automation can't be simply used as it was in the past without heavy modifications, since Metatron checks continuously that all the suspension nodes are working properly, and also the different triggers of each dof control. Only the nodes of ALS_NARM (that monitors the green lock) and NARM_LOCK (that monitors the IR lock) are working properly, the node above it already checks the behaviour of the west arm. For this reason I focused on writing a script based on the ARMS_BEATING state but without the west arm part.
In practice I wrote 3 small scripts (with the help of Alain), that can be found in our usual script library (/optics/ISC_scripts/ITF_lock_library_HP.py): Reallocation_NARM_set(carm_freq, darm_freq), Reallocation_NARM() and Reallocation_NARM_OFF().
The first script basically turns off the contribution to the beating error signal coming from the WEST since it introduces lots of noise. Then it sets the offsets of CARM and DARM error signal, in order not to change the working point while doing the reallocation. Metatron does this step automatically, but I did it by hand everytime, checking the online value. The rest of the script basically sets the correct gain, the correct filters, select the right input and sets the lock flag to 1. Notice that one of the commands doesn't come from Metatron (GREEN_OFF = 1), and we had to add it in order to bypass the fact that in order to reallocate CARM and DARM Acl code checks if BOTH green arms are locked. The other option could be to force manually the DC2 lock switch to 1 from the west, but we didn't want to risk any collateral effect. Once this script is launched, the filter starts to receive and calculate the corrections, but it doesn't send them.
The second script basically enables to send the corrections and sets the correct driving, turning off the corrections of the IR lock that are being sent to the mirrors up to then. The third script "undo" all the actions of the previous two.
Using these scripts we managed to do the reallocation at the frequency where we were standing, and the error signal was correctly put to 0 with reasonable corrections. However as soon as we would add an offset, the error signal couldn't be kept to 0 by the loop and the corrections started to integrate. Figure 1 shows the behaviour of this morning while Figure 2 shows an example of a past scan.
Any feedback from the experts about how to solve the issue is welcome.