Variant Subsystems control by Model Workspace variables?
3 次查看(过去 30 天)
显示 更早的评论
Dear Community,
does there exist a way to use Model Workspace variables instead of Base Workspace variables for variant control?
I would like to avoid using callbacks for variant override.
I wonder why hierarchical symbol resolution ( http://blogs.mathworks.com/seth/2009/02/15/where-does-that-variable-come-from/ ) does not apply for variant control ...
Best regards,
Tilman
4 个评论
Markus
2021-2-19
I agree to the above. I would also prefer to have Simulink Variant objects in the model workspace.
Lee
2022-1-25
Where is this limitation even mentioned in the documentation? I don't understand why variables referenced by variant control conditions would need to be present in a specific workspace. Furthermore, even after moving said variables into the base workspace, Simulink throws an error as it's still unable to evaluate logical expressions such as 'and' or '|' or 'not'
回答(2 个)
Mobashar Ahmad
2019-10-28
Any updates on this? i would also like to use the Model Workspace to manage the variants control variables.
1 个评论
Markus
2020-6-24
Same here. These make more sense in the model workspace anyway.
Any update from a staff member?
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Programmatic Model Editing 的更多信息
产品
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!