代码生成
将物理模型转换为代码
您可以使用 Simulink® Coder™ 软件从 Simscape™ 模型生成独立的 C 或 C++ 代码,并提升仿真速度和可移植性。Simulink 软件的某些功能也使用生成的代码或外部代码。通常,使用从 Simscape 模型生成的代码与使用从常规 Simulink 模型生成的代码类似。然而,也有一定的不同之处。以下主题解释了与代码相关的任务,并探讨了从 Simscape 模型生成代码的细节。
主题
- About Code Generation from Simscape Models
You can use Simulink Coder software to generate standalone C or C++ code from your Physical Networks models and enhance simulation speed and portability.
- Reasons for Generating Code
Overview of purposes and methods for generating code.
- Using Code-Related Products and Features
Overview of products and features used for various code generation tasks.
- How Simscape Code Generation Differs from Simulink
Learn about Simscape code generation specifics.