How do I include parameters stored in an external header file during code generation from a model using Simulink 7.8 (R2011b)?

My Simulink model uses a lot of externally defined parameters. These parameters are collected in a data structure which is defined in an external source file with the structure defined in a header file. I want to know how to include this external source and header files in order to use these parameter values in my Simulink model.

 采纳的回答

The attached ZIP file contains a model which demonstrates how to include parameters defined in a source/header file. The header and source file describing the parameters are in the folder called ‘hand_code_files’. This example also includes output structures to which the data is written by the model.

更多回答(0 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2011b

标签

尚未输入任何标签。

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by