MATLAB Answers

GUI for Simulink as a standalone (load_system is excluded from packaging)

7 ビュー (過去 30 日間)
Robin Kirsch
Robin Kirsch 2020 年 6 月 4 日
編集済み: Kojiro Saito 2020 年 6 月 4 日
I am having a GUI designed with App Designer running and displaying variables from a Simulink Model. I can also adjust variables in the GUI and update them into the simulation.
I use load_system('mysystem') and set_param('mysystem','Simulationcommand','Start') to start the system.
When I try to create a standalone now i get the Warnings
"load_system", "close_system, save_system" are excluded from packaging for the MATLAB Runtime environment according to the MATLAB Compiler license.
Is it not possible to run a simulation in a standalone application?

  0 件のコメント



Kojiro Saito
Kojiro Saito 2020 年 6 月 4 日
編集済み: Kojiro Saito 2020 年 6 月 4 日
load_system, close_system and save_system are not supported by MATLAB Compiler as described in this list.
But from R2020a, with Simulink Compiler, you can compile Simulink simulations as a standalone application.
Below is an example.
sim, Simulink.SimulationInput and Simulink.SimulationOutput are supported by Simulink Compiler, so you can create a standalone application with these commands instead of load_system.

  0 件のコメント


その他の回答 (0 件)

Community Treasure Hunt

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

Start Hunting!

Translated by