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

11 次查看(过去 30 天)
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?

回答(2 个)

Abel Babu
Abel Babu 2017-6-2
编辑:Abel Babu 2017-6-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

Yukun Lau
Yukun Lau 2018-9-12
I get the bug same with you, have you got the answer

类别

Help CenterFile Exchange 中查找有关 事件函数 的更多信息

Community Treasure Hunt

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

Start Hunting!