Journal of System Simulation
Abstract
Abstract: Aiming at the limited real-time performance of traditional test software and the low generality of traditional simulation interface software, a real-time simulation software based on Windows/RTX is designed to meet the requirements of unit testing and control system simulation verification of semiphysical simulation software. Through modular design, GUI layer human-computer interface and RTX layer real-time operation program are developed. To ensure the real-time, the lock-free cyclic buffer plus dual-threading technology is used to solve the timeout problem of serial data transmission and reception when the simulation step size is 1 ms under RTX environment. A timeout detection algorithm is proposed to monitor the real-time status of simulation nodes. With cJSON, the test case configuration files are optimized and the users can edit the test cases more flexibly. RTW automatic code generation is used to integrate the projectile model compilation into RTX copycat software engineering. Test results show that the imitation software effectively considers the single test and the simulation, improves the versatility and secondary development efficiency, and reduces the development difficulty.
Recommended Citation
Li, Yongbo; Tian, Runmei; Zhang, Hui; Guo, Shanpeng; and Li, Qi
(2024)
"Design of Real-time Simulation & Test Software Based on Windows/RTX,"
Journal of System Simulation: Vol. 36:
Iss.
6, Article 19.
DOI: 10.16182/j.issn1004731x.joss.23-0120
Available at:
https://dc-china-simulation.researchcommons.org/journal/vol36/iss6/19
First Page
1468
Last Page
1474
CLC
TP391.9
Recommended Citation
Li Yongbo, Tian Runmei, Zhang Hui, et al. Design of Real-time Simulation & Test Software Based on Windows/RTX[J]. Journal of System Simulation, 2024, 36(6): 1468-1474.
DOI
10.16182/j.issn1004731x.joss.23-0120
Included in
Artificial Intelligence and Robotics Commons, Computer Engineering Commons, Numerical Analysis and Scientific Computing Commons, Operations Research, Systems Engineering and Industrial Engineering Commons, Systems Science Commons