Eagle
Eagle

Reputation: 3474

Include model comments from Simulink in generated code

Is there a way to add comment to Simulink in a way which will be later added to the generated code?

Rational, sometimes i look at the generated code and I would like to see my comments for better understanding.

Upvotes: 0

Views: 680

Answers (1)

Phil Goddard
Phil Goddard

Reputation: 10762

Within the Model-Wide Utilities library there is a DocBlock. If you select the Text option, then the comments can be included in code generated by Simulink Coder.

Upvotes: 3

Related Questions