针对MATLAB/RTW的传统半物理仿真系统中仿真目标机向数据监控计算机传输数据的实时性问题,设计了一种采用改进的DEFLATE压缩算法的网络通信模块。仿真主控计算机通过RTW工具把网络通信模块生成能在仿真目标机上实时运行的目标程序,然后把模型中需要观察的仿真数据通过以太网实时发送到与仿真目标机相连的数据显示计算机中。通过实验数据对比,采用改进后的DEFLATE压缩算法比不采用压缩算法的网络通信模块在数据传输的实时性能上有明显提高。
In order to solve network communication real-time problem in the traditional hardware-in-the-loop simulation,a network communication module based on DEFLATE algorithm is proposed. Host simulation computer makes the network communication module to generate the target program running in target simulation computer through RTW tool,and then the program sends the simulation data to data monitoring computer via Ethernet. By comparing the experimental data,the network communication module based on DEFLATE is better than the traditional network communication module on real-time performance.