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