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

Added check over LNFS communication

While keep trying to recover the lock we realized that one of the problem we had was due to the fact that the tuning of the LNFS 6 and 56 MHz amplitudes was not actually performed because of a communication error with the LNFS box. The error was indeed reported on the ITF_LOCK node logs but this was not raising a blocking error at the level of the ITF_LOCK node itself.

After some investigation we realized that the LNFS box was not restored in remote communication mode after an intervention some time ago. Putting back the box in remote communication mode solved immediately the problem.

In order not to be trapped again on this situation the ITF_LOCK code has been modified in order to raise a specific and blocking LNFSCommException error in case the dedicated scripts used to send command to the LNFS box are failing. This implied substituting the subprocess.Popen() calls with subprocess.check_call() calls. Few test have been made, for checking this new behavior, by generating fake errors on the set_LNFS_amplitude.py script.

1 comment

bersanetti · 26 Oct 2017 · 16:41 #39893

I pinpointed this new functionality as the culprit for the recent issues  with the NArm suspension guardians: this was happening because of the subprocess Python module used to launch the set_LNFS_* scripts: the newly used subprocess.check_call instruction is a blocking instruction, meaning that the following Python code was not executed until a good returncode was acquired from the interpreter. The net effect was that, in the DOWN state of ITF_LOCK, nothing after such call was executed until the call itself was concluded; namely, this meant setting the managed nodes to DOWN and turning off the main LSC_ENABLE flag, resulting in very high corrections being sent to mirrors for several seconds after the unlock. I made a few lock/unlock tests switching between the old and new configurations and this seems reproducible.

As a countermeasure I simply put the offending call at the very end of the main() function of the DOWN state, so now everything is put down before reinstating the 6 MHz amplitude.

This kind of call is also made several times during the lock acquisition, and it feels related to some lock acquisition failures I observed during the week, as the main ones happen while going to dark fringe and to LOW_NOISE_2, in the latter case resulting in several additional seconds where the ETM actuators are halfway through the switch from LN1 to LN2; for safety, I moved the LNFS stuff at the end of the main() in the LOCKED_PRITF_DF state, and at the end of the run() function in LOW_NOISE_2.

The following lock acquisitions will be monitored to ensure the correct behaviour.