simulink模型​转换成exe程序后,​如何根据需要修改模型​参数?After build an exe, how can I tunable the parameters?

16 views (last 30 days)
simulink模型中,以变量赋值的模型参数(比如Gain模块中参数Gain赋值以变量K),将模型转为可执行的exe程序,需要先给变量K赋值,转换后执行exe程序,K值就不能改变了。我的问题是:我如何实现在执行exe程序时,根据自己的需要修改K的值,得到不同的仿真结果? In a simulink model, with variable assignment model parameters, when you will to build it to exe, you must give a const to the variable first,and then the parameter is nontunable.My question is that how can i tunable the parameter according to my own need, when i run the exe.
  2 Comments
Kaustubha Govind
Kaustubha Govind on 24 Jun 2014
Is the block parameter that you use the variable in tunable or nontunable? One way to check is to double-click on the block to open the dialog while simulation is running. If the parameter is disabled, it is nontunable.
jianxin
jianxin on 25 Jun 2014
Edited: jianxin on 25 Jun 2014
In the simulink model the parameters is tunable,my question is after build the model an exe, I cann't tunable the parameters .

Sign in to comment.

Answers (0)

Categories

Find more on Simulink Coder in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!