Today's shift was devoted to do the big remaining part of the code migration of the Automatic Alignment, which is the code related to the cavity mirrors:
- since they are quite entangled with one another, we decided to do the migration in a single step, in order to be more consistent;
-
essentially the structure of the ASC code related to the cavity mirrors is now aligned with the one related to the BS and PR towers, with some caveats which will be discussed; the structure of the loops and the main flags (both in Acl and the DSPs) is the same already described in the previous entries (#42996 for the BS and #43294 for the PR), I repost here a slightly updated version of the main changes related to the flags:
-
each DSP now receives 6 signals from ASC: two flags, two loop signals and two noise signals, one of each for each mirror DOF (TX and TY);
-
the flags are triggered, but they must be enabled manually (or via Metatron); for each degree of freedom the Acl flags are called
[DOF]_TX_ENBLand[DOF]_TY_ENBL; they force in the DSP the switch from Local Controls to Automatic Alignment, independently from the control strategy in use; they must be preferably set back to zero when changing strategy (more on this below); the trigger is now asymmetrical, in order to populate the signals earlier, since in this phase the filtering is still done in the DSPs; - the two "loop signals" can be either error signals or correction signals; the choice of the filter in use in Acl determines their nature, a GNAME on the DSP selects the actual control strategy; they are currently conditioned with the flags, but this may change in the future;
- the two noise signals are just generated and sent to the DSP, and they are intended as driving noise directly on the TX/TY mirror DOFs; this allows to inject driving noise via Acl also when unlocked; some change in the generation of such signals will follow the changes in the ASC noise generation as explained below;
- instead, the sensing noise is added to the error signal before the loop filter as usual;
-
the flags are triggered, but they must be enabled manually (or via Metatron); for each degree of freedom the Acl flags are called
-
each DSP now receives 6 signals from ASC: two flags, two loop signals and two noise signals, one of each for each mirror DOF (TX and TY);
- ALL the old GNAMES in the DSP have disappeared but the LINE_ENBL one, which enables the lines for the dithering control (and its gain, from 0 to 1, where 0 acts also as a switch);
-
there are only two GNAMES to act on (one per mirror DOF), AATX_FLAG and AATY_FLAG; they decide the control strategy in use, which is applied ONLY if the aforementioned Acl flags are set to 1, otherwise everything will stay under Local Controls;
- if such GNAME = 0, the dithering control is in use;
- if such GNAME = 1, the drift control using the QPDs is in use; this means that the Acl section has to be setup first, then the GNAME must be set to 1, THEN the Acl flags must be set to 1 in order to actually engage this kind of control; for the DOFs where we never implemented a Drift Control, "1" is the value for the full bandwidth loop (see below);
-
if such GNAME = 2, the full bandwidth control is used; the strategy of the previous stage still holds: it will be more important in this case to set the Acl flag to zero before changing the GNAME, as the signal sent to the DSP will 9in the future) switch from "error signal" to "control signal"; for the time being, the full bandwidth control is still done in the DSP (meaning that we do not filter the signal inside Acl), but the Acl code structure is ready, as we only need to copy over the filter and change it via
cmcommand;
- one main difference regarding the cavity mirrors is the mixed driving: usually we drove DIFFp only with WE and COMMp only with NE; using the same Acl flags used to engage the loops, but on the ITMs, one can select respectively WE/WI driving for DIFFp and NE/NI driving for COMMp, sort of simulating the DIFFm/COMMm loops using also the dithering lines for the mirror centering, which are back on as usual from dark fringe onwards; pratically, once the loops are already engaged, setting the ITM flag to 1 will just mix the driving;
-
regarding the flags, they are built on a mirror basis as they need to be sent to a single tower, and this happens after some mixing of the flags in the DOF basis (see Figure); while for PR and BS this was already straightforward, for the cavity mirrors tihs is not the case; to avoid bad naming and retain flexibility, the dithering control is now a "DOF" which can be used in the flag matrix (
ASC_DITHER_T[X,Y]_ENBLturns on the input) ; this is used naturally in the Recombined configuration for the Dithering Control, and it is also the flag that has to be used for the ITMs in case of the mixed driving, as essentially for the ITMs also the dithering signals are used; as a result, for the time being the DIFFm/COMMm loops and flags are not used at all but they are ready just in case; in the Figure there are the (empty as default) matrices for the flags, which get entirely reset to zero in the DOWN state (using the.reset()method); -
there is still some cleaning and consistency checks to be done, but this is now something internal to Acl, so it can be done adiabatically without much risk of disruption:
- regarding the naming convention, in order to avoid some confusion (BS/PR are both DOFs and mirrors, while DIFF+-/COMM+- are in principle a mixed matrix of NI/NE/WI/WE);
- the sensing part of the code was not touched, in order not to pile up possible mistakes; this means that for the time being we still tune the demodulation phases inside ASC_Acl instead of the benches processes; fixing this latter point will also have the benefit of greatly reducing the channels sent to the DAQ by the ASC_Acl process;
- all the relevant channels should be already in the DAQ, please tell if there is something missing;
-
we took the chance to revise how we deal with the violing mode damping: now each cavity DSP has a dedicated channel (LSC_[MIR]_VIOLIN_OUT) which is sent to the DSP; the actuation point can be selected via the DSP's own GNAMES (
DR_MA_[Y,Z,TX]); there is no more hijacking of channels, as now we also foresee to drive the 50 Hz feed-forward directly on DARM instead of using strange paths; - there is still some cleaning to do about the noise generation and the correct differentiation between sensing/driving and DOF/mirror based noises;
- for the time being, the ASC scripts and the ASC and VIOLIN GUIs are out of date; they will be aligned to the online code as soon as possible;
- all the involved Metratron nodes (and META_library as well) have been updated and restarted from scratch;
- after some debug and some TANGO issues (thanks to Valerio for the help!) we managed eventually to lock to LOW_NOISE_3; for the time being the DIFFp mixed driving is enabled only for TX, while for COMMp both DOFs are mixed now;
- we faced some issues with a corrupted channel (Sc_NE_MAR_Y_CORR) and some issues regarding the communication between the NI and NE DSPs and the "keep sample" functionality; this will be investigated tomorrow;
-
also (and maybe related), we found some excess noise (of a digital nature) on the NI marionette actuation; as a temporary patch, once in LOW_NOISE_3 we completely turn it off using the just as temporary GNAME "MAR_ENBL".
The ITF was left in LOW_NOISE_3 with the AUTORELOCK_FAILSAFE active; COMMISSIONING mode stopped at 22:44 UTC.
1 comment
Related to the excess noise on the NI marionette actuation: