How to use the live debug tools of simulink (e.g. show value) within intances of a referenced model?
8 次查看(过去 30 天)
显示 更早的评论
I recognized in Matlab 2022A, that the live tools for debugging like "show value" or the highlighted blue state in stateflow, is not as expected. There is a Warning comming up on the top of the Simulink window "This instance of the referenced model does not support all data visualizations. Scopes and port value labels display data for only the instance that has normal mode visibility enabled." By clicking the link inside the warning, I jump into the related instance the values are comming from.
So is this a question of Simulink settings? Is there any workaround (beside using data inspector), to use this wonderful "show value" feature also in several instances of a referenced model?
0 个评论
回答(1 个)
Ayush Anand
2023-9-4
编辑:Ayush Anand
2023-9-18
Hi Thorsten,
The warning message you encountered in MATLAB r2022a regarding the limited support for data visualizations in referenced models is not a Simulink setting issue. It is a limitation of the current version of Simulink, and it affects the "show value" feature and other live debugging tools when working with multiple instances of a referenced model.
As mentioned in the warning message, the data visualizations, such as scopes and port value labels, only display data for the instance that has normal mode visibility enabled. This means that the live tools will only show values for the active instance of the referenced model.
At the moment, there is no direct workaround within Simulink to use the "show value" feature simultaneously in multiple instances of a referenced model. The issue has already been brought into attention and the MathWorks technical team will be looking into it.
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Simulink Functions 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!