摘要
介绍了基于Matlab/RTW(Real-time Workshop)和RTX(Real-time extension)构建实时仿真系统的方法;针对基于RTX的实时仿真系统不能直接进行在线调参的不足,提出了一种利用C API(C文件应用程序接口)实现在线调参的方法。经过实验证明,此仿真系统不仅具有很强的实时性,并且拥有良好的人机交互能力;另外,在线调参功能的实现使仿真试验的效率得到了大大的提高,而且还可以作为一种故障注入方法来考察模型的容错能力,是基于RTX实时仿真系统的一大改良。
This paper introduces a method of using the RTX(Real-time extension) and the Matlab/RTW(Real-time Workshop) to construct real-time simulation system. Because of the deficiency of real-time simulation system based on RTX can not directly adjusting parameter on-line, a method of using the C API (C file application program interface) to realize the function of Parameters online adjustment has been proposed.Proved by experiment, This simulation system owns not only a fine real- time property but also a good human-machine interaction ability.In addition, The realization of Online parameter adjustment function not only improves the simulation experiment efficiency greatly but also can be used as a method of fault injection to examine the fault tolerance of the model,it is a great improvement of the real-time simulation system based on RTX.
出处
《电子设计工程》
2013年第4期29-32,共4页
Electronic Design Engineering
关键词
实时仿真系统
C文件应用程序接口
在线调参
real-time simulation system
C file application program interface
Parameters online adjustment-