Restore LinkStatus - no prompt

2 次查看(过去 30 天)
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.

回答(1 个)

Siddharth Jawahar
Siddharth Jawahar 2017-7-24
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.

类别

Help CenterFile Exchange 中查找有关 Subsystems 的更多信息

标签

Community Treasure Hunt

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

Start Hunting!

Translated by