Can I automatically break the library links of my blocks when using the Model Discretizer tool in Simulink 6.0 (R14)?

15 views (last 30 days)
The documentation on the Model Discretizer tool mentions the following:
"Discretize the BlocksTo discretize blocks that are linked to a library,
you must either discretize the blocks in the library itself or disable
the library links in the model window.
You can open the library from the Model Discretizer by selecting
Load model from the File menu. You can disable the library links
by right-clicking on the block and selecting Link options -> Disable link
from the pop-up menu."
It would be useful if I could break the library links in my model automatically with this tool.

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 18 Apr 2023
Edited: MathWorks Support Team on 19 Apr 2023
The ability for the Model Discretizer tool to automatically break the links of the blocks is not available in Simulink.
To work around this issue, you can break all the library links of your model from the command line. The following code is an example:
save_system('vdp','myvdp','BreakLinks')
Note that the system must be open when this command is executed. You can refer to the following documentation for more on the use of the SAVE_SYSTEM function:

More Answers (0)

Categories

Find more on Programmatic Model Editing in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!