How to set-up simulink coder to generate input/output variables as pointers

I am trying to set-up a Simulink model such that the auto generated C-code creates interfaces as pointers. That way I can avoid double storage for legacy code that interfaces with generated code.

回答 (1 件)

Jean-Paul Marcade
Jean-Paul Marcade 2021 年 3 月 5 日

0 投票

This can be achieved through the code mapping menu once you are in the code generation view. You will find more details:https://www.mathworks.com/help/rtw/ug/control-data-interface-in-the-generated-code.html

カテゴリ

ヘルプ センター および File ExchangeSimulink Coder についてさらに検索

タグ

質問済み:

2013 年 10 月 15 日

回答済み:

2021 年 3 月 5 日

Community Treasure Hunt

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

Start Hunting!

Translated by