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

7 visualizzazioni (ultimi 30 giorni)
zhang
zhang il 18 Lug 2024
Commentato: 书磊 il 11 Ott 2025 alle 17:14
simInp=simulink.compiler.configureForDeployment(simInp);
如果我不加这行代码,打包后的exe就会报错以未知模式运行,加上这行代码后,显示模型无法更新,修改模型参数后,输出仿真图不变。
  1 Commento
书磊
书磊 il 11 Ott 2025 alle 17:14
你解决了吗同学,我现在也遇到了同样的问题

Accedi per commentare.

Risposte (2)

Esther
Esther il 22 Lug 2024
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 il 22 Lug 2024
I have used setVariables method to set the values of the tunable parameters.But I cant sim model。

Categorie

Scopri di più su Deploy Standalone Applications in Help Center e File Exchange

Prodotti


Release

R2022b

Community Treasure Hunt

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

Start Hunting!