摘要
针对基于Windows操作系统的控制系统实时性仿真的问题,通过对实时仿真平台进行实时性分析与对比,提出基于RTX+Matlab+LabWindows/CVI的仿真平台架构,并利用Matlab工具建立了某控制系统仿真模型,通过自主研发RTW内相关编联文件与目标语言文件,将simulink仿真模型转换成可移植的RTX代码,该程序具有高实时性。图形显示和数据存储等非实时任务由Win32进程完成,该程序由LabWindows/CVI编写。仿真结果表明,该仿真程序具有较高实时性,满足预期要求。
According to the problem of the real-time simulation of control system on the Windows operating system,a simulation platform based on RTX+Maflab+LabWindows/CVI is given. The control system simulation model established by MATLAB can be transformed to portable RTX code due to the independent research to write related .tmf file and the .tic file in RTW. Data collection and manifestation and other non real-time tasks are performed by Win32 processes, which are written by LabWindows/CVI. The result of simulation shows that the simulation program has high real-time performance and meet the expected requirement.
出处
《电子设计工程》
2014年第13期44-47,共4页
Electronic Design Engineering