研究基于RTX和Matlab实时仿真技术对帧时间要求苛刻的实时仿真应用具有重要的意义.但如果进行半实物仿真,就需要解决制作可以在RTX下运行的PCI板卡驱动的关键问题.VC6.0下编写了硬件驱动库函数RTDLL文件.同时将在Matlab下编写S函数调用库函数完成Simulink模块的封装,最后通过配置RTW工具箱生成RTX下可执行的程序RTSS.%It is important to investigate the real-time simulation technology based on RTX and Matlab for those real-time applications which require strict frame time. However, a card driver module that can run under RTX environment needs to be developed, if semi-physical simulation is demanded. To solve the problem, the RTDLL file of hardware driver library function written under VC6. 0 environment is provided. A call library function in the form of S-function written under Matlab achieves the encapsulation of Simulink modules. Ultimately, by configuring the RTW toolbox, the executable program RTSS under RTX is generated.
展开▼