| Digital oscilloscopes are powerful testing tools for waveform analysis of signals in various scenarios.They have analysis and processing functions such as signal capture and display,histogram statistics,jitter analysis,spectrum analysis,and filtering.Perfect waveform calculation function is one of the important guarantees for the oscilloscope to deal with various complex signal tests.Therefore,improving the waveform computing capability of digital oscilloscopes is a hot spot in the research and development of oscilloscopes.Based on the software system of digital oscilloscope,this thesis aims to improve the waveform computing capability of the oscilloscope software system.Based on the MVP architecture,the mathematical operation software structure of the oscilloscope is optimized,and various mathematical operation functions on the software system are completed.Emphasis is placed on the design and implementation of the envelope calculation function,the improvement and application of the interpolation calculation,and finally the waveform calculation ability and electronic measurement level of the oscilloscope are improved.The specific contents involved are as follows:1.The overall design of the mathematical operation module.In the process of parsing and calculating string mathematical expressions,in order to solve the problems of low code readability,high debugging difficulty and long running time in the current C#dynamic code,a parsing scheme based on C# pattern matching is proposed.This solution has the characteristics of high efficiency and simplicity,and can perform user-defined expression combination operations on various signals in the mathematical module,quickly and accurately realize the analysis of mathematical operation formulas,and improve the processing ability of the oscilloscope for complex operations.2.Envelope operation design.In order to accurately extract the envelope information of the signal,observe the abnormality of the signal more clearly and intuitively,and obtain the results required for measurement,this thesis improves the envelope operation function in the mathematical operation module of the oscilloscope.By comparing the measurement accuracy of the envelope signal parameters of the Half-Wave Envelope Detector,the Full-Wave Envelope Detector,the Hilbert Complex Envelope Detector and the Complex Square-Law Envelope Detector,combined with the oscilloscope software system to design the envelope calculation function.At the same time,various signals are tested and verified on the oscilloscope software platform.3.Interpolation operation design.Aiming at the problem that the existing linear interpolation method produces large errors when the signal curvature changes and the smoothness is not high,Lagrange interpolation,Akima interpolation and Newton interpolation are introduced into the functions of the mathematical operation software.According to the characteristics of the three interpolation algorithms,the design scheme implemented in the oscilloscope software system is proposed,and the interpolation effect is compared with the linear interpolation algorithm in the existing system for various signal and jitter analysis functions.Finally,the interpolation operation function in the software system is improved,and the error of signal reconstruction is reduced.This thesis uses the VS2022 compiler to develop oscilloscope software based on the Windows platform,.NET Core framework and object-oriented C# language,and completes the project code of each function.Tested and verified that the mathematical operations correctly.Envelope and interpolation functions meet design goals.The goal of optimizing and enriching the waveform computing functions has been achieved. |