A general-purpose data acquisition system and a waveform analysis algorithm based on digitization (Ke xue tong bao, 2021)