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

I would like to change the Enable debugging/animation option within the Simulation Target using the Stateflow API.

 采纳的回答

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 个)

类别

帮助中心File Exchange 中查找有关 Stateflow 的更多信息

产品

版本

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by