Why is the custom code include information not copied when copying a chart in Stateflow 7.0 (R2007b)?

조회 수: 1 (최근 30일)
I have included custom C-code into my Stateflow chart and entered the include information in 'Tools -> Open Simulation Target -> Custom Code'. After copying my chart to another model, the include fields are left blank and I have to manually enter the include information again, to avoid errors during simulation.

채택된 답변

MathWorks Support Team
MathWorks Support Team 2009년 6월 27일
Stateflow 7.0 (R2007b) does not allow automatic copying of include fields inside the custom code when copying a Stateflow chart. This is because include paths/files, etc are part of the target specifications and are not part of the chart.
To work around this issue, you will need to explicitly copy the S-fun target object via Model explorer.

추가 답변 (0개)

카테고리

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

제품


릴리스

R2007b

Community Treasure Hunt

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

Start Hunting!

Translated by