Command line output for Stateflow actions in R2016b

조회 수: 12 (최근 30일)
Dima Sokolovskyy
Dima Sokolovskyy 2017년 1월 3일
답변: Brandon Eidson 2017년 1월 6일
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.

채택된 답변

Brandon Eidson
Brandon Eidson 2017년 1월 6일
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개)

카테고리

Help CenterFile Exchange에서 Complex Logic에 대해 자세히 알아보기

제품

Community Treasure Hunt

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

Start Hunting!

Translated by