find mask model in Simulink

22 visualizaciones (últimos 30 días)
shengchang gao
shengchang gao el 26 de Jun. de 2019
Comentada: shengchang gao el 27 de Jun. de 2019
Hi,
I have a problem that I want to find the Mask block inside of the existing model. I try to use find_system('System','BlockType','name_of_mask') to get the name of masked blocks. However,it return empty cell for me. What command should I use to find the masked blocks ?
Thanks!

Respuesta aceptada

Shameer Parmar
Shameer Parmar el 26 de Jun. de 2019
Editada: Shameer Parmar el 26 de Jun. de 2019
Hello Shengchang,
You can use one of following command in your code... (Open your model and run this command and see the results)
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block');
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block','BlockType','SubSystem');
find_system(bdroot,'LookUnderMasks','All','FindAll','on','Mask','on','Type','block','BlockType','Inport');
You can put different filters like 'BlockType', 'MaskType', etc etc and achive what you want..
I hope this will help you.. Thanksss...
  1 comentario
shengchang gao
shengchang gao el 27 de Jun. de 2019
Thank you! That helps a lot!

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

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

Community Treasure Hunt

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

Start Hunting!

Translated by