Simulink与Windows程序间实时交互的研究  被引量:11

Real Time Interaction Between Simulink And Windows Programs

在线阅读下载全文

作  者:管文良[1] 康凤举[1] 唐凯[1] 吴宇[1] 

机构地区:[1]西北工业大学航海学院,陕西西安710072

出  处:《计算机仿真》2006年第3期5-7,136,共4页Computer Simulation

摘  要:该文通过对实时交互仿真的研究,提出了一种实现Simulink仿真模型与外部Windows程序仿真模型实时交互的方法。该方法通过在S-函数的样板中加入使用共享内存的程序代码完成收发数据;然后编写能读写共享内存的外部程序进行数据读写;同时利用Windows消息机制协调仿真同步并实现仿真的实时性。基于上述方法,实现了Simulink仿真模型与外部Windows程序仿真模型的实时数据交互。仿真结果表明该方法能实现实时并获得较好的准确性,为实现Simulink仿真模型的重用及与其它仿真模型的实时交互提供了新的解决方案。A new way of implementing real time interaction between Simulink and Windows program simulation model is proposed through some research on real time interactive simulation. Through adding program code in S - Function template, data is sent and received , and then writing extra programs which can use shared memory to receive and send the data. Meanwhile, Windows message is used to implement synchronization and real time of the simulation. Based on the above mentioned method, the real time interaction between Simulink and extra Windows program is implemented. Simulation results show that the method could implement real time and obtain better accuracy. A new way is provided to implement reuse and real time interaction with other simulation model of Simulink model.

关 键 词:系统函数 共享内存 实时交互 

分 类 号:TP391.9[自动化与计算机技术—计算机应用技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象