How do I change the Enable debugging/animation option within the Simulation Target using the Stateflow API?
2 views (last 30 days)
Show older comments
I would like to change the Enable debugging/animation option within the Simulation Target using the Stateflow API.
Accepted Answer
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
0 Comments
More Answers (0)
See Also
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!