Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-ISC›Sensing and control implementation #42996

ASC Migration from DSP to Acl -- Step #1: BS

Today we started the migration of part of the ASC code from the DSP cards to ASC_Acl; this is just the first step, as we will proceed with the other DOFs one at a time;

  • we started from the BS DOF, as it is the easiest and most self-contained one, in order also to study the general layout of the code and to start modifications also on the main ASC_Acl configuration file, although we did not touch the sensing part for the time being;
  • we did not touch the noise generation inside ASC_Acl; in the future we will harmonize it with what already exists in CALnoise to avoid duplications and sources of confusion;
  • the sensing and the sensing matrix are left unchanged for now: the plan is to remove the duplication of demodulation phases and rotated channels by acting directly on the demodulation phases in the [Bench]_Quadrants processes; we will keep a single sensing matrix (differently from what happens inside LSC_Acl) but we will do normalizations in a more sensible way w.r.t. the loop structure;
  • a new dedicated configuration file for the loop filters has been introduced, which will be populated along the way; the ASC_NONE placeholder and the Gain_Filter are already there;
  • the DSP now receives 6 signals from ASC: two flags, two loop signals and two noise signals, one of each for each DOF;
    • the flags are triggered, but they must be enabled manually (or via Metatron); for the BS degree of freedom the Acl flags are called BS_TX_ENBL and BS_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 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 DOF of the mirror; 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 above;
    • instead, the sensing noise is added to the error signal before the loop filter as usual;
  • 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);
  • there are only two GNAMES to act on (one per 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, than 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;
    • 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 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 cm command;
  • inside ASC_Acl we already set up the final driving matrices (and associated flags): the structure is ready and everything will be un-commented in parallel to the parts of the code actually migrated; a few placeholders (mostly for the very convoluted PR loops) are used and will be removed along the way;
  • the names of the main signals were left unchanged, so mostly everything should be already in the DAQ, while some flags and noise-related channels may be still missing, it will be checked in the following days;
  • all the Metatrion nodes have been updated with the new scheme;
  • despite all the advantages and simplifications of the new approach, a minor disadvantage is the need of two flags in order to engage the dithering control; I had to include the ASC AclServer definition inside META_library.py, which is in principle not nice, as every node will load it; a possible workaround will be studied;
  • the VPM configuration has already been updated to the design state, meaning removing unnecessary/old stuff and already setting up the new needed configuration files (even if empty for the time being).

Afterwards, we relocked the ITF up to LOW_NOISE_3 with no issues; since we have now one flag per DOF, we could also manage to close the BS_TX loop in full bandwidth; the BS_TY still needs some work, as it made us lose the lock.

One effect of the new code is that the BS mirror is quite agitated after an unlock; I already made the switch of the Acl flag back to zero quicker in casa of an unlock, as maybe a wrong correction was sent for a few extra ms; this will be checked in the next locks.

1 comment

bersanetti · 10 Oct 2018 · 23:14 #43004

Looking at two different unlocks it seems that reducing the ramptime for the new BS_[DOF]_ENBL to go to zero in the DOWN state is helping a lot to keep the BS marionette in place; to be confirmed with more statistics.