error when generating protected model with code generation

3 次查看(过去 30 天)
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 个)

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 CenterFile Exchange 中查找有关 Create Large-Scale Model Components 的更多信息

产品


版本

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by