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

Making the unlock detection more robust against framebuilder issues

Today we changed the automation logic by which we check if the interferometer is locked by checking that the LSC_ENABLE flag, based on a threshold on B7_DC, did not drop to 0. This is in order to become more robust against unlocks caused by framebuilder errors (which I've been told they affect only data on memory/disk, and not data flowing around via Tolm).

Up to now we were checking whether such flag, in each 1 second long data stretch, had its minimum below 0.5; the first proposed solution was to double check this by also checking SNEB_B7_DC and compare the two (not LSC_B7_DC which suffers from the same Fb problem). This means some additional reading/writing in several nodes, so Franco proposed another solution as a first approach: we keep just checking the flag, but we changed it to checking the mean over 1 second, with "> 0.95" as condition; given that the flag is a 0-1 relay, it means that we accept 500 samples to be zero in case of a fast hiccup of the flag. This may have the side effect of delaying any unlock detection based on META_ITF_LOCK_index by one second, to be verified.

However, I checked a few events (attached), and in all of them we have more than 1 DAQ cycle of missing data, so I am not sure this will work; we'll see if we have any chance of testing it anyway tonight, but tomorrow I may implement the new strategy already. In particular, two additional observations arise:

  • each event lasts two full integer seconds (two cycles) plus whatever is left of the cycle when the event starts;
  • LSC_ENABLE actually goes to zero (for real) much later after ITF_LOCK goes to DOWN; this problem was already reported a long time ago by N. Arnaud but I did not find an explanation at the time, and I don't know whether it went away and came back, never left, or it is an uncorrelated effect of the issue at hand. Either case, I will look into it again.

2 comments

bersanetti · 7 Sep 2023 · 18:26 #61538

Today the more proper check was implemented:

  • we still check the mean value of the flag LSC_ENABLE, and accept that it is above > 0.95;
  • we also check that SNEB_B7_DC is above a given threshold; the OR of the two will return False or True, so we should be safer against framebuilder issues;
  • this is done directly in the LSC_ENABLE_tripped function, defined in META_library.py; we use, as threshold, the same b7_dc_thr value defined in the [CARM_NULL_3F] section of ITF_LOCK.ini, so we are consistent and, more importantly, there is still only one place for this parameter, no duplication;
  • given the 27% difference between SNEB_ and LSC_ values of B7_DC, the value read from the .ini file is rescaled, so that the two checks are consistent one with the other; this factor 1/1.27 is hardcoded inside META_library, as it is inside LSC_Acl (B7_adc_gain), so this is the only thing to remember in case such difference should change;
  • the LSC_ENABLE_tripped function is used in four nodes (detected by a simple grep): ITF_LOCK, ITF_STATUS, ARMS_LOCK and DRMI_LOCK. Given the need to add SNEB_B7_DC to the FDIN_TAG of these nodes, they have been stopped and restarted between 16:07 UTC and 16:25 UTC.

We already locked once at least to when we start to use the functionality, no issues have been spotted so far; the monitoring will continue, as well as the check on the effectiveness of this in case of a Fb error.

masserot · 9 Sep 2023 · 14:29 #61567

There was an ISC_Fb event the 2023-09-09-11h22m53-UTC

  • 2023-09-09-11h22m53-UTC>ERROR..-[TolmFrameBuilder::FrontEnd] Rtai DAQ FIFO overrun -> acquisition is reset

Thank to the new logic implemented by Diego and Franco for the LSC_ENABLE_tripped function, the ITF doesn't unlocked due to this event and remained locked to unlock  one minute later. (see plot)