simulink FMU export fail
17 ビュー (過去 30 日間)
古いコメントを表示
I attempted to export an Standalone FMU from Simulink environment, but encountered the following error: "[an installation of Microsoft Visual C++ 2017 cannot be detected]".
I tried installing Microsoft Visual C++ 2015-2020 package, restarted the PC, and retried, but encountered the same error. Installing C++ 2017 separately and retrying also resulted in the same error.
I even tried with a simple model (consisting of only one ramp block and one sum block), suspecting a Simulink model issue, but the error persisted.
I would like to inquire about possible solutions to this problem.
diagnosis viewer text :
Setting ExportedContent to 'off'. Option to export archived project is not supported if Generate32BitDLL is 'on'. Setting CreateModelAfterGeneratingFMU to 'off'. CreateModelAfterGeneratingFMU option is not supported if Generate32BitDLL is 'on'. 'GenCodeOnly' is disabled for Co-Simulation Standalone FMU Export. Setting System Target to FMU Co-Simulation for model 'ex_26_fchev_simulink'. Setting Hardware Implementation > Device Type to 'MATLAB Host' for model 'ex_26_fchev_simulink'. Generating 32-bit MSVC toolchain.
An installation of Microsoft Visual C++ 2017 cannot be detecte
0 件のコメント
回答 (1 件)
Angelo Yeo
2024 年 6 月 20 日
編集済み: Angelo Yeo
2024 年 6 月 20 日
(1) What's your output when you run the command below? Can MATLAB detect Visual Studio C++ 2017 with the following command?
mex -setup cpp
(2) If MATLAB cannot detect Visual Studio 2017, please refer to the following Answers page for a official guideline for installation. Note that MATLAB/Simulink only support Community (free), Professional, and Enterprise edition of Visual Studio. (Express, Build Tools, and Preview editions are not supported.)
3 件のコメント
参考
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!