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.

 Réponse acceptée

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.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Coder dans Centre d'aide et File Exchange

Produits

Version

R2011b

Tags

Aucun tag saisi pour le moment.

Community Treasure Hunt

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

Start Hunting!

Translated by