| Clock signal source is an important universal test equipment used to drive other equipment.It is used to generate clock signal with adjustable frequency,high precision and high stability.Its technical level directly restricts the development of radar,navigation,electronic countermeasures and other electronic equipment with precise timing requirements.With the development of digital and intelligent technology,the demand for the performance of clock signal source is higher and higher.This demand is not only reflected in the hardware performance of clock signal source,but also in the performance and quality of measurement and control software.Therefore,the research of high-quality clock signal source measurement and control software has important application value.According to the application software functions of Keysight company and Tektronix company’s clock generation products,combined with the project requirements of the clock signal source,a measurement and control software is designed to meet its functions and performance.The software includes embedded control software and frequency estimation software.Through the analysis of clock signal source function,the software architecture is built by using the "layered idea" and "modular idea";3B + Raspberry Pi with Linux system and PC with Windows system are selected as the two hardware development platform of the software respectively,Qt Creator integrated development environment based on C++language and supporting multiple development platforms is selected to develop software applications;By using Object-oriented method and Composite Reuse Principle,different classes are combined to realize the function of each module and reduce the coupling between classes.Through in-depth analysis of the specific requirements of each module,combined with various library functions of Qt Creator development tool and signal&slot mechanism,each module is designed;FPGA as the main controller,EZ_USB FX3 as USB 3.0 peripheral controller and transmission medium,which transmits the output signal of clock signal source to PC for storage.A high-precision frequency estimation algorithm based on all phase time-shift phase difference spectrum correction method is designed to calculate the output signal frequency of the clock signal source;The W-model is used to test the measurement and control software,and the correctness of each module function of the measurement and control software is verified.It is confirmed that the clock signal output function and frequency estimation function are in line with the expected goal,and the software is stable and reliable,meeting the needs of the project. |