Filter löschen
Filter löschen

error when generating protected model with code generation

3 Ansichten (letzte 30 Tage)
Rami Sabbah
Rami Sabbah am 2 Mär. 2023
Beantwortet: Jasvin am 6 Mär. 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 Kommentar
Luca Ferro
Luca Ferro am 2 Mär. 2023
Bearbeitet: Luca Ferro am 2 Mär. 2023
could you share both the commands you are using to protect the file and the error log?

Melden Sie sich an, um zu kommentieren.

Antworten (1)

Jasvin
Jasvin am 6 Mär. 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.

Kategorien

Mehr zu Create Large-Scale Model Components finden Sie in Help Center und File Exchange

Produkte


Version

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by