Today the reset filter is done automatically by the ITF_LOCK node with the SSFS_digital_noise_over_thr function.
This function computes the RMS of SSFS_B4_Corr_50kHz and SSFS_B4_DigitalNoise_corr_50kHz over the last 30 seconds and performs a SSFS filter reset if the ratio ssfs_corr_rms/ssfs_digital_noise_corr_rms is less than 20, today.
The plots show the evolution of the SSFS_DigitalNoise_Corr the 2017-06-17 between 17hUTC to 17h45UTC and the txt file gives the ratio sfs_corr_rms/ssfs_digital_noise_corr_rms over this period
- from 17h to 17h15, the ratio remains around 70000-90000
- from 17h15 to 17h30 the ratio decreases from 70000 to 2000
- from 17h30 to 17h45 the ratio decreases from 2000 to 40
- and then reach the 20 threshold which command the reset of the SSFS DSP filters at 2017-06-17-17h49m22UTC
it 's clear that the DigitalNoise substaction re-introduce some noise at high frequency, above 1 kHz, in the correction signal when the digital noise is high: i.e the ratio less than 2000.
The digital noise can be reduced by reseting the DSP filters more frequently by increasing the ssfs_rms_thr to 1000 or 2000, or maybe by tuning the digital noise correction pipeline.
3 comments
with the attached files
Increasing the threshold to ~1000 can certainly reduce the digital noise reinjected in the system, but as we already noticed in the past, just increasing the threshold triggers a loop where the glitch caused by the reset artificially increases the RMS and triggers filter resets every minute, as I noticed tonight looking at ITF_LOCK's log file:
2017-06-20-00h43m29-UTC>WARNING-SSFS RMS ratio is 647.025188487 -- Low Thr is 10002017-06-20-00h43m29-UTC>INFO...-cm_send('SSFS_Ctrl', 'AcDspChFltReset', 'B4_DSP', 2, 'apply')
2017-06-20-00h43m29-UTC>WARNING-SSFS filters have been reset!
2017-06-20-00h44m29-UTC>WARNING-SSFS RMS ratio is 67.3970170564 -- Low Thr is 1000
2017-06-20-00h44m29-UTC>INFO...-cm_send('SSFS_Ctrl', 'AcDspChFltReset', 'B4_DSP', 2, 'apply')
2017-06-20-00h44m29-UTC>WARNING-SSFS filters have been reset!
2017-06-20-00h45m29-UTC>WARNING-SSFS RMS ratio is 90.679757773 -- Low Thr is 1000
2017-06-20-00h45m29-UTC>INFO...-cm_send('SSFS_Ctrl', 'AcDspChFltReset', 'B4_DSP', 2, 'apply')
2017-06-20-00h45m29-UTC>WARNING-SSFS filters have been reset!
2017-06-20-00h46m29-UTC>WARNING-SSFS RMS ratio is 76.8483393975 -- Low Thr is 1000
2017-06-20-00h46m29-UTC>INFO...-cm_send('SSFS_Ctrl', 'AcDspChFltReset', 'B4_DSP', 2, 'apply')
2017-06-20-00h46m29-UTC>WARNING-SSFS filters have been reset!
Increasing the buffer size from 30 to 60 seconds doesn't seem to help; I will work on the logic, probably just skipping the RMS evaluation in the first minute after the filters' reset, but in the meantime I rolled back the threshold to 50, which seems a safe number given the post-reset RMS ratios that I saw tonight.
I implemented some smarter check for the RMSs, now we skip one 1-minute cycle after every (automatic) filters' reset; this seems to be working reliably, so I increased the threshold again to 1000, and I put it in the configuration file (section CARM_DARM) in order not to have to reload the Metatron node in case one wants to change the threshold on the fly (reloading the node means also resetting the buffers and the safety skip).