Using Simscape Model (code generated or just protected) to run Simulation on PC with just Matlab/Simulink
Ältere Kommentare anzeigen
Would it be possible to use Simscape blocksets/Simscape sourcecode in a Simulink model, which could be used by another system (having just Matlab/Simulink/Stateflow licence) to run the SImulation? If yes, how to proceed with it? Thank you.
Antworten (2)
Javier Gazzarri
am 24 Jul. 2023
0 Stimmen
Hello Hitesh. This is indeed possible and there are a couple of options:
1) Create a Protected Model Reference as described here: Explore Protected Model Capabilities - MATLAB & Simulink (mathworks.com). This is a good option to share models that the user can re-parameterize while not having access to the subsystem's details.
2) Create an FMU block as explained here: Export a Model as a Tool-Coupling FMU - MATLAB & Simulink (mathworks.com).
Both cases require you to use sensors and sources from Simscape so that the boundaries are crossed by Simulink signals, as opposed to physical connections.
Please let me know if this helps.
Javier
1 Kommentar
Hitesh
am 25 Jul. 2023
Javier Gazzarri
am 25 Jul. 2023
0 Stimmen
Hi Hitesh,
Yes, you don't need to create a project for this. From the top level of the model, please go to:
SAVE -> Standalone FMU
and follow the directions. This will create a file with .fmu extension whose name you can then use in the Simulink's FMU block. The latter will be functional as the original model but concealed from the user.
Best regards,
Javier
1 Kommentar
Hitesh
am 26 Jul. 2023
Kategorien
Mehr zu Troubleshooting finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!