How do I manage the Model configuration parameters when using variant with several system targets ?
3 次查看(过去 30 天)
显示 更早的评论
My objective is to be able to generate the code of a model to several system targets.
By using variant subsystems, I'm able to select the target's specific blocks but not the model configuration parameters.
Is there a way?
0 个评论
采纳的回答
Fangjun Jiang
2022-7-27
You can have multiple model configuration sets saved with the model and switch them. It can be done manully or through API.
5 个评论
Fangjun Jiang
2022-7-29
Indeed, I didn't find a way to link them, not even some type of callback to use the API to switch model configuration.
If you are using later versions, please consider the "sim codegen switching" for "variant conrol mode". You might be able to switch codegen target directly in variants.
R2017b is too old. It doesn't have this capability.
Search "sim codegen switching" at this link
更多回答(0 个)
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Manage Variant Modeling Components 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!