当我用compile​r打包调用了simu​link的app后,​更改数据无法更新输出​图像

simInp=simulink.compiler.configureForDeployment(simInp);
如果我不加这行代码,打包后的exe就会报错以未知模式运行,加上这行代码后,显示模型无法更新,修改模型参数后,输出仿真图不变。

1 件のコメント

书磊
书磊 2025 年 10 月 11 日
你解决了吗同学,我现在也遇到了同样的问题

サインインしてコメントする。

回答 (2 件)

Esther
Esther 2024 年 7 月 22 日

0 投票

Hi Zhang,
With my understanding you have tunable parameters in your Simulink model and you would like to generate an EXE for your model. I suggest that you use the setVariables method to set the values of the tunable parameters.
Please refer to the following MathWorks documentation link that provides detailed instructions on "Deploying A Simulation App with Simulink Compiler."
zhang
zhang 2024 年 7 月 22 日

0 投票

I have used setVariables method to set the values of the tunable parameters.But I cant sim model。

カテゴリ

ヘルプ センター および File ExchangeDeploy Standalone Applications についてさらに検索

製品

リリース

R2022b

質問済み:

2024 年 7 月 18 日

コメント済み:

2025 年 10 月 11 日

Community Treasure Hunt

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

Start Hunting!