- Load the model that uses the configuration reference.
- Get the active configuration set (which is a reference).
- Create a new configuration set in the model with the same parameters.
Converting a configuration reference to a configuration
11 次查看(过去 30 天)
显示 更早的评论
Is there a way to convert a Simulink configuration reference set to a configuration?
I know that the other direction is facilitated by the Model Explorer. It allows to convert a model configuration to a configuration reference by simply right clicking on the configuration and selecting "Convert to Configuration Reference...". But I can't find a way back.
0 个评论
回答(1 个)
Kartik Saxena
2023-11-21
Hi,
I understand that you want to convert 'Configure Reference' to 'Configure Set'.
In Simulink, a configuration reference is a way to apply the same configuration set across multiple models, ensuring consistency and ease of maintenance. However, once you convert a configuration set to a configuration reference, Simulink does not provide a straightforward built-in method to convert it back to a standalone configuration set within the user interface.
However, you can programmatically create a new configuration set based on the settings from a configuration reference. Here's how you can do it in MATLAB:
The following MathWorks documentation contains detailed information about functions that can be used for this purpose:
3 个评论
Kartik Saxena
2023-12-4
Hi,
You don't need to loop over all the parameters of the configuration set. You can use several functions to copy all the parameters of the configuration at once.
Refer to the MathWorks documentations given below:
- Example of how to do so: https://www.mathworks.com/help/simulink/slref/attachconfigsetcopy.html
- All the functions related to configurations which can be used: https://www.mathworks.com/help/simulink/referencelist.html?type=function&category=configuration-sets&s_tid=CRUX_topnav
I hope this resolves your issue.
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Deployment, Integration, and Supported Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!