Can I run a Simulink model that references a Protected Model in External Mode?

조회 수: 5 (최근 30일)
I am trying to run a Simulink model on external hardware using the External Mode. My model references a protected model and I am using a release before MATLAB R2023b. However, if I attempt to run this model in External Mode it fails with the following error message:
Protected models do not work in External mode or rapid accelerator simulations.
Is it possible to reference a protected model and still be able to run it in External mode in these releases?

채택된 답변

MathWorks Support Team
MathWorks Support Team 2025년 1월 24일
편집: MathWorks Support Team 2025년 2월 26일

MATLAB R2023b and newer

Starting in R2023b, when a protected model creator specifies that a protected model supports C code generation, the protected model also supports external mode simulation. This means that a model that references the protected model can start the simulation using the 'Monitor & Tune' or 'Run on Target' button. See the Simulink release note.

MATLAB R2023a and earlier

To run a model containing a protected models on hardware before R2023b, use Standalone Mode or Normal Mode instead of External Mode. This means that you will not be able to monitor and tune your simulation from the model canvas.
Refer to the MathWorks documentation for your hardware you are using to explore alternative possible simulation modes.
For example, in Simulink Real-Time you can use MATLAB commands, the SLRT Explorer, or a custom AppDesigner GUI to run your application and tune parameters. See the documentation pages below for more information specific to Simulink Real-Time.
For an overview of all IP protection workflows offered for Simulink models, refer to the following MATLAB Answer: How can I protect the intellectual property of my Simulink model? ​​​​​​​

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

제품


릴리스

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by