当我用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 Exchange에서 Deploy 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!