Simulink disabling drag-and-drop while running

조회 수: 1 (최근 30일)
Eric Zanghi
Eric Zanghi 2011년 8월 11일
Hi,
About Simulink blocks: I need to disable drag-and-drop blocks while the simulation is running to avoid mistakes.
How can I do it ?
Thanks Eric

채택된 답변

Fangjun Jiang
Fangjun Jiang 2011년 8월 11일
I assume you have a simulation that takes long time to run and you don't want to mess up with the blocks while it is running.
You could hide the visibility of the model by turn it on/ff, or turn the lock of the model on/off;
Open the model 'f14', change the simulation stop time to inf and run it.
set_param('f14','open','off')
Or you can lock it temporarily
set_param('f14','lock','on')
  댓글 수: 2
Eric Zanghi
Eric Zanghi 2011년 8월 13일
It Works ! Now no one can drag-and-drop !
Thanks a lot
Eric
Fangjun Jiang
Fangjun Jiang 2011년 8월 22일
Please accept the answer. It's an indication of a viable solution.

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

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Environment Customization에 대해 자세히 알아보기

태그

제품

Community Treasure Hunt

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

Start Hunting!

Translated by