Simulink disabling drag-and-drop while running

1 visualización (últimos 30 días)
Eric Zanghi
Eric Zanghi el 11 de Ag. de 2011
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

Respuesta aceptada

Fangjun Jiang
Fangjun Jiang el 11 de Ag. de 2011
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 comentarios
Eric Zanghi
Eric Zanghi el 13 de Ag. de 2011
It Works ! Now no one can drag-and-drop !
Thanks a lot
Eric
Fangjun Jiang
Fangjun Jiang el 22 de Ag. de 2011
Please accept the answer. It's an indication of a viable solution.

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Simulink Environment Customization en Help Center y File Exchange.

Etiquetas

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by