What is the warning message of "block diagram contains one or more parameterized library links"?
21 views (last 30 days)
Show older comments
When I tried to codegen for my simulink model, I have encountered the warning: "Block diagram 'xx' contains one or more parameterized library links. To find the parameterized links use the Model Advisor. The diagram has been saved but may not behave as you intended."
Do I need to do something to resolve this warning?
"Library Link Manage" recommends to push the button "restore" or "push."
[Description]
The following table shows all the linked blocks with parameterized links.
Parameterized links are created when any parameter(s) changes inside the linked block.
Click 'Restore' to discard the changes in the parameter value and synchronize the value from the corresponding library block. Click 'Push' to update the corresponding library block with the changed parameter value.
0 Comments
Accepted Answer
Shivang
on 22 Aug 2023
Hi Sangim,
I understand that you're getting a warning regarding the presence of parametrized library links in your model, and you're wondering if any action is required on your part.
Please know that when you add a Subsystem block from a library into your model, a referenced instance of the library block is created. This referenced instance of a library block is a called a linked block and contains a link or path to the parent library block. The link or path allows the linked block to update when the library block is updated.
Further, when one or more parameters of the linked block are modified, a parameterized link is created. The warning message you mentioned in the question relates to the presence of a parameterized link in your model.
In this case, to remove a parametrized link, you can either update the library block or resync the linked block with the library block. These are the 'Push' and 'Restore' options (respectively), that you see in the Diagnostic Viewer.
To find the source of this warning, compare the parameters in the library block to those in the linked block. It is possible that you are trying to modify a parameter of the linked block that is given a specific numeric value in the library block. If this is the case, consider modifying the library block parameter, such that the parameter takes its value from a variable instead. You can then define the variable's value in the model workspace or mask workspace. This will allow you to modify the values of parameters in the linked block without running into the aforementioned warning.
Hope this helps!
0 Comments
More Answers (0)
See Also
Categories
Find more on Custom Libraries in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!