error when generating protected model with code generation

조회 수: 16 (최근 30일)
Rami Sabbah
Rami Sabbah 2023년 3월 2일
답변: Jasvin 2023년 3월 6일
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
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
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에서 Model Protection에 대해 자세히 알아보기

제품


릴리스

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by