从matlab/simulink模型到代码实现,Matlab/Simulink模型到C/C++代码的自动实现

Ξ 收稿日期 :2006 - 09 - 10 作者简介 :张祥(1977 - ) ,女 ,四川资阳人 ,硕士研究生 ,讲师 ,主要从事智能控制、控制理论与应用研究. 【计算机与通信工程】 Matlab/ Simulink 模型到 C/ C ++ 代码的自动实现Ξ张  祥 ,杨志刚 ,张彦生 (重庆交通大学 机电与汽车工程学院 ,重庆  400074) 摘要 :介绍了如何利用 Matlab/ Simulink 的 RTW(Real-Time Workshop) 代码生成工具将 Simulink 模型自动转换成 C/ C ++ 代码的方法 ,通过这种方式可以利用 Simulink 方便地建立系统模型 ,同时也解决了 Simlink 模型在 Matlab/ Simulink 环境下速度较慢的问题 ,大大减少了软件工程师的编程工作量.转换后的 C代码能脱离 Matlab 环境独立运行 ,这进一步扩大用该方法生成的 C代码的适用范围. 关  键  词 :Matlab/ Simulink ,RTW代码生成工具 ,C/ C ++ 代码 中图分类号 :TP311. 11     文献标识码 :A 文章编号 :1671 - 0924(2006)11 - 0111 - 03 Automatic Realization from Matlab/ Simulink Models to C/ C ++ Code ZHANG Xiang , YANG Zhi-gang , ZHANG Yan-sheng (School of Electromechanics and Automobile Engineering , Chongqing Jiaotong University , Chongqing 400074 , China) Abstract : This paper proposes a method of using the RTW (Real-Time Workshop) code generation tool to convert Matlab/ Simulink to the C/ C ++ code. Accordingly the system’ s model is constructed conveniently by using simulink. This can not only avoid the problem of low simulation speed of the model in matlab/ Simulink circumstance , but also deduce the workload of the programming engineer. In addition , the convert2ed C code can run independently out of Matlab circumstance , which expands the use domain of the converted C code by this method. Key words : Matlab/ Simulink ; RTW code generation tool ; C/ C ++ code 0  引言   目前 ,市场对产品的需求呈现多样性、快速性的趋势 , 这使产品开发面临着多样性需求与快速开发之间的矛盾 , 并行工程(设计、实现、测试和生产准备同时进行) 被提上了日程. 其中系统设计软件(Simulink 软件)

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值