| With the development of Instrument Science and technology and the improvement of the complexity of integrated circuit system,the requirements of data acquisition and data processing ability of high-speed data acquisition system are gradually improved.In order to realize the flexible control of the data acquisition system with more and more perfect functions and higher system indexes,the software program matched by the data acquisition system needs to be updated and perfected constantly.The software of data acquisition system needs to respond to the instructions issued by users correctly and quickly,and has faster data acquisition and data processing ability.The ability of computer to collect and process data quickly is used,then the data is analyzed and calculated.Finally,the waveform display area in the software interface is displayed synchronously in real time.Based on a distributed optical fiber test system project,this paper designs a dual channel high-speed data acquisition system software based on the analysis of the function of the hardware platform developed by the project.Through the software,the user can establish the connection between the upper computer and the data acquisition system,start the acquisition work of the system,and set the channel control parameters,trigger control parameters,trigger control parameters,etc Accumulate control parameters to realize the control of data acquisition system.The main contents of this paper are as follows:(1)To analyze the software requirements of dual channel high-speed data acquisition system,a user interface is needed firstly,which provides the functions of command parameter setting and waveform display for users.The command parameters mainly include channel control parameters,trigger control parameters and accumulation control parameters.After the user sets the command parameters,the upper computer sends the corresponding control words to the functional ports based on FPGA devices to control the channel,trigger and data accumulation of the data acquisition system.(2)The communication between data acquisition system and host computer is based on UDP protocol.After the user opens the network connection,the data acquisition system transmits the processed data to the upper computer through the Ethernet.Therefore,according to the network IP address and port number,the two-way data exchange between software and hardware is realized.The down transmission data is the control parameters of each part of the hardware,and the up transmission data includes dual channel acquisition accumulation data and ambient temperature data.(3)Two kinds of data receiving methods are designed in the software.One is the double channel cumulative average data receiving method.This data receiving method carries out multiple cumulative average processing for the data with controllable times during data acquisition,so as to eliminate the white noise.Another data receiving method is the dual channel corresponding point division data receiving method.When receiving the corresponding point division data,channel 1 is invalid and the data is output by channel 2.This paper completes the software design of the dual channel high-speed data acquisition system,and completes the debugging and verification on the hardware platform of the data acquisition system.The software runs stably and achieves the expected goal. |