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

21 views (last 30 days)
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.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 14 Jun 2012
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.

More Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Tags

No tags entered yet.

Products


Release

R2011b

Community Treasure Hunt

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

Start Hunting!