Pass parameters to simulink executable

5 vues (au cours des 30 derniers jours)
Stefano Mangosio
Stefano Mangosio le 2 Fév 2015
Commenté : Kurt Stewart le 8 Mai 2019
I have a simulink model compiled with Rapid Simulation Target. The model is run n times in a loop and at every time some parameters are changed in the workspace by a .m file which is also calling the model with "!" command. The problem is that the simulation doesn't read model parameters from the workspace but they are fixed in the compiled version. How can I pass these parameters from the .m file to the simulink compiled model?
  1 commentaire
Kurt Stewart
Kurt Stewart le 8 Mai 2019
Have you ever done code generation to make the runtime faster?

Connectez-vous pour commenter.

Réponses (1)

Titus Edelhofer
Titus Edelhofer le 2 Fév 2015
Hi Stefano,
you pass the parameters as .mat file via command line parameter to the executable. How to do this is described in detail here: Set Up Rapid Simulation Input Data.
Titus

Catégories

En savoir plus sur Prepare Model Inputs and Outputs dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by