The process involves two stages running in parallel:
Stage 1 - Data acquisition, resulting in a stream of samples
Stage 2 - Processing of the acquired stream.
The scope undersampling mentioned by Demian requires controlled data acquisition (trigering at exact part of the waveform, random sampling times to increase the effective sample rate). However, none of that is possible with a typical ADC. The exact sampling start cannot be specified and sampling times are all equal. Only several fixed sampling rates (multiples) are available. The Stage 2 receives a steady flow of equally timed samples.
Now these stages are independent - Stage 2 cannot influence the timing and values of data it receives from the data acquisition stage.
Let's assume an ADC with no low-pass filter, doing just regular sampling of the continuous (analog) signal (e.g. SAR ADC). The sample rate is 48kHz.
Case A)
The sampled analog signal is 20kHz fundamental at -6dBFs + H2 (40kHz) at -12dBFs, all zero-phase based.
Case B)
The sampled analog signal is 20kHz fundamental at -6dBFs + spurious 8kHz at -12dBFs with inverted phase at start.
These two very different analog signals, when sampled by the ADC without any filter, will yield exactly same stream of samples:
blue line - signal A, yellow line - signal B, circles - sampled signal A, crosses - sampled signal B
Now how can the processing stage 2 distinguish between the two signals when in both cases it receives identical data to process? IMO it will claim H2 at -12dB for both cases, even though for case B) the 20kHz signal has zero harmonic distortions.
Or another case B) - combination of -18dBFs H2 and -18dBFs spurious 8kHz, yielding again identical samples as case A)
All because all the upper frequencies are "folded" to <0, fs/2> and only knowledge of which fs/2 interval was being band-passed to the ADC stage allows to specify which frequency of the many (infinite for infinite bandwidth) mirrors is the correct original one. But there is no analog band-passing prior to the ADC being mentioned as requirement for diana, if I understand correctly.
There are some great figures at
https://www.eetimes.com/how-to-use-undersampling/#
[IMGDEAD]https://www.eetimes.com/wp-content/uploads/media-1066518-pentekfigure1.gif[/IMGDEAD]
[IMGDEAD]https://www.eetimes.com/wp-content/uploads/media-1066519-pentekfigure2.gif[/IMGDEAD]
[IMGDEAD]https://www.eetimes.com/wp-content/uploads/media-1066520-pentekfigure3.gif[/IMGDEAD]
[IMGDEAD]https://www.eetimes.com/wp-content/uploads/media-1066521-pentekfigure4.gif[/IMGDEAD]
That is my opinion. Where am I making a mistake?
The octave source for the modified case B is stored at
Plotting undersampled signals * GitHub