Simulink model compilation on deployment (mcc and docker image)

2 Ansichten (letzte 30 Tage)
Eduardo
Eduardo am 13 Dez. 2022
Right now I am looking for the best way to deploy a simulink model as a standalone application which I can run multiple times in the cloud.
For now I have seen two possibilities of deployment:
  • Create an .exe file using mcc
  • Create a docker image of a matlab function running the model
I have based both solutions on the script given at Deploy with Simulink Compiler
When running the command to create the .exe file:
mcc -m deployedScript.m
I have seen in the command window that the model is being compiled:
### Building the rapid accelerator target for model: sldemo_suspn_3dof
### Successfully built the rapid accelerator target for model: sldemo_suspn_3dof
Build Summary
Top model rapid accelerator targets built:
Model Action Rebuild Reason
===============================================================================
sldemo_suspn_3dof Code generated and compiled buildInfo.mat does not exist.
Does this mean that the created executable contains a compiled copy of the model? or does the compilation happen each time that the application is executed?

Antworten (0)

Kategorien

Mehr zu MATLAB Compiler 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!

Translated by