- https://www.mathworks.com/help/slrealtime/gs/build-and-download-with-run-on-target.html
- https://www.mathworks.com/help/slrealtime/ref/simulinkrealtimeexplorer.html
Can I run protected Simulink models in External mode before R2023b?
3 ビュー (過去 30 日間)
古いコメントを表示
MathWorks Support Team
2024 年 8 月 7 日
編集済み: MathWorks Support Team
2024 年 10 月 21 日
I am trying to run a Simulink mode via External Mode. Part of my model is a Protected Model Reference and I am using a release before release MATLAB R2023b.
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 protect a model and still be able to run it in External mode on these releases?
採用された回答
MathWorks Support Team
2024 年 10 月 23 日
編集済み: MathWorks Support Team
2024 年 10 月 21 日
Support for running protected models in External Mode (i.e., using the 'Monitor & Tune' or 'Run on Target' button) was introduced in MATLAB R2023b. The text from the release note is provided below, along with a link to the relevant Simulink Release Note:
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.
To use Protected Models before R2023b, consider one of the following options:
1) 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 or the SLRT Explorer to run your application and tune parameters. See the documentation pages below for more information specific to Simulink Real-Time.
2) Use FMUs as a way to create binaries from your model, instead of Protected Models.
To make a FMU for a Simulink model follow the steps in the below link to create an FMU with the source code included.
Once you have successfully generated the FMU, you can import that into your Simulink model with the FMU block.
3) Use the S-Function Target Workflow to conceal the contents of the model, instead of Protected Models.
If you are considering using (2) or (3) please refer to the following MATLAB Answers post for an overview of IP protection workflows that we offer for Simulink models:
0 件のコメント
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deployment, Integration, and Supported Hardware についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!