Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-SGD›FDS commissioning Comment on #53468 #53515

Comment to LO/BAB from FC MM: FC recovery

This evening I've tested the solutions proposed in the previous comment. Thanks to the unstable conditions of the cavity today, there were many opportunities to test abnormal behaviour of the cavity.
A the beginning I solved the issue spotted in the original post. The real problem was a decorator pointing to the unlock state but used to decorate DOWN.

I wrote several new functions to operate on the setf and inif:
repair_setf() - repairs the .set file in case the automation finds it empty (and stuck for this reason), finding .set is probable as it is automatically written by the automation;
read_setf() - reads the .set file truly by overwriting setf structure entirely;
read_inif() - reads the .ini file truly by overwriting inif structure entirely.
inif does not need repair.

I introduced a new section [Options] to the .ini file. It contains "automatic_discharge" parameter. If it is set to true (case sensitive) it performs integrators discharge in the unlock state.
This parameter can be modified on-the-fly when the automation is running. Unlock state will take the updated value in consideration while deciding if to discharge the integrators.

In the future any parameter included in .ini can be updated on-the-fly if the automation uses read_inif() correctly. If you introduce a new parameter please indicate in the comment if you wish it to be considered in this way.

Discharge is based on values stored in .set file. There are two new function to check the condition of this file:
setf_empty() - check if the file is filled with values (being repaired is not enough);
setf_old() - check if the file was updated more than one hour ago (interval to be decided).

At the end of the shift the AFC and BPC drift much probably due to the SQB1 in air and thus saturate their actuators. I leave the automation in down for the stability test.