- there are about 6 or 12 or 24 millions of 8bits ADC samples, downloaded from the oscilloscope (in a single file)
- the signal observed by the oscilloscope was periodic, but it was not synchronous with the ADC sampling clock
- thousands of signal-periods can fit in those 24 millions of ADC samples
- the period of the signal is known, but it has some time-jitter, and some amplitude-noise
The goal is to overlap/align all those thousands of captured signal-periods into one. Want to align them for averaging all the captured periods into a single period, so I can later compare this averaged single-period waveform, with an expected ideal waveform.
Any ideas how to do that?
Or, if that's a known DSP processing step, what search therms to use in order to find such algorithms?
To be more specific, I want at first to average all the captured periods of a signal into a single (complete) period, then to try to best-fit an expected/mathematical step response with the measured waveform.
For example, let's say I have a series RC circuit, fed with a square wave voltage. R is known, C is not known. The oscilloscope is measuring the output waveform on the capacitor, and captures a few kilo-periods of charging/discharging.
Then, I want to best-fit the many measured charge/discharge cycles, with the theoretical step response of an RC. Or else said, to minimize the square root errors between the ideal step response function and the measured signal+noise, until I get the unknown C (with a much higher resolution than the 8 bits of this ADC, because of all the oversampling+noise).
(Next step would be to change the model of the unknown (ideal) C, with a more complex RLC circuit for that unknown capacitor. Then to calculate the theoretic step response for the new/more complex model, and try again to best-fit the theoretical response with the measured signal, in order to identify all the new components added to the capacitor model).
Ultimate goal would be to extract the model of an unknown component, by trying to best fit the theoretical step-response with the measured response.