ITKeyword,专注技术干货聚合推荐

注册 | 登录

解决matlab - Integrate the Simulink Scope in code generation

itPublisher 分享于

2020腾讯云双十一活动,全年最低!!!(领取3500元代金券),
地址https://cloud.tencent.com/act/cps/redirect?redirect=1073

【阿里云】双十一活动,全年抄底价,限时3天!(老用户也有),
入口地址https://www.aliyun.com/1111/home

I use Simulink Coder for C/C++ code generation from Simulink models, but when I connect a signal to a Scope block and build it for code generation scope doesn't open automatically. Is there a way to integrate Scope block in code generation so that it opens automatically running .exe file? Thanks in advance.

matlab code-generation simulink
|
  this question
asked Feb 19 '14 at 10:18 Orlok 114 1 3 18

 | 

1 Answers
1

解决方法

This cannot be done. Scopes are MATLAB figure windows, use MATLAB code in the background, and hence do not support code generation.

Assuming you are only interested in desktop simulation (i.e. not real-time code generation) then what you can do is write a MATLAB GUI that calls a Simulink Coder (RSIM target) generated exe (to run a simulation and store the results in .mat file), then deploy the MATLAB GUI using the MATLAB Compiler. It's far from ideal, but can be made to work.


|
  this answer
answered Feb 19 '14 at 15:28 Phil Goddard 6,423 1 5 21

 | 


相关阅读排行


相关内容推荐

最新文章

×

×

请激活账号

为了能正常使用评论、编辑功能及以后陆续为用户提供的其他产品,请激活账号。

您的注册邮箱: 修改

重新发送激活邮件 进入我的邮箱

如果您没有收到激活邮件,请注意检查垃圾箱。