Can't make .exe file from Appdesigner that include simulink model
4 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Sabereh
el 22 de Ag. de 2022
Comentada: Sabereh
el 24 de Ag. de 2022
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 comentario
chrisw23
el 22 de Ag. de 2022
I think in Matlab runtime mode you also have to call a compiled simulink model.
Respuesta aceptada
Steven Lord
el 22 de Ag. de 2022
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 comentarios
Más respuestas (1)
Walter Roberson
el 22 de Ag. de 2022
This is a documented limitation of MATLAB Compiler. You need to use Simulink Coder to compile Simulink to an executable.
0 comentarios
Ver también
Categorías
Más información sobre Simulink Coder en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!
