Virgo Logbook
UTC--:--:--
GPS-
Reports
AdV-SGD›FDS commissioning #51984

LFC loop delay reduction

Up ti this morning the Longitudinal FC  loop was running which the samples at 10KHz and the pipeline at 10KHz

From the sensing par to the driving part  the DAQ elements are :

  • Demodulation board
    • Decimation few us
    • DSP digital filter Butterworth_8_20dB@5KHz: (1MHz to 10KHz sampling frequnecy) :delay 152us
    • output samping frequency 10KHz
  • LFC _Ctrl (rtpc3) to FCEM_LC(rtpc2) : delay  100us
  • FCEM_LC, FCEM_SBE
    • ACL extension (10KHz to 100KHz)  with Butterworth_8_20dB@5KHz : delay 332us
  • DAC1955
    •   Analog Anti image filter  3th@20KHz:: 210us

As consequence a total delay of : 152 + (100) + 100 + 332 + 210 : 794 (894)us .

To reduce the delay , the ACL extension filter can be removed if all the pipeline elements running at 10KHz use the channels with samplng frequency at 100KHz.(DAC1955 running frequency).

The delay between the LFC_Ctrl server and the FCEM_SBE input dac channel has been measured before the modifications : 357us (2pi@2800Hz)

Below the modifications performed to run with  channels at 100KHz for the Z mirror control:

  • Sensing part
    • SQB2_dbox_rack DBOX_SN110-DEMOD_SN40(EQB2_DEMOD_05): EQB2_SC_PD_RF_11MHz acquired at 100KHz  instead of 10KHz previously
    • SQB1_dbox_rack : DBOX_SN91-DEMOD_SN68(EQB1_DEMOD_03): EQB1_GR_PD_RF_5MHz acquired at 100KHz  instead of 10KHz previously
  • SQB1_rtpc(rtpc2)
    • SQB1_Tpro: LOOP_DELAY set to 10us instead of 8us previously . it s running at 50KHz(20us)
    • LFC_Ctrl server:
      • run at 10KHz with data at 100KHz
      • extend the SQZ_GR_EOM_5MHz_raw_phi and the SQZ_IR_EOM_11MHz_raw_phi from 10KHz to 100KHz channels
      • send the 100KHz Z_CORR channels in a 10KHz Tolm packet to FCEM_LC server using double(D64)
    • Tune all the  delay of 10kHz Tolm packets in order to spread them over the  5 cycles of 20us
  • SQB2_rtpc
    • SQB2_Tpro: it s running at 10KHz
    • FCEM_LC:: update the MIRROR control setup to run with  channels sampled at 100KHz
      • read the LFC_Z_CORR at 100KHz
      • extend the  NOISE, MIR_TX_ACT and MIR_TY_ACT and use theirs extended channels as input for the ACT_MAT_MIR matrix
      • sent the 100KHz mirrors corrections as  double(D64))
    • FCEM_SBE:
      • read the 100KHz  MIRROR correction channels
      • remove the filter extension for the MIRROR DAC1955 channels
    • The FCEM_LC server and the FCEM_SBE servers are running on the same RT_CPU and are excuted in the same 10KHz cycle

The delay between the LFC_Ctrl server and the FCEM_SBE input dac channel has been measured after the modifications: the 356us has been removed

This result has to be confirmed by performing  the same measure as this one

3 comments

masserot · 2 Jun 2021 · 21:46 #52019

Today the LFC_Ctrl server has been moved from the rtpc2 to the rtpc3 .

SQB2_rtpc - RTPC3

As consequence  the following packets are now sent to the rtpc3 instead the rtp2 previously

  • the EQB2_DEMOD_05 demodulation packet with the EQB2_SC_PD_RF_11MHz channels
  • the EQB1_DEMOD_03 demodulation packet  with the EQB1_GR_PD_RF_5MHz channels
  • the FCEB_ADC_00 ADC2378 packets with the FCEB_{I,G}R_PD_DC channels

