I'd like to understand more about how digital signal generators (proper ones like R&S, Keysight, not a PC) produce square waves? Would someone with a good quality bit of kit be willing to post an FFT (logarithmic please) of a 10KHz square wave?
I watched a youtube video about aliasing, Nyquist and square waves etc..
https://youtu.be/bg6bOVShU-wThe video showed that if you use the tone generator in Adobe Audition and create a square wave it results in significant aliasing distortion in the waveform. Basically it uses a mathamatical function to create a square wave (at unknown bandwidth?) and then down-samples to the working project sample-rate without anti-aliasing filters.
To me that seems wrong, as I think it should apply anti-aliasing to whatever the generator outputs to give a 'realistic' (analog?) representation of a band-limited square wave.
I'm very curious how a proper dedicated signal gen does this same task? Does it also kick out lots of alias products, or does it band-limit before interpolation?
If there is a good reason for not applying anti-aliasing to the generator output, what is it?
Please help me understand.
I'm sure we all know that a square wave consists of odd harmonics, so a 10KHz square wave should have only 10KHz, 30 KHz, 50KHz, 70KHz etc.. I *assume* if I got a high bandwidth square wave such as from a switching transistor and recorded it in to my audio interface ADC I would not have all these extra distortion products thanks to the input filtering and ADC digital filter? I've got to try it now!