AdV-DET›Local controls for all benches
#33922
SNEB local control two step TY locking
Implemented an automated two step locking for the SNEB angular control.
It is applied just for the TY degree of freedom. The motivation is that the current filter that has good RMS and no noise re-injection cannot acquire lock as it is conditionally stable and has high gain that easily saturates the actuator.
The logic is that when the lock is enable first the robust filter is used, and once the error point is small, and stays small for 15 seconds, the lock is switched to the better but conditionally stable filter.
The code snippet is below and more can be found in /virgoData//VirgoOnline/SNEB_Pr_LC.cfg. This could be useful for automation of locking steps, as long as the steps are simple. More complex cases are probably better handled by a Python script.
Tested that it works properly for lock acquisition. On the figure is an example when I make the low noise filter unstable, you can a see a cycle: the low noise filter oscillating at high frequency, switching to the locking filter that makes a few low frequency damped cycles, and then a high frequency oscillation again as the lock is switched to the unstable filter.
# switch to enable low noise TY lock, if error point is small switch to low noise lock
PR_OP LC_TY_err_fabs "fabs" LC_TY_err
# the two thresholds after the channel name switch off (and resp on) the low noise lock
PR_TWEIGHT LC_TY_largeError 0 15 "LC_TY_err_fabs" 15 5 10000 -2 ">="
PR_TWEIGHT LC_TY_lowNoise_disable 0 15 "LC_TY_largeError" 1 0.001 10000 -2 ">="
PR_TWEIGHT_CH LC_TY_lowNoise_enbl LC_TY_lowNoise_disable "csw"
PR_FILTER_CH LC_TY_fb_highNoise LC_TY_flt 1 "flt_TY" 10000 "V" 10 0 0
PR_FILTER_CH LC_TY_fb_lowNoise LC_TY_flt 1 "flt_TY_lowNoise" 10000 "V" 10 0 0
# reset the lock acquire filter both when starting to lock, and when the low noise filter stops working properly
PR_FILTER_CH_RESET_CND "LC_TY_fb_highNoise" "LC_TXYZ_enbl"
PR_FILTER_CH_RESET_CND "LC_TY_fb_highNoise" "LC_TY_lowNoise_enbl"
PR_FILTER_CH_RESET_CND "LC_TY_fb_lowNoise" "LC_TXYZ_enbl"
PR_FILTER_CH_RESET_CND "LC_TY_fb_lowNoise" "LC_TY_largeError"
# switch between low and high noise state to form TY feedback
PR_OP LC_TY_fb_highNoise_ramp LC_TY_fb_highNoise "*" LC_TY_lowNoise_disable
PR_OP LC_TY_fb_lowNoise_ramp LC_TY_fb_lowNoise "*" LC_TY_lowNoise_enbl
PR_SUM_CH LC_TY_fb 1 LC_TY_fb_highNoise_ramp 1 LC_TY_fb_lowNoise_ramp