Restore LinkStatus - no prompt

4 visualizaciones (últimos 30 días)
Shreyas Sakhadeo
Shreyas Sakhadeo el 7 de Jul. de 2017
Respondida: Siddharth Jawahar el 24 de Jul. de 2017
I have many linked subsystems in my model, and I am able to change their link status programmaticaly. My question is when I use set_param(subsystem_block, 'LinkStatus', 'resolved'), the library block always opens. Is there a way to suppress this? Consequently, after restoring the link status, I use save_system and close_system, but it slows my system down a bit and runtime also increases.

Respuestas (1)

Siddharth Jawahar
Siddharth Jawahar el 24 de Jul. de 2017
Hi Shreyas, I was not able to reproduce this using a subsystem library block as you mentioned in R2017a. Which version of MATLAB are you using? Can you paste a simple model where you are observing this? Also, the LinkStatus of a block can be set to 'none' or 'inactive' for linked blocks. For inactive links, it can be set to 'none', 'restore' or 'propagate'. Please also make sure if you are using the right values for this parameter.

Categorías

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

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by