Custom Simulink code fails to compile moving from 2014a to 2016a

조회 수: 1 (최근 30일)
Dennis
Dennis 2016년 5월 14일
편집: Dennis 2016년 5월 15일
Hi, my custom code integration working in Simulink 2014a does not work anymore with the same settings and same compiler in 2016a. What I did:
I used Simulink Coder to generate C Code from a Simulink Model and ran it with coder.ceval in another Simulink System inside a Matlab Function Block (various reasons to do so, working perfectly).
I included the model, model_data, and my own "caller function" .h and .c in the Simulink options (twice at both possible options). Ìnside my caller function, I #Included the model.h and model_data.h again (it was not working without this). Moving from 2014a to 2016a though, it does not work anymore. Although I coded the Simulink model again with the 2016a Coder version to make sure all Matlab types are correct for Version 2016, the exact same implementation and settings do not work anymore. The only further hint I have is:
  • Compilation Error: "test_ceval_simulation_sfun.c c:\program files\matlab\r2016a\extern\include\tmwtypes.h(788): fatal error C1083: File (Include) cannot be opened: "stddef.h": No such file or directory"
What do you guys think? Did you ever successfully did "model.slx -> c code -> run in another model" in 2016a?
Thanks for your answers in advance!

답변 (0개)

카테고리

Help CenterFile Exchange에서 Simulink Coder에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by