Command line output for Stateflow actions in R2016b
6 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Dima Sokolovskyy
el 3 de En. de 2017
Respondida: Brandon Eidson
el 6 de En. de 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 comentarios
Respuesta aceptada
Brandon Eidson
el 6 de En. de 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 comentarios
Más respuestas (0)
Ver también
Categorías
Más información sobre Complex Logic en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!