After the installation and the centering of the PSD on the end bench, I started to implement the pointing loop. A new config file was generated called 'GREEN pointing', located in the AFC_Ctrl. The structure of this pointing loop is the same as all the angular control loops of the filter cavity.
I first generated the normalized signal of the PSD X and Y by dividing the raw signal by the PSD sum.
Then I sent a ramp of 0.5V on M7 X and Y, to check how much the normalized PSD signal changed. It seems there is some coupling between X and Y, it could be the coupling from M7 piezo or the not well oriented PSD sensor. In this case, instead of using a simple calibration factor, I measured the sensing matrix and inverted it to be the final error signal. By injecting again the ramp on M7, I cross-checked the error signal with the movement of the mirror and did fine adjustments to the matrix. The final matrix inserted into Acl is shown below.
ACL_MATRIX_BEGIN GR_BPC2_DRIVING 1 PSD_X_NORM PSD_Y_NORM
ACL_MATRIX_CH GR_M7_BPC2_X "" 546.9 -85.12
ACL_MATRIX_CH GR_M7_BPC2_Y "" -46.82 -187.27
ACL_MATRIX_END GR_BPC2_DRIVING
Because the range of the M7 piezo is quite small, in order not to saturate it, I tried to close the loop in the current position of the beam.
The setpoints of the loop are
ACL_CONST_CH GR_M7_BPC2_X_SET "" 1 LOOP_FREQ -16.5
ACL_CONST_CH GR_M7_BPC2_Y_SET "" 1 LOOP_FREQ -4.2
We could keep these setpoints or center better the PSD by hand in the future.
This pointing loop is needed to keep the position of the green transmission when the AA loop is engaged, so the bandwidth of the loop should be quite small.
The current filter used for this loop is
ACL_FILTER_SET "GR_BPC2_X_flt" 5 0.002 1 8
ACL_FILTER_POLES "GR_BPC2_X_flt" 0 0
ACL_FILTER_POLES "GR_BPC2_X_flt" 1 1
We could further adjust it if needed.
Then the corrections from this loop were added to the old BPC final signal.
ACL_SUM_CH GR_M7_BPC_X_CMD "" 1 1.0 GR_M7_X_ramp 0.0 GR_M7_BPC_X_CORR 0 GR_M7_BPC_X_line -1.0 GR_M7_BPC2_X_CORR
ACL_SUM_CH GR_M7_BPC_Y_CMD "" 1 1.0 GR_M7_Y_ramp 0.0 GR_M7_BPC_Y_CORR 0 GR_M7_BPC_Y_line -1.0 GR_M7_BPC2_Y_CORR
In order to do this, I moved the above lines into the main configuration of AFC_Ctrl.
After debugging the code, I tried to close the loop, it seems the loop could keep the beam around the center of the PSD quite well(AFC_GR_M7_BPC2_X(Y)_INPUT are the error signals of the loop). We will leave the loop closed during the weekends to check the performance.
Before starting this work, I readjusted the demod phase for the green, now the phase is 1.93rad.