error when generating protected model with code generation
16 次查看(过去 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 个评论
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
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.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Model Protection 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!