Header file error in simulink

An error occurs when I try to build and deploy my simulink code to a lego mindstorm robot
My error says:
Error(s) encountered while building "filename"
Caused by:
  • The compiler error indicates that a type is redefined. Tjis error can occur if your costum code includes the header file tmwtypes.h instead of rtwtypes.h. For information about using the directive #include "tmwtypes.h" in costume code, refer to the documentation. Alternatively, specify backwards compatibility for your model by running set_param('filename', 'InterredTypesCompatibility', 'on'.
Component: Simulink | Category: Block diagram error
It seemes that something goes wrong when saving the file, but I'm not sure. I also tried to update MATLAB, because I thought the missing update might help if it's a bug, but I got an error message threre aswell (which referd me to the ask community site).
I'd appreciate any help:)

댓글 수: 1

did you run ?
set_param('filename', 'InterredTypesCompatibility', 'on')
In above case filename is not variable what is your filename?

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

답변 (0개)

카테고리

도움말 센터File Exchange에서 LEGO MINDSTORMS EV3 Hardware에 대해 자세히 알아보기

제품

릴리스

R2021a

질문:

2021년 10월 12일

댓글:

2021년 10월 12일

Community Treasure Hunt

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

Start Hunting!

Translated by