All the tasks are runnning at 10KHz as previously . The  new RT_CPUs repartition is :

  • RT_CPU0: FCIM_LC, LFC_Ctrl, FCEM_LC, FCEM_SBE
  • RT_CPU1: EQB2_QD, AFC_Ctrl
  • RT_CPU2: SQB2_LC, SQB2_SBE, FCIM_SBE

The new tasks order is:  EQB2_QD , AFC_Ctrl , SQB2_LC, SQB2_SBE,  FCIM_LC, LFC_Ctrl,  FCEM_LC,FCEM_SBE, FCIM_SBE.  This plot show the elapsed time for the full cycle (Tpro) and for each RT task.running on the rtpc3.

After these modifications the phase for the HD_CC loop will have to be tuned

SQB1_rtpc - RTPC2

To simplified  the rtpc2's RT task scheduling and  to have the EQB1_HD_CC_DIFF_RF_4MHz_{I,Q} available at 50KHz for the EDB1_HD_AA server:

  • All the rtpc2 RT tasks are now running at 10KHz
  • the EQB1_HD_CC server providing the channels needed for the FAST_DAC DSP  is running now at 10KHz instead of 50KHz previously
  • the EQB1_HD_CC_DAC  FAST_DAC parameters have been upgraded

The  new RT_CPUs repartition is :

  • RT_CPU0: EQB1_HD_CC
  • RT_CPU1: SQB1_LC, SQB1_SBE
  • RT_CPU2: EQB1_QD, EQB1_HD_AA

The new tasks order is:  SQB1_LC, SQB1_SBE, EQB1_QD, EQB1_HD_CC,  EQB1_HD_AA, This plot show the elapsed time for the full cycle (Tpro) and for each RT task.running on the rtpc2.

To improve the EQB1_HD_AA server the following modifications were done

  • to use directly the  EQB1_HD_CC_DIFF_RF_4MHz_{I,Q} channels providind by the EQB1_HD_CC server to compute the  HD_DIFF_RF_4MHz_mag channels
  • to use directly the EQB1_HD_CC_Corr  providind by the EQB1_HD_CC server to extract the dither lines demodulation signals up to 10KHz on its channel.
  • the SQZ_EQB1_HD_PD{1,2}_DC are now acquired at 50KHz instead of 10KHz to be used to extract the dither lines demodulation signals up to 10KHz on these channels .  The EQB1_ADC_02, ADC2378_SN105, has been  upgraded accordingly

After these modifications the phases for the HD_AA loops will have to be tuned

SBE and LC loops status

  • SQB1:  LC closed - SBE opened
  • SQB2: LC  closed - SBE opened
  • FCIM: LC closed - SBE closed
  • FCEM:  LC closed - SBE closed

 

vardaro · 15 Jun 2021 · 17:03 #52153

Today I measured again the delay of the filter cavity DAQ chain. See attached figures.

The delay is reduced. The measurement is not very precise thus the delay estimation less than 690 us, whereas the expected delay after the Alain intervention is 644us.

I used the same setup used for the first estimation.

N.B. in the measurement I useed a DAC in a process running @10kHz to drive the Frequency generator, and I compared this signal with signal sampled @ 100kHz.

Strange thing:  the channel LFC_Z_CORR is before to be sent to the FCEM but the delay with this signal is higher.

 

masserot · 16 Jun 2021 · 08:35 #52162

The delay difference between LFC_Z_CORR and FCEM_LC_FC_Z_CORR is due to the fact that

  • FCEM_LC_FC_Z_CORR channel is running at 100KHz at the FCEM_LC server and stored at 100KHz with the  _FS suffix in the DAQ
  • LFC_Z_CORR channel is running at 100KHz at the LFC_Ctrl server, filtered  by a butterworth 8th order with 20dB at 10KHz and then stored  with the same name in the DAQ . The same channel at 100KHz exist and it s called   LFC_Z_CORR_FS
  • The SQZ_NOISE_TEST channel is running at 10KHz  at the SQZ_PLL_AA server and stored at 10KHz without any filtering in the DAQ .

So the real delay should be the one betweem the SQZ_NOISE_TEST channel and the FCEM_LC_FC_Z_CORR_FS channel: ~650us