- https://mathworks.com/help/slrealtime/gs/configure-build-and-download-target-application-using-matlab-language.html
- https://www.mathworks.com/help/slrealtime/ref/simulinkrealtimeexplorer.html
Can I run protected Simulink models in External mode before R2023b?
11 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
MathWorks Support Team
am 7 Aug. 2024
Bearbeitet: MathWorks Support Team
am 7 Aug. 2024
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?
Akzeptierte Antwort
MathWorks Support Team
am 7 Aug. 2024
Bearbeitet: MathWorks Support Team
am 7 Aug. 2024
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.
https://www.mathworks.com/help/simulink/release-notes.html?category=component-based-modeling&rntext=&startrelease=R2023b&endrelease=R2023b&groupby=release&sortby=descending&searchHighlight=#mw_ceac1a7c-7f7b-449b-a896-a6d7a4e99c7a
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 Kommentare
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Deployment, Integration, and Supported Hardware finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!