Yesterday some work on the Acl code of the locking process has been done, which is explained in entry 34861. The motivation for this work was the need of adding some more features / variations of lock that are connected between them. Based on the work done yesterday we have prepared a preliminary script for the lock of both arms in terms of CARM and DARM degrees of freedom (it is preliminary because it has not been tested yet and so it might need some modifications that we have not taken in account or forgotten) and the possibility of several types of CARM lock: mechanical lock using the end mirrors, lock of the MC length to the arms and SSFS lock.
- First step: Both arms are locked independently in transmission. This means that the DOF_TRIG and the DOF_LOCK_ON have to be always 1.
-
Second step: change basis from NArm, WArm to CARM, DARM. In order to do this, two extra .cfg files have been added to the LSC_Acl process: CARM.cfg and DARM.cfg.
- In order not to re-use the same filter as for NArm and WArm, for a future when they will have different shapes we have copied the same filter as for NArm, WArm. However, when we change basis, we don't want to use a filter which is not in-loop, so discharged. To avoid problems, CARM filter will be given the same input as NArm, and the reset conditions and gains will be the same in order to have a filter that is already in loop. However, the Output (CARM_CORR) is multiplied by a switch CARM_DARM_ON, which will be zero until we manually activate the basis change. The same thing was done for DARM with WArm.
- However CARM/DARM_GAIN of the filters are defined as NArm/WArm_GAIN * CARM_NArm/DARM_WArm_CAL. This calibration will be 1 by default but it will allow us to adjust the gain to the new error signal before making the change.
- So when we want to engage CARM and DARM we need: 1) Change the input of CARM/DARM from NArm/WArm to CARM_ERR/DARM_ERR, 2) Change the Driving Matrix in order to zero the contribution from NArm and WArm and to take in account CARM_CORR and DARM_CORR (NE_CORR = 0*NArm + 0.5*CARM_CORR - 1.0*DARM_CORR; WE_CORR = 0*WArm + 0.5*CARM_CORR + 1.0*DARM_CORR). 3) Activate the switch CARM_DARM_ENABLE which will allow the CARM_CORR and DARM_CORR to be sent.
- Notice that there is a manual switch CARM_DARM_ENABLE, that it is 0 by default and that we will activate when we want to switch to CARM/DARM, but it is CARM_DARM_ON which allows the correction calculated for CARM/DARM to be sent. The latter takes in account as well the NArm/WArm_LOCK_ON states (for CARM it also takes in account the MC lock state, but it will be explained a bit later). This is a protection in order to stop sending corrections if we unlock. Notice that at this stage we didn't add any extra protection because we believe that it will be possible to relock in this basis, without need to change back to NArm/WArm (this possibility has to be tested).
- The problem is that we will need to send all this three commands simultaneously. In order to do this, Alain has included a feature in the new version of Acl v0r17 which allows you to write in python cm_send commands and add at the end a string "load" which will charge the command but it will not apply it until we don't write a cm_send command with a string "apply" that will apply that command and all the previously loaded ones at the same time. A function has been defined on the LSC_init.py algorithm which includes all the needed statements, and it is called CARM_DARM_init().
-
Third step: different CARM locks. So far we have only made a change of basis (sensing/driving) but the lock is still mechanical. However once CARM and DARM are locked, we can lock CARM in different ways: MC2arm lock, in this case the error signal of the CARM dof (B4_6MHz or CARM_ERR) is sent to the MC DSP and so the laser will follow the CARM dof of the cavity. At the same time the mechanical lock of CARM (not DARM) has to be turned off; SSFS lock, in this case the error signal of the IMC (IMC_REFL_I) in a first stage (slow SSFS) and the error signal from SSFS_corr in a second stage are sent to the MC DSP. At the same time the SSFS_corr is sent to the rampeauto. In a first stage we will only make tests with one arm, meanwhile in the future it will replace the MC lock previously explained.
- For this locks using the MC we need to send the error signal to the MC DSP. The ony process that communicates with the MC DSP is ISYS_Acl, so we need to send the error signal to this process. To the MC DSP three signals are sent: SIB2_RFC_6MHz, which is the first stage of frequency stabilization, CARM error signal (which will be different for SSFS and for this preliminary MC2arm lock) and a switch that will tell the DSP which one of both error signals needs to be sent (SWITCH_MC_ON).
- This SWITCH_MC_ON is 1 if only SSFS_ON is 1 or if only MCarm_ENABLE is 1. If both are 1 it will be zero, as a protection. MCarm_ENABLE is only an external button that we put to one if we want to lock this way, and that it disables the mechanical lock of CARM. SSFS_ON on the contrary is a mixture of several conditions (one of them is a SSFS_ENABLE that is activated manually) to be defined yet.
- To ISYS is also sent SSFS_ON that on this temporary period will change the CARM error signal between the SSFS one and the temporary MC2arm lock.
- We also need to send to ISYS the error signal to be used by the MC (LSC_CARM_INPUT).
- As the SSFS is not yet fully decided and some tests need to be done on this intermediate configuration, a parallel process to LSC has been created only dedicated to SSFS (LSC_SSFS). This way we can take advantage from the shared memory and we can re-start the process freely meanwhile making some tests.
- A global scheme is shown in Figure 1.
Notice that all this work is preliminary/temporary, specially the last part. The work has been done in order to allow all this configurations to co-exist together. This is far from being the definitive configuration, for example the MC2arm lock will not exist when the SSFS will be working. And of course it needs to be tested first (we might discover some new problems that we missed or forgot to take in account), but at least it will allow several intermediate configurations to exist without the need of re-writing, re-starting the processes in permanence. This was important specially now that ISYS_Acl is involved and re-starting it means un-locking everything except the IMC.