Command line output for Stateflow actions in R2016b
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
Dima Sokolovskyy
le 3 Jan 2017
Réponse apportée : Brandon Eidson
le 6 Jan 2017
In the past, I've used the unsuppressed command line output to debug logic and transition actions in Stateflow. It would be enough to simply leave off a semicolon off a line of code in a transition for the result to be displayed in the Matlab command window. Using specific functions such as printf (in C charts) and disp/fprintf (in Matlab charts) also worked, specifically when actions in Stateflow used external C variables that couldn't be inspected using normal Stateflow GUI tools. It appears, however, that this changed in R2016b - I can't seem to be able to generate any command window output from my Stateflow logic. Was this functionality intentionally removed or otherwise disabled? Is there another way for me to display the values of C variables that I use in a Stateflow chart? I'm specifically interested in displaying values of C strings, since Simulink/Stateflow in R2016b doesn't have string data types.
0 commentaires
Réponse acceptée
Brandon Eidson
le 6 Jan 2017
Hey Dima, as of R2016b, these outputs now show up in the Diagnostic Viewer rather than the Command Window.
If you have a use case where it is more advantageous to have these displayed in the Command Window, I would suggest you directly contact MathWorks Technical Support to discuss. Having access to Technical Support is one of the advantages of maintaining a Software Maintenance Service subscription, which you have.
0 commentaires
Plus de réponses (0)
Voir également
Catégories
En savoir plus sur Complex Logic dans Help Center et File Exchange
Produits
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!