What does this mean? -- Simulation of default block diagram is not allowed

6 vues (au cours des 30 derniers jours)
ying xiong
ying xiong le 30 Mai 2017
I want to use the App designer to run my Simulink modle, and I use "set_param( modlename,'SimulationCommand','start');", but I get this bug " Simulation of default block diagram is not allowed". What does this mean, and how can I solve it?

Réponses (2)

Abel Babu
Abel Babu le 2 Juin 2017
Modifié(e) : Abel Babu le 2 Juin 2017
Hi Ying,
Maybe you can first try connecting to the model and then do the simulation. The code then would look like this:
set_param (model_name, 'SimulationCommand', 'connect');
set_param (gcs, 'SimulationCommand', 'start')
Abel
  2 commentaires
ying xiong
ying xiong le 2 Juin 2017
Hi Abel, Thank you! But I just try your suggestion, the error still exists.
Carlos Domínguez
Carlos Domínguez le 1 Oct 2021
Hi, I have the same problem. Have you another suggestion to this bug?

Connectez-vous pour commenter.


Yukun Lau
Yukun Lau le 12 Sep 2018
I get the bug same with you, have you got the answer

Catégories

En savoir plus sur 事件函数 dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!