error when generating protected model with code generation

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 个评论

could you share both the commands you are using to protect the file and the error log?

请先登录,再进行评论。

回答(1 个)

类别

帮助中心File Exchange 中查找有关 Simulink Coder 的更多信息

产品

版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by