error when generating protected model with code generation

6 ビュー (過去 30 日間)
Rami Sabbah
Rami Sabbah 2023 年 3 月 2 日
回答済み: Jasvin 2023 年 3 月 6 日
The code interface packaging option 'C++ class' cannot be selected for referenced model 'modelName' because it cannot combine its output and update functions. Some possible reasons for this restriction are
* The model has a continuous sample time.
* The model is saving states.
  1 件のコメント
Luca Ferro
Luca Ferro 2023 年 3 月 2 日
編集済み: Luca Ferro 2023 年 3 月 2 日
could you share both the commands you are using to protect the file and the error log?

サインインしてコメントする。

回答 (1 件)

Jasvin
Jasvin 2023 年 3 月 6 日
This MATLAB Answer highlights in detail what the issue can be.
It looks like the continous sample time is the source of your error.

カテゴリ

Help Center および File ExchangeModel Protection についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by