Effacer les filtres
Effacer les filtres

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

3 vues (au cours des 30 derniers jours)
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?

Réponses (1)

Ayush Anand
Ayush Anand le 4 Sep 2023
Modifié(e) : Ayush Anand le 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!

Catégories

En savoir plus sur Model References dans Help Center et File Exchange

Produits


Version

R2022a

Community Treasure Hunt

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

Start Hunting!

Translated by