PyDRMIqpd MACRO was created for speeding up the lock acquisition of DRMI by optimizing PR alignment using PR QPD signals, but not yet been implemented.
One signal we need to get is the trigger of DRMI. To not disturb the DRMI trigger for the DRMI lock, we set up several dedicated channels in the VPM (/virgoData/VirgoOnline/LSC_Acl.cfg) as following:
# Following B4_DC channels will be used for PyDRMIqpd MACRON only
ACL_CONST_CH B4_DC_MAX_p "au" 0 LSC_FREQ 0
ACL_OP_CH B4_DC_NORM_p "au" B4_DC / B4_DC_MAX_p DC_CLIP
ACL_RELAY_CH B4_DC_TRIG_p "au" LSC_FREQ 0 0 -2 B4_DC_NORM_p 0.02 0.02 <=
# Following B4 12 MHz MAG channels will be used for PyDRMIqpd MACRON only
ACL_CONST_CH B4_12MHz_MAG_MAX_p "au" 0 LSC_FREQ 0
ACL_OP_CH B4_12MHz_MAG_NORM_p "au" B4_12MHz_MAG / B4_12MHz_MAG_MAX_p DC_CLIP
ACL_RELAY_CH B4_12MHz_MAG_TRIG_p "au" LSC_FREQ 0 0 -2 B4_12MHz_MAG_NORM_p 0.98 0.98 >=
# Following B4 112 MHz MAG channels will be used for PyDRMIqpd MACRON only
ACL_CONST_CH B4_112MHz_MAG_MAX_p "au" 0 LSC_FREQ 0
ACL_OP_CH B4_112MHz_MAG_NORM_p "au" B4_112MHz_MAG / B4_112MHz_MAG_MAX_p DC_CLIP
ACL_RELAY_CH B4_112MHz_MAG_TRIG_p "au" LSC_FREQ 0 0 -2 B4_112MHz_MAG_NORM_p 0.98 0.98 >=
# Following B1p_DC channels will be used for PyDRMIqpd MACRON only
ACL_CONST_CH B1p_DC_MAX_p "au" 0 LSC_FREQ 0
ACL_OP_CH B1p_DC_NORM_p "au" B1p_DC / B1p_DC_MAX_p DC_CLIP
ACL_RELAY_CH B1p_DC_TRIG_p "au" LSC_FREQ 0 0 -2 B1p_DC_NORM_p 0.02 0.02 <=
ACL_DAQ "LSC_" "" B4_DC_NORM_p B4_DC_TRIG_p B4_12MHz_MAG_NORM_p B4_12MHz_MAG_TRIG_p B4_112MHz_MAG_NORM_p B4_112MHz_MAG_TRIG_p
ACL_DAQ "LSC_" "" B1p_DC_NORM B1p_DC_TRIG B1p_DC_NORM_p B1p_DC_TRIG_p
# Standard DRMI for PyDRMIqpd MACRON only
ACL_OP_CH DRMI_TRIGGER_IN4_p "au" "prod" B4_12MHz_MAG_TRIG_p B4_112MHz_MAG_TRIG_p B1p_DC_TRIG_p B4_DC_TRIG_p
These are copy of the DRMI triggers but with a '_p' at the end. Today, we wrote a short script to adjust the threshold of these new triggers, which is located in /users/yuhang.zhao/Documents/Virgo_code/DRMI_trigger.py
To test the newly created channel, we set exactly the same thresholds as the DRMI trigger. These are done with
cm_send('LSC_Acl', 'AcRelayChSet', 'B4_DC_TRIG_p', 1.0, 1.0, 0.1, 0.2)
cm_send('LSC_Acl', 'AcRelayChSet', 'B4_12MHz_MAG_TRIG_p', 1.0, 1.0, 0.2, 0.7)
cm_send('LSC_Acl', 'AcRelayChSet', 'B4_112MHz_MAG_TRIG_p', 1.0, 1.0, 0.1, 0.6)
cm_send('LSC_Acl', 'AcRelayChSet', 'B1p_DC_TRIG_p', 1.0, 1.0, 0.1, 0.2)
We will compare this new DRMI_trigger_p with the DRMI_trigger to confirm before using it for the PyDRMIqpd MACRO.
1 comment
Several new lines are introduced to the PyDRMIqpd MACRO, it is located from line 195 to 200 in the directory of /virgoDev/Automation/PyALP/PyDRMIqpd/algo.py
The reason to make this change is that the action sign we want to send to PR gives wrong prediction sometimes. The situation is summarized in the attached Fig. 1. We see that there is a negative sign (channel 'AATuning_QPD_H_ACT_sign' and 'AATuning_QPD_V_ACT_sign') found by the MACRO between 14h04 and 14h05. But we also see the B2_QD signal (channel 'ASC_B2_QD2_18MHz_H_I' and 'ASC_B2_QD2_18MHz_V_I') given by some temperatory lock were positive. So it means that we should change the way we give the sign for acting on PR mirror tilt.
The change is that we don't always take the sign of the averaged QD signal. In the past, we don't check how much is the absolute value of the averaged QD singal (within 1 second). And we just take the sign of this value. And we accumulate 10 seconds of these value. Due to this observation of the problem, we decide to give a threshold for the QD signal absolute value, so that we decide if we take this data or not for later use. In the new version of the code, a threshold of 0.5e-3 has been set.