Pass parameters to simulink executable

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

Kurt Stewart
Kurt Stewart 2019년 5월 8일
Have you ever done code generation to make the runtime faster?

댓글을 달려면 로그인하십시오.

답변 (1개)

Titus Edelhofer
Titus Edelhofer 2015년 2월 2일

0 개 추천

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

카테고리

도움말 센터File Exchange에서 Prepare Model Inputs and Outputs에 대해 자세히 알아보기

질문:

2015년 2월 2일

댓글:

2019년 5월 8일

Community Treasure Hunt

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

Start Hunting!

Translated by