What does this mean? -- Simulation of default block diagram is not allowed
Mostrar comentarios más antiguos
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?
Respuestas (2)
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 comentarios
ying xiong
el 2 de Jun. de 2017
Carlos Domínguez
el 1 de Oct. de 2021
Hi, I have the same problem. Have you another suggestion to this bug?
Yukun Lau
el 12 de Sept. de 2018
0 votos
I get the bug same with you, have you got the answer
Categorías
Más información sobre Simulink en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!