error when generating protected model with code generation
Mostra commenti meno recenti
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 Commento
Luca Ferro
il 2 Mar 2023
Modificato: Luca Ferro
il 2 Mar 2023
could you share both the commands you are using to protect the file and the error log?
Risposte (1)
Jasvin
il 6 Mar 2023
0 voti
This MATLAB Answer highlights in detail what the issue can be.
It looks like the continous sample time is the source of your error.
Categorie
Scopri di più su Simulink Coder in Centro assistenza e File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!