Clear Filters
Clear Filters

How to use the live debug tools of simulink (e.g. show value) within intances of a referenced model?

3 views (last 30 days)
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?

Answers (1)

Ayush Anand
Ayush Anand on 4 Sep 2023
Edited: Ayush Anand on 18 Sep 2023
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!

Categories

Find more on Model References in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

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

Start Hunting!