How do I change the Enable debugging/animation option within the Simulation Target using the Stateflow API?

2 views (last 30 days)

Accepted Answer

MathWorks Support Team
MathWorks Support Team on 8 Jul 2009
rt=sfroot;
m=rt.find('-isa','Stateflow.Machine');
x = m.find('-isa','Stateflow.Target');
x.setCodeFlag('debug',1); - to enable debugging/animation
x.setCodeFlag('debug',0); - to disable debugging/animation

More Answers (0)

Categories

Find more on Simulation in Help Center and File Exchange

Products


Release

R2007b

Community Treasure Hunt

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

Start Hunting!