I find an error when execute FCW system tutorial when compile the application into a MEX function.

1 回表示 (過去 30 日間)
Hello, when follow the instruction with the link Forward Collision Warning Application with CAN FD and TCP/IP - MATLAB & Simulink Example (mathworks.com), I have the Error like the following , can anyone help me to fix the 'codegen' function in the file.
>> openExample('vnt_driving/ExecutingAForwardCollisionWarningApplicationWithLiveDataExample')
>> helperGenerateCode('mex')
Configured to generate trackingForFCW_kernel_mex.mex64.
Incorrect number or types of inputs or outputs for function 'codegen'.
Error in helperGenerateCode (line 42)
codegen -config coderConfig trackingForFCW_kernel -args compInputs

回答 (1 件)

Dhruv
Dhruv 2024 年 5 月 28 日
It appears you are utilizing the example "Forward Collision Warning Application with CAN FD and TCP/IP." The issue you are encountering could stem from missing prerequisites. This particular example necessitates the following toolboxes:
  • Automated Driving Toolbox
  • Instrument Control Toolbox
  • Vehicle Network Toolbox
Please verify that these toolboxes are available within your licensed account. If they are not, I recommend visiting the corresponding links below to learn more about them:
I hope this information helps resolve the issue!
  1 件のコメント
ZHENG ZE ZHU
ZHENG ZE ZHU 2024 年 5 月 30 日
Thank you for your reminder. I have confirmed that all the toolboxes have been installed in my MATLAB R2023a. However, it isn't working.

サインインしてコメントする。

カテゴリ

Help Center および File ExchangeIntroduction to Installation and Licensing についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by