Desktop digital oscilloscope is difficult to meet the small space,complex test scene because of the characteristics of large volume,complex operation and inconvenient to carry,so it becomes more and more important to develop a portable virtual oscilloscope integrating various test instrument functions.The development of driver software and upper computer software based on the instrument hardware platform is the key to virtual instrument software design.This thesis is based on the USB3.0 bus digital storage oscilloscope hardware architecture,which integrates a digital oscilloscope and arbitrary waveform generator to realize the functions of analog signal waveform capture,analysis,display and high-precision waveform generation.This thesis uses virtual instrumentation technology and a modular software design approach to design and implement the USB bus digital storage oscilloscope software.The work accomplished in this paper is as follows:1.USB3.0 protocol chip firmware program.Based on the overall communication interface architecture of "Field Programmable Gate Array(FPGA)+USB protocol chip",the firmware program of USB protocol chip is developed,which realizes the bidirectional communication between PC and instrument.2.Instrument driver software.According to Interchangeable Virtual Instrument(IVI)driver interface specifications,IVI digital oscilloscope drivers,IVI arbitrary waveform generators,and special IVI instrument drivers have been completed.Based on USB3.0driver library,the bottom I/O driver interface is developed for the upper instrument driver software call.3.Upper computer software.Using Lab Windows/CVI to develop software and referring to the operating process of bench instruments,the user interface is designed in line with user habits and reasonable functional partition.At the same time,according to the functional requirements of the instrument,the interaction with the hardware is completed by calling related instrument drivers.4.Automatic correction software.Based on the analysis of the hardware circuit principle of signal conditioning module,combined with the requirements of baseline,offset and gain related indexes of digital oscilloscope,the automatic correction algorithm of baseline zero,offset and gain correction is designed and implemented.Through the research of the above content,the software design and implementation of USB bus digital storage oscilloscope are completed.After testing and verification,the software designed in this thesis meets the design requirements and has been successfully applied in the USB bus digital storage oscilloscope project. |