in preparation for tomorrow's shift I upgraded the ASC code for the COMMp sensing. The final signals to be put in the sensing matrix are the same, COMMp_BL_TX and COMMp_BL_TY, but their definition allows more choices with respect to now, when we just had the blending of B4_QD2_6MHz (LF) and B7_QD1 (HF). The code is very much similar to the one used in SPRB_Photodiodes for the choice between B4_PD1 and B4_PD2.
Now the selection between QD1 and QD2 is possible, independently for V and H, and for both B4 and B7; so we have 4 relays (B4_QD_V_select, B4_QD_H_select , B7_QD_V_select and B7_QD_H_select, where -1 means QD1 and +1 means QD2). They select the corresponding QD signal to be used, which can have a weight on its own, to be computed to switch between QD1 and QD2. B4_QD2 and B7_QD1, being the ones currently in use, have weight 1.0, Mind that both the relay and the weight must be used to select a PD, not just the weight as for a standard ISC handoff.
The code in ASC_Acl is at lines 491-528, to be uncommented before restarting the process; concurrently, lines 478-486 should be commented.
The Automation code in ITF_LOCK has been prepared as well; the correct parameters to replicate the current configuration are already saved, the other ones have to be measured; the demodulation phases for B4_QD1 are the current ones, which are already good enough:
- in the .py file, lines 3337-3355 should be uncommented and lines 3359-3360 should be commented;
- in the .ini file, lines 327-342 should be uncommented and lines 345-346 should be commented, then the node reloaded.