matlab2008b stateflow generation code

Hi, I've changed the matlab version from R13 to 2008b. I've got a matlab stateflow project with model library and external c file included. In R13 I've no problem to generate the code but in 2008b I must have a compiling project to generate code. Is it mandatory or is it just an option I missed ?

답변 (2개)

Kaustubha Govind
Kaustubha Govind 2012년 3월 15일

0 개 추천

You need to check the "Generate code only" box on the Configuration Parameters>Real-Time Workshop pane of the model. Try Ctrl+E on the model to open the Configuration Parameters window.
Dalmais Romain
Dalmais Romain 2012년 3월 15일

0 개 추천

thanks, but when I do that I obtain a lot unresolved link like :"Unresolved function 'COMMIT_NAMETAGS' in state prompt_id (#732)" in the R13 it was no problem. Has it change ? Is it mandatory to stub the input/output to generate code?

댓글 수: 1

Kaustubha Govind
Kaustubha Govind 2012년 3월 16일
Hmm - my guess is that this error is occurring at model update time itself (Ctrl+D), which happens even before code-generation. I didn't know that R13 differed in this behavior. In any case, it does look like you need to stub this function, especially if you are using that function at simulation time also.

댓글을 달려면 로그인하십시오.

카테고리

도움말 센터File Exchange에서 Decision Logic에 대해 자세히 알아보기

제품

질문:

2012년 3월 15일

Community Treasure Hunt

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

Start Hunting!

Translated by