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

조회 수: 11 (최근 30일)
ying xiong
ying xiong 2017년 5월 30일
댓글: Carlos Domínguez 2021년 10월 1일
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
  댓글 수: 2
ying xiong
ying xiong 2017년 6월 2일
Hi Abel, Thank you! But I just try your suggestion, the error still exists.
Carlos Domínguez
Carlos Domínguez 2021년 10월 1일
Hi, I have the same problem. Have you another suggestion to this bug?

댓글을 달려면 로그인하십시오.


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!