Project export error while generating code using Simulink Coder Twincat target

조회 수: 26 (최근 30일)
Huy Hoang Duc
Huy Hoang Duc 2024년 8월 14일
답변: Pratyush 2024년 8월 16일
I am experimenting creating a Simulink model for TwinCAT 3 but when generating the Simulink code it keeps showing the following error:
The call to TwinCatGrt_make_rtw_hook, during the after_make hook generated the following error: Project export failed The build process will terminate as a result.
Caused by:
  • Project export failed
I looked on the internet and seems there are only guides for fixing preparing projects but none for fixing project export. Does anyone know how to fix this error?

답변 (1개)

Pratyush
Pratyush 2024년 8월 16일
Hi Huy,
To resolve the "Project export failed" error in Simulink for TwinCAT 3, try the following steps:
  • Ensure your versions of TwinCAT 3 and MATLAB/Simulink are compatible.
  • Verify that your Simulink model is correctly configured for TwinCAT.
  • Check your TwinCAT project settings and dependencies.
  • Confirm all necessary licenses are active and configured.
  • Review detailed error logs for specific issues.
  • Ensure both MATLAB/Simulink and TwinCAT are up to date.
  • Consider recreating the TwinCAT project if the problem persists.
These steps should help identify and resolve the error.

카테고리

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