Simulink Coder
Simulink® Coder™(以前称为 Real-Time Workshop®)从 Simulink 模型、Stateflow® 图和 MATLAB® 函数中生成并执行 C 和 C++ 代码。生成的源代码可用于实时和非实时应用程序,包括仿真加速、快速原型和硬件在环测试。您可以使用 Simulink 调整和监测生成的代码,或在 MATLAB 和 Simulink 之外运行代码以及与代码交互。
Simulink Coder 快速入门
Simulink Coder 基础知识学习
架构和组件设计
通过开发用于生成代码部署、快速原型构建或实时仿真的算法来设计软件系统
代码生成
代码生成和调试、报告生成
部署、集成和支持的硬件
集成、保护、打包和转移生成的代码;将生成的代码部署到支持的硬件上
代码效率
通过最小化内存要求和加速执行来优化生成的代码
代码和工具自定义
为工程或组织自定义生成的代码和代码生成工具
验证和测试
调节参数,比较仿真和生成的代码执行结果,并分析代码性能
查看 Bug 报告以确定并解决问题
Software is inherently complex and is not free of errors. The output of a code generator might contain bugs, some of which are not detected by a compiler. MathWorks reports critical known bugs brought to its attention on its Bug Report system at www.mathworks.com/support/bugreports/. In the search bar, type the phrase "Incorrect Code Generation" to obtain a report of known bugs that produce code that might compile and execute, but still produce wrong answers. To save a search, click Save Search.
The bug reports are an integral part of the documentation for each release. Examine periodically all bug reports for a release, as such reports may identify inconsistencies between the actual behavior of a release you are using and the behavior described in this documentation.
In addition to reviewing bug reports, you should implement a verification and validation strategy to identify potential bugs in your design, code, and tools.