Unable to generate code for exporting FMU through co-simulation with Adams

7 ビュー (過去 30 日間)
洪宇
洪宇 2023 年 12 月 28 日
コメント済み: 洪宇 2024 年 1 月 9 日
After_ Make hook during rtwsfcnfmi_ Make_ Rtw_ The call to hook generated the following error:
Failed to run CMake generator
The compilation process will be terminated as a result.
Reason:
Failed to run CMake generator
the version of FMU is 3.1
I have installed the CMake software and added the corresponding path to the CMake module in the model settings. I have selected the corresponding compiler and downloaded VS 2017 from my computer
BUT STILL FAIL
WHY?

採用された回答

Aiswarya
Aiswarya 2024 年 1 月 5 日
編集済み: Aiswarya 2024 年 1 月 5 日
I understand that you are getting error while trying to import FMU, specifically during the "rtwsfcnfmi_ Make_ Rtw_" function call. Based on your error message, it seems that the FMI version you are using is 3.1. FMI 1.0 and 2.0 are fully supported in MATLAB and FMI 3.0 support is introduced in MATLAB R2023b. You may refer to the following documentation to know about the features of FMI 3.0 which are supported by the "FMU" block: https://www.mathworks.com/help/simulink/ref_extras/fmu.html#mw_4771c03d-f09b-4ae5-9f79-4eb36a63018e
Hope this helps!

その他の回答 (0 件)

タグ

製品


リリース

R2023b

Community Treasure Hunt

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

Start Hunting!

Translated by