This morning there were few problems with the lock acquisition regarding a couple of critical points:
1. The hand-off of PRCL from 3f to 1f. It seemed that when the error signal was making the hand-off, the demodulation phase was stil changing causing unlocks. We checked in the logs and indeed that phase change was sent with a ramp of 20s. We hardcoded a ramp of 1 second in the Automation.
2. The engagement of CARM slow loop is very agressive and it causes also some unlocks. We commented these lines and we managed to stay locked in CARM NULL 1f, even with the good phases of the DIFFp (and we fine tuned the phase of PRCL in 1f). We are currently working in the engagement of this loop, which seems to be our stopper.