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.

 採用された回答

MathWorks Support Team
MathWorks Support Team 2012 年 6 月 14 日
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 ExchangeSimulink Coder についてさらに検索

製品

リリース

R2011b

タグ

タグが未入力です。

Community Treasure Hunt

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

Start Hunting!

Translated by