50Hz spike due to interference from the mains supply?
Yes - most likely through the 3.3V rail as that was provided direct through the SMPS bench supply and not through the regulators. Also the box is right next to the 8 way mains block at the moment with the cables a mess around it (the regulators are outside of the box bare too at the moment as well that doesn't help). Long power cables become receiving antenna for any noise around. That same noise source is probably causing the other spikes. The noise spike on the 1KHz is most likely the same source or possibly on the cables to the SDG.
Voltage regulators add PSRR (power supply ripple rejection) usually between DC and 100KHz so the 3080 voltage regulators drop that by a good 60dB. The onboard 5V to 3.3V supplies should drop that even further (a good 90dB). The best voltage regulators only offer PSSR to about 1MHz so any noise above that (in or out from components) has to use ferrites (ie CLC filters). I have some but not all installed and I may change the values on some for better noise reduction.
For reference the signal strength we're seeing here is:
0dBV is 1 Volt RMS (1000mV RMS)
-120dBV = 0.001mV RMS (0.000001 VRMS)
-140dBV = 0.0001mV RMS
-160dBV = 0.00001mV RMS (1e-8 VRMS).
The SMPS supplies are rated as (at best) 120mV peak-to-peak of ripple on the output - that would show up as 50 or 100Hz under the switching noise. So to get from 120mVpp or other received noise on the cables, we need to filter out that noise (PSRR).
So although the ADC (and most ADCs) can't get below 130dB realistically, You want the averaging to have as low noise as possible to allow differentiation between measurement noise and device noise. Hence the focus on getting to about -140dBV or below for the average noise. Essentially makes the measurements more 'reliable' as they're not prone to noise. The devices I will be measuring may not get below -120dB and in the case of tube amps probably not below about -80dB
(so a warning to all you digital 24bit freaks that use tube amps or CD players with tubes in the output stages!). The dynamic range of the ADC will mean you will only see that range below the largest peak.. hence the average higher noise floor in the 1KHz tone.
The next step I will do this weekend to finalise the BOM for the next order. I've now removed the SDG from the system, the next stage is to remove the SMPS supplies completely (although they do provide 120mV ripple supplies and filtering themselves so I may need to add more filtering to my supply in future).
The power supply I have planned is a linear supply:
Mains AC --240Vac--> Schaffner IEC mains filter (includes fuses and common mode choke filtering, PSRR) --240Vac--> Switch --> mini torrid (7VA) --2x15Vac-->. (at this point I hope for about 120mV or better ripple)
Then two of these:
--15Vac--> full bridge rectifier --20-22V Vdc--> CLC (15mF cap, PSRR) --20Vdc-->
Into the voltage regulators (I have one 3080 each for +15V, -15V and +5V)
--18-20Vdc--> Voltage regulator (PSRR) --2x15Vdc, 1x5Vdc-->
These then go to the ADC (it has it's own regulators that add further PSRR) plus the ADC itself has PSRR built in. The 5V line then goes to the clock board (with a inboard 5V-3.3V power supply) and the isolator that also has it's own 5V-3.3V power supply.
The important point is that the clock and isolator boards actually prevent noise from the those boards from travelling up the 5V line that supplies the ADC too. I know at the moment that they do inject some noise as I can see the scope trace is note entirely flat - this currently goes to the SMPS 3.3V.
The clock board has a chain of ferrites to block in and out going noise but I may have to change the lower impedance ferrites to something with a bit more bite (impedance) to drop that noise more. As the noise is is >1MHz the voltage regulators don't have any PSRR at this range. I may add a ferrite to the 5V regulator. Although the 5V regulator is only used for digital - you don't want the clocking or the logic voltage noise to cause false triggering - hence the focus on this. Also you don't want that noise getting into the +15V and -15V supplies as they are supplying the analogue measurement front ends!
In the end I will probably design a 2 layer PCB to replace the protoboard regulator board I have and the power supply board into smaller PCBs. As you order 5pcbs for each that means I have them for other projects too.