Yesterday afternoon and today morning we performed some activities on the locking algorithm and the logic scheme, foreseeing the upcoming work on CARM and DARM DOFs:
- up until now, the {dof}_CORR and {optic}_LOCK_FLAG signals sent to the various Sc DSPs were not coherent, in the sense that the LOCK_FLAG could be 1 even if we weren't try to actively lock; this is now fixed and the LOCK_FLAG should be 1 only when we are trying to lock some DOF;
-
in order to do so, the LOCK_FLAG channels are populated now by the {dof}_LOCK_ON variables, which are the logical "and" of three channels: {dof}_TRIG, {dof}_ENABLE, LSC_ENABLE:
- all the {dof}_TRIG channels monitor the automatic conditions that must be verified in order to lock (DC thresholds, etc.); these are handled internally in Acl, with the usual possibility of modifying the values to be checked against via cm/Python/Automation;
- all the {dof}_ENABLE channels are the manual switches that must be set manually or via Python scripts when some DOF has to be locked; they are essentially the old {dof}_OUTPUT_GAIN channels, which were used as boolean flags anyway, so the naming is now more coherent with the meaning; the only gains remaining are now the {dof}_GAIN channels, which are the actual gains of the locking loops;
- LSC_ENABLE is a global, manual boolean flag to be set manually or via Python scripts.
- the {dof}_CORR channels are now different from 0 only when the corresponding {dof}_ENABLE is 1;
- for the CARM and DARM loops it may be the case to use the existing NArm and WArm filtering and locking architecture: this should prevent the incorrect load of out-of-loop filters before the rotation of the DOF basis, as suggested by Bas and Henrich; this will cause a possible misinterpretation of the channels, as the CARM correction (for example) will go through the NArm filtering section, with its corresponding names. However, the correct channels to look at will always be the {dof}_CORR, in this case CARM_CORR, which will be set using the correct {dof}_ENABLE flags, as stated above. We have to discuss if this is the best choice, or if it would be better to have each DOF with its own filtering scheme, since this should be computationally feasible, while it was not in the past In any case, in order to do a correct DOF transition, a simultaneous change in both the sensing and driving matrices is needed, when switching from NArm/WArm to CARM/DARM; the new Acl v0r17 feature which allows to "load" several parameters in a row and then "apply" all the changes at once will be very useful for this implementation;
- we changed the LSC_Acl module and wrote a proper Driving Matrix, using the ACL_MATRIX functionality.
- In order not to make too many changes at once, the sensing part has been kept DOF-dependent as it has always been; we will think whether to write a single sensing matrix, but given the number of possible error signals available for each DOF, maybe such matrix would end up being too big and/or cluttered. To be discussed.
- in the LSC_Acl module, we harcoded all the units for all the variables that are sent via Tolm to the DSPs; keeping the name and the unit fixed for those channels should be enough to prevent the manual download/recompilation due to the change in Tolm package addresses/headers. If possible, do not change the names and units of the variables sent via Tolm, unless restarting the Acl process and the intervention on the DSP are sustainable.
Today morning we relocked both arms and verified that the changes made did not impact any functionality. We will check MICH locking as soon as possible, but we do not foresee any issue at this point.
Both the locking script (/olusers/virgorun/ISC/LSC/LSC_init.py) and the Automation/Guardian state machines' scripts have been brought up to date with the changes reported in this entry.