Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-COM›automation #55237

Metatron nodes updated

Today, in parallel to the ISC activity, we worked on the Automation, updating several nodes:


TCS_MAIN:

  • the HWS cm server, devoted to the interaction with the HWS acquisition software, has been renamed to PyHWS and moved from VirgoOnlineTest to VirgoOnline; it has been made non optional, and put aside to other TCS processes (like PyTCS); log directory and history have been ported as well; the server now uses the new version of the acquisition software hwsAna2022.py, and it is safe to leave it active, as it does nothing if no cm command is sent to it;
  • the TCS_MAIN Metatron node has been updated in order to implement a new state, ACQUIRING_HWS_WAVEFRONTS, which is devoted to the continuous acquisition of the HWS during lock acquisition and steady state; the new logic has been tested a few times and it is working; there is only a corner case to be addressed, which is about the timestamp of the directory created by the hwsAna2022.py script, which may differ from the one inferred by Metatron, given the delay between the state selection and the actual creation of the directory; the -ING name of the state addresses the fact that, despite being a "final" requested state, it keeps doing stuff;
  • this new state uses the same parameters in order to turn on the HWS as the DAS characterization routine, therefore they have been moved to the general section [TCS_MAIN] in the configuration file, as they are now used in multiple places; the section devoted to the new state is [HWS_MEAS], where we have:
    • starting_hws (default = INJ): this defines the starting HWS for the acquisition; given that we cannot have both on at the same time, the idea is to switch from one to the other, from one lock to the next; the switch is triggered by a number of successful acquisitions;
    • dark_time, ref_time, ref_nimgs; these are equivalent to the ones present for the DAS characterization measurements, and they are used to check if the Dark/Ref acquisitions have been successful, based on timeouts and the number of required ref images, as such number is part of the image file name itself; for this continuous acquisition the automation is (as of now) NOT checking if the live measurement is successful;
    • live_wait (default = 30); time between two consecutive live images acquisition by the HWS (i.e. between two consecutive "-l" cm commands);
    • live_stop (default = False); this flag can be put to True to stop the live acquisition of the images, without the need of acting on the automation node, which will soon be managed by ITF_LOCK so that manual interventions will not in principle be possible anymore; this parameter is read from the .ini file each live_wait seconds (previous bullet), so it can be put back to False in order for the acquisition to resume; the acquisition will NOT perform the Dark/Ref acquisitions again, but it will just resume the Live ones;
    • hws_switch_thr: number of successful live acquisitions after which the swap of the used HWS will be triggered at the next relock; mind that this is managed by an internal global variable in the Pyhton code, therefore it will be overridden in case of node crash, restart or "LOAD"; in such cases the first acquisition will be done with the starting_hws, which can be changed beforehand in case;
  • in addition to the already present DQ_META_TCS_DAS_CALI_ON channel, which is 1 when the DAS characterization is ongoing, three new channels have been added to the node:
    • DQ_META_TCS_FAULT: it is 1 when the node goes to its emergency state when something goes wrong or it is misconfigured (see below);
    • DQ_META_HWS_[DET/INJ]_ON: it is 1 when the acquisition with the corresponding HWS is ongoing;
  • the DAS_CALI_FAULT state has been renamed to TCS_FAULT, as it is used by both actions the node performs (DAS characterization and HWS acquisition); its use when the node will be managed by ITF_LOCK is still to be decided, as we do not want to kill the lock acquisition if "only" the HWS is not behaving as expected;
  • all the DQ_META channels are put back to 0 in the DOWN state;
  • PyHWS and TCS_MAIN have been left on, TCS_MAIN not managed and in the DOWN state; the new states layout is attached.

ARMS_LOCK:

  • in order to try to cure the bug that sometimes causes one of the two arms at the beginning of the lock acquisition to not lock on its own, possibly because of the big number of cm commands sent at the same time, the two arms have been "desynced"; the North Arm is asked to lock, then a few seconds later the West is asked the same; the configurable time (arms_desync_wait, default = 6) is in the [ARMS_LOCK] section of the configuration file;
  • in the same section, a new dither_wait (default = 120) parameter has been added: this amount of seconds is waited before actually entering the LOCKED_ARMS_IR steady state, in order to have the dithering to converge before moving forward with the lock acquisition; the time left is notified by the ARMS_LOCK GUI.

DRMI_LOCK:

  • in the DOWN state, the reset of the PR angular loop sensing matrix has been fixed, to reduce the number of commands sent to the ASC_Acl server;
  • in the DOWN state, the new lines injected on PR/BS/SR (both TX and TY, via Acl) are turned off;
  • in the ENGAGING_ASC_DRIFT_CTRL state (DRMI locked on 1F, arms out of resonance), where we set up the PR angular loop, also the BS drift control is set up; settings are in the [DRMI_ASC] section of the node's configuration file; the PR loop is engaged at the end of this state, but the BS is not, as we wait for the PR loop to stabilize and the B1p_QD1 galvo to close;
  • shortly after, in the ENGAGING_ASC_FULL_BAND state, the new lines on PR/BS/SR (TX and TY) are turned on; their amplitudes are the same that were tested in #55208, but the ones for the BS have been halved; at the end of this state, after the B1p_QD1 QPD is engaged and its galvo closed, the BS drift control is closed as well; the lines are kept on up until an unlock occurs.

ITF_LOCK:

  • in the LOCKED_ARMS_BEAT_DRMI_3F state (idx=65) a check has been added: the lock acquisition will not move forward until the BS drift control has converged below a certain threshold (abs(ASC_BS_TX) < bx_tx_err_thr, the same for TY); the thresholds have been set to 0.05 ([DRMI_3F] section in ITF_LOCK.ini); once the check is successful, the BS drift control will be opened before moving forward to the CARM offset reduction phase of the lock acquisition;
  • the DARM filter which was added in the [CARM_NULL_3F] section but applied in the step before (REDUCING_CARM_OFFSET_3_OF_3) has been moved to the correct section and its application integrated with the other cm commands in the proper way;
  • in the LOCKING_CARM_NULL_1F state, both the BS and SR drift controls have been implemented (settings in the [CARM_NULL_1F] section of the .ini file, the BS ones can be different to the ones described above when only the DRMI is on the IR); at the end of the same state, the DARM boost filter has been parametrized (it can be edited in the [CARM_NULL_1F] section); at the same time, the MICH2DARM (Alpha) subtraction filter is loaded (mich_darm_filter in the same section) and the subtraction is turned on; finally, the DARM UGF for the boost filter has been changed from 65 to 75 Hz.