Electronics and Software›Control
#18187
Why missing sample + 5kHz = glitch
Referring to entry Missing sample here is an explanation of why a repeated sample creates a glitch.
The first plot shows a 5kHz oscillation simulated with Matlab, sampled at 10kHz. We repeted twice a sample in the middle of the time window, see second plot. The third plot shows the difference between the two signals which is equal to a one sample glitch.
We passed the modified 5kHz signal through a 2nd order 100Hz low pass Butterworth filter, just to give an idea of what happens. The shape of the filter is irrelevant. The control filters we use has unitary gain frequency around 100 Hz, so we expect something similar.
The last plot show the output of the filter, which is nothing else that the inpulse response of the filter.