error when generating protected model with code generation

9 visualizaciones (últimos 30 días)
Rami Sabbah
Rami Sabbah el 2 de Mzo. de 2023
Respondida: Jasvin el 6 de Mzo. de 2023
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 comentario
Luca Ferro
Luca Ferro el 2 de Mzo. de 2023
Editada: Luca Ferro el 2 de Mzo. de 2023
could you share both the commands you are using to protect the file and the error log?

Iniciar sesión para comentar.

Respuestas (1)

Jasvin
Jasvin el 6 de Mzo. de 2023
This MATLAB Answer highlights in detail what the issue can be.
It looks like the continous sample time is the source of your error.

Productos


Versión

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by