Project export error while generating code using Simulink Coder Twincat target

21 ビュー (過去 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 Center および File ExchangeSimulink Coder についてさらに検索

Community Treasure Hunt

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

Start Hunting!

Translated by