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

11 visualizzazioni (ultimi 30 giorni)
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?

Risposte (2)

Abel Babu
Abel Babu il 2 Giu 2017
Modificato: Abel Babu il 2 Giu 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 Commenti
ying xiong
ying xiong il 2 Giu 2017
Hi Abel, Thank you! But I just try your suggestion, the error still exists.
Carlos Domínguez
Carlos Domínguez il 1 Ott 2021
Hi, I have the same problem. Have you another suggestion to this bug?

Accedi per commentare.


Yukun Lau
Yukun Lau il 12 Set 2018
I get the bug same with you, have you got the answer

Categorie

Scopri di più su 编程式模型编辑 in Help Center e File Exchange

Community Treasure Hunt

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

Start Hunting!