How to create a "Protected model" from a model containing S-Function?

I have a model, which has an S-Function. I would like to protect this model from code generation, by creating a "protected model". However, I saw here that its not possible to do so.
Is there a workaround for this?
Protected Models A protected model cannot use noninlined S-functions directly or indirectly.

回答 (1 件)

Guy Rouleau
Guy Rouleau 2024 年 5 月 17 日

1 投票

Support for non-inlined S-Functions inside protected referenced models have been added in R2021b.

カテゴリ

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

質問済み:

2015 年 6 月 15 日

回答済み:

2024 年 5 月 17 日

Community Treasure Hunt

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

Start Hunting!

Translated by