Is there a way to change model parameters at runtime that is support for code generation?

Is there a way to change model parameters at runtime that is support for code generation?
set_param() is suggested all over the place, but it is not supported for code generation on a Raspberry Pi. Is there another way?
Regards,
Tyler

回答 (1 件)

Prannay Jain
Prannay Jain 2017 年 5 月 2 日

0 投票

For code generation, depending on the complexity of blocks, the user could try building the sources from basic blocks or use S-functions to create custom blocks. These blocks can obviously be designed to take in parameters through ports rather than as mask parameter values.

カテゴリ

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

質問済み:

2017 年 4 月 26 日

回答済み:

2017 年 5 月 2 日

Community Treasure Hunt

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

Start Hunting!

Translated by