Font Size: a A A

Research On The Componentization Technology Of Matlab/Simulink Model For HILS

Posted on:2021-04-02Degree:MasterType:Thesis
Country:ChinaCandidate:N GaoFull Text:PDF
GTID:2370330605962370Subject:Mechanical engineering
Abstract/Summary:PDF Full Text Request
Hardware-in-the-loop simulation(HILS)can create a real simulation environment for actual hardware,and test the performance of physical components or control models.It has been widely used in aerospace,automobile,weapon research and development and other fields.However,there are few HILS platforms in China,especially lack of versatility,good scalability,and integrated HILS development platforms.One of the key points is how to achieve efficient communication between the HILS platform and Simulink,and to meet the needs of developing increasingly large HILS applications.At present,a common method for communication between Simulink and hardware is to directly package the hardware driver as a custom component of Simulink.This method is convenient to implement,but poor in universality and scalability.To solve this problem,on the basis of the Simulink and the self-developed combined instrument platform,this article studies the communication methods of Simulink simulation program and combined instrument platform,and proposes that Simulink components communicate with the rear panel components of the combined instrument platform through the network.The detail research contents are given as follows:(1)Overall program design.By analyzing the characteristics and communication needs of the combined instrument platform and the Simulink,with referring to the design ideas of the communication method between the existing HILS platform and Simulink,an overall communication scheme between the Simulink simulation program and the combined instrument platform was proposed.(2)Detailed scheme design.The Simulink simulation program and the combined instrument platform cannot communicate directly,and the traditional method of encapsulating hardware drivers into Simulink components is not universal.Thus,the inter-process communication methods,application layer transmission protocols,and data transmission formats were analyzed in this paper,and the communication schemes of Socket,TCP,and JSON combinations were determined.The Socket message transmission format and JSON data format were also defined respectively.Finally,a detailed communication scheme between the Simulink simulation program and the rear panel components was designed.(3)Research on communication component framework.Under the guidance of the communication scheme,in accordance with the principles of high cohesion and low coupling,a standard development framework was designed which includes a data sending relay component,a data receiving relay component,a data sending component,and a data receiving component.Furthermore,the method of Simulink custom component development was studied,and the Simulink interface module was developed according to the development framework.At the same time,a rear panel interface module corresponding to the combined instrument platform was developed.The data communication interface module between the Simulink simulation program and the rear panel components of the combined instrument platform has been investigated and implemented.Through the communication between the Simulink simulation program and the rear panel components,the Simulink simulation program can indirectly communicate with the physical hardware and host software.Communication.The Simulink simulation program was also decoupled from the hardware driver and host software.When another model was developing,it is only needed to focus on the construction of the model,without considering the specific data interaction issues which can efficiency improve the development process of the HILS applications.Finally,the communication scheme in this paper was verified by an application of the developing a hardware-in-the-loop simulation.
Keywords/Search Tags:Simulink, HILS, Simulink communication components, Combined instrument platform, Rear panel components
PDF Full Text Request
Related items