代码生成的基础知识
来自该系列:Improving Your Racecar Development
花更多的时间在算法开发上,并减少手动制作代码的时间。单击按钮,您可以将算法带入C/C ++代码和硬件以及代码生成的硬件。克里斯托夫·哈恩(Christoph Hahn)和应用工程师安德烈亚斯·乌斯(Andreas Uschold)都是数学工程师(Mathworks),遍历代码生成的基础知识以及可简化和加快流程的工具。
代码生成工具是手动编码的绝佳替代方法,这是耗时且容易发生的。将整个过程放入一个工具链中是有好处的,例如,一个开发车辆动力控制器(例如扭矩矢量)的电气配方学生团队可以尽快将其带入其CPU。
Andreas depicts a typical industry workflow for code generation using the Design V, which is a design workflow used by many automotive companies. Looking at this in Simulink®, the example shown is a typical, closed-loop control system with a controller and a piece of hardware you want to control. To generate code out of the system, you simply press a button in MATLAB®并模拟并金宝app获取C/C ++代码。生成的代码符合ANSI ISO C标准,并且与良好的手册生成的C代码一样可读。
拥有代码并不意味着它在硬件上运行,因此Andreas然后概述了硬件支持软件包及其好处。金宝app硬件支持软件包可用金宝app于不同的硬件平台,使您可以嵌入和部署代码。
Ultimately, Model-Based Design helps detect bugs early and speeds up the development process. This is a great overview of code generation and we will go into the individual steps in more detail in future episodes.
以下是该集中提到的软件和硬件产品和服务的链接:下载188bet金宝搏
- 金宝appSimulink实时™
- Speedgoat硬件and服务用于快速控制原型制作
- 硬件支持金宝app软件包
Matlab和Simulink学生休息室的两集与该主题密切相关金宝app。在里面第一个视频processor-in-the-loop (PIL) testing is explained more in detail and in the第二个视频世界之巅电动公式学生团队explains their approach to code generation and testing.
Select a Web Site
选择一个网站以获取可用的翻译内容,并查看本地事件和优惠。根据您的位置,我们建议您选择:。
You can also select a web site from the following list:
如何获得最佳网站性能
选择中国网站(中文或英语)以获得最佳场地性能。其他Mathworks乡村网站未针对您所在的访问进行优化。
Americas
- América Latina(Español)
- 加拿大(English)
- United States(English)
Europe
亚太地区
- 澳大利亚(English)
- 印度(English)
- New Zealand(English)
- 中国
- 日本日本人(日本語)
- 한국Korean(한국어)