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
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
All the tasks are runnning at 10KHz as previously . The new RT_CPUs repartition is :
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:
The new RT_CPUs repartition is :
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
After these modifications the phases for the HD_AA loops will have to be tuned
SBE and LC loops status
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.
The delay difference between LFC_Z_CORR and FCEM_LC_FC_Z_CORR is due to the fact that
So the real delay should be the one betweem the SQZ_NOISE_TEST channel and the FCEM_LC_FC_Z_CORR_FS channel: ~650us