This paper introduces the research and development of the dynamic testing and fault diagnosis system software of barbette. This system is developed for the dynamic testing of a certain type of barbette. The system is based on a RS422 and USB serial communication bus network, using distributed architecture. It can test barbette' s dynamic performance by serval ways. During testing, the system control barbette' s moving and acquire the real-time data. And reflect the system's state on the friendly system interface. The system provides two ways for fault diagnosis: on-line and off-line, using the way of expert system for its fault diagnosis.The first part of this paper deals with the background of the system development and research field it involves. After an analysis of the system' s demand, an general design is given. The dissertation then goes to discuss in detail the software design, including subordinate computer, main computer, communication protocol, multithreading and the soft implementation of serial communication. The paper introduces the way of expert system used by fault diagnosis, and analyzes the fault diagnosis system. Then discuss in detail the design and implementation of the diagnosis system such as: diagnosis strategy, knowledge base, reasoning machine. The last chapter summarizes the results and scarcity of this research and indicates the direction to continue this study. |