The ADC and DAC channels of the secondary LVDTs of SPRB have been disconnected from the LVDTs for the time being.
The following connections have been done between DAC and ADC mezzanines of the two SPRB daqbox in the DAQroom in order to test DAC delays and make other consistency checks:
dbox 25 - mez2 (DAC 04) ch2 ---> dbox 23 - mez 2 (ADC51) -- ch2
ch5 ----> dbox 23 - mez 0 (ADC50) -- ch5
ch7 ----> dbox 25 - mez 3 (ADC15) -- ch7
dbox 23 - mez1 (DAC16) ch0 ----> dbox 23 - mez 0 (ADC50) -- ch0
ch1 ----> dbox 23 - mez 0 (ADC50) -- ch1
ch3 ----> dbox 25 - mez 3 (ADC15) -- ch3
ch7 ----> dbox 23 - mez 2 (ADC51) -- ch7
3 comments
The issue of the SPRB local control channels has been solved: there was an error in the gateway Pr configuration.
The packets sent to the DAC need to be "interleaved": each packet contains the values for the 8 DAC channels. If the channel has a sampling frequency higher than the packet frequency (which was the case, 100 kHz vs 10 kHz), the values must be ordered to have one value per channel, then one second value per channel, etc... On the contrary, the data from the ADC are in general not interleaved.
As error in the gateway, the packets sent to the SPRB local control DAC (secondary LVDT coils) were not interleaved. The consequence was some strange signals, with structures looking as aliasing in the FFTs of the ADC data sensing the DAC outputs, see first plot, right canvas. Things are now back to normal situation and the SPRB local control signals could be plugged back to the ADC and DAC mezzanines to tune them.
In the 2nd plot, two "pipelines" are compared:
Some imaging is visible around (n x 2 kHz). It is not unexpected for the BL_H channel which is initially generated at 2 kHz. It is strange for the FR_V channel where frequencies used along the pipeline are 5 kHz, 10 kHz, 50 kHz and 100 kHz. Investigation is on-going. The cause may be lost data packets in the data exchanged between the two rtpcs which are quite crowded.
We checked that indeed there were some lost packets in the exchanged between rtpc06 (doing the local control calculation, generating the injected noise in the current tests) and the SPRB gateway rtpc. Stopping some process on rtpc06 (SIB2 local control Pr process), there is no more lost packets.
In this case, the data sen to to the DAC and read by the ADC are much cleaner. See attached figure:
On the plot3, some aliasing is visible around 10 kHz and 20 kHz, which is not unexpected. There is no more the plateau as we had before when some TOLM packets were lost between the rtpcs. The plot1 confirms that the acquired ADC data are clean, with the noise well visible below 50 Hz, and the DAC noise (+ ADC noise lower contribution) limiting the measurement above ~100 Hz.
The SIB2 local control Pr process is stopped for the time being to prevent the lost packet issue.
The SPRB secondary coils have been connected back to the ADC and DAC channels. All the sensors/actuators for SPRB local controls should now be available.
Some DAC to ADC connections have been done to check the DAC outputs and are available for tests if needed: