Can't make .exe file from Appdesigner that include simulink model

4 ビュー (過去 30 日間)
Sabereh
Sabereh 2022 年 8 月 22 日
コメント済み: Sabereh 2022 年 8 月 24 日
I have an appdesigner code.I want a simulink model run when push bottun but after making .exe file this error occur:
(Matlab 2021b)
here is the code:
function startupFcn(app)
h = load_system('test');
test()
end
% Button pushed function: runButton
function runButtonPushed(app, event)
simout = sim('test');
end
end
  1 件のコメント
chrisw23
chrisw23 2022 年 8 月 22 日
I think in Matlab runtime mode you also have to call a compiled simulink model.

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

採用された回答

Steven Lord
Steven Lord 2022 年 8 月 22 日
See this page from the documentation for Simulink Compiler for an example of how to deploy a standalone application that calls a Simulink model.
  4 件のコメント
Sabereh
Sabereh 2022 年 8 月 24 日
I want to run the simulink from my exe app.
Sabereh
Sabereh 2022 年 8 月 24 日
Thank you very much for the solution. I deleted the slprj folder and tried again. The solution works.

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

その他の回答 (1 件)

Walter Roberson
Walter Roberson 2022 年 8 月 22 日
This is a documented limitation of MATLAB Compiler. You need to use Simulink Coder to compile Simulink to an executable.

カテゴリ

Help Center および File ExchangeSimulink Coder についてさらに検索

製品


リリース

R2021b

Community Treasure Hunt

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

Start Hunting!

Translated by