摘要
介绍了一种基于RTW Embedded Coder和嵌入式操作系统VxWorks的实时仿真方法。在一些实时性要求较高的仿真系统中,怎样能够在不加大开发难度的情况下提高仿真的实时性是一个需要解决的问题。Matlab中的RTW是专门为实时仿真设计开发的,VxWorks是一个非常实时的嵌入式开发系统,利用代码生成工具将ERT嵌入式目标自动生成优化的嵌入式实时C代码,下载到VxWoks嵌入式实时操作系统下运行,主机运行Simulink模型,目标机运行实时代码,保证了实时性。同时提供了利用C-API接口实现在线调参的方法,与传统的基于Tornado实时目标和VxWorks的实时仿真方法相比,更加利于对模型参数进行访问。
Introduced a new method to realize real - time simulation based on RTW embedded Coder and embedded real- time OS Vx- Works. In some simulation systems, how to improve the real - time characteristics without increasing developing diffieulties is a subject should solve. RTW in Matlab is developed for real - time simulation specialy,VxWorks is a real - time embedded operation system,using code generation tool box to translate embedded real- time target ERT to optimize C code automatically, then download and work in OS VxWorks, simulink model work in host oomputer, real - time code work in target computer,which guarded the real - time characterastics. Also provide a way to adjust parameter on line With C - API, compared with the traditional real- time simulation method based on Tornado and OS VxWorks, it is more propitious to access model parameters.
出处
《计算机技术与发展》
2008年第2期208-211,219,共5页
Computer Technology and Development