| With the widespread application of distributed instruments,the centralized management of instruments becomes particularly important in the distributed instrument system.In a system with centralized management software and distributed instruments,the instruments are mainly responsible for communicating with the centralized management software,receiving commands,collecting,processing and uploading data,etc.The centralized management software is equivalent to the control core of the whole system,centrally managing all the distributed instruments,and has the functions of sending commands to control the instruments,analyzing,processing,storing and monitoring the status of the data,etc.Therefore,the centralized management software occupies an irreplaceable position in the distributed instrument system.When developing centralized management software for multiple distributed instruments,there is a situation that staff repeatedly write a lot of duplicate codes,which causes waste of time and human resources,because the functions of centralized management software for different distributed instruments are similar.In order to shorten the development cycle of distributed instrument centralized management software and save human resources,this thesis analyzes the functions of various distributed instrument centralized management software and finds that the main functions of centralized management software include several or all of communication,instrument centralized management,instrument control,data verification,data display,data storage,parameter configuration and instrument status monitoring.Therefore,this thesis takes software reuse technology as the central idea,unifies the programming language of centralized management software as C# language,and realizes the software technology relying on the above functions,including six aspects of communication method,data verification method,data transmission protocol,data storage method,data display method and distributed instrument centralized management topology,etc.,encapsulated into callable method interfaces,which can be called when developing different kinds of centralized management software to achieve the purpose of software technology reuse and shorten software development cycle.Among them,serial communication and network communication among the commonly used communication methods are implemented to support data interaction between the centralized management software and the distributed instruments;in order to ensure the correctness and integrity of data,BCC check,CRC check and LRC check in data check are implemented;in the process of data exchange between centralized management software and distributed instrument,data transmission protocol plays an important role.This paper introduces TCP and UDP,and implements XMODEM and YMODEM;in order to ensure the data processing and playback in the later stage,five data storage methods are implemented and provided,including configuration parameter storage,text file data storage,table data storage and database data storage;in order to intuitively monitor the state of data,two kinds of data display methods,graphic display and thermal chart display,are realized;for centralized management of distributed instruments,three kinds of centralized management topology,star structure,bus structure and tree structure are provided.In order to verify the reliability and practicality of the distributed instrumentation centralized management software technology implemented in this thesis and to instantiate its application,the centralized management software of the intelligent measurement support system and the microelectric instrumentation monitoring system belonging to the distributed instrumentation system were developed respectively based on the method interfaces provided in the above software technology.The development and application of these two distributed instrument centralized management software examples demonstrate that the distributed instrument centralized management software technology can be reused for a variety of centralized management software development. |