Command line output for Stateflow actions in R2016b

6 views (last 30 days)
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.

Accepted Answer

Brandon Eidson
Brandon Eidson on 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.

More Answers (0)

Categories

Find more on Complex Logic in Help Center and File Exchange

Products

Community Treasure Hunt

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

Start Hunting!