Clear Filters
Clear Filters

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

9 views (last 30 days)
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?

Answers (2)

Abel Babu
Abel Babu on 2 Jun 2017
Edited: Abel Babu on 2 Jun 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

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

Categories

Find more on 事件函数 in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!