What is the warning message of "block diagram contains one or more parameterized library links"?

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

采纳的回答

Shivang
Shivang 2023-8-22
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 blockand 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 个)

类别

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

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by