-
将解压后的文件夹添加到 MATLAB 路径中:
addpath(fullfile(pwd, 'FMIKit-Simulink-3.1'));
-
初始化 FMIKit:
FMIKit.initialize();
-
设置求解器rtwsfcnfmi.tlc、或grtfmi.tlc再Ctrl+B即可。
-
帮助文档可查看导出FUM和导入FMU。
FMIKit-Simulink-3.1\html\index.html这个文件夹下 -
问题:The call to grtfmi_make_rtw_hook, during the after_make hook generated the following error: Failed to build FMU The build process will terminate as a result.
Caused by:
Failed to build FMU这个问题是不是模型原始就已经不能运行。
-
Error when creating model reference code generation target for 'SteeringFeelingSimulationPlausi'. System target file (STF) is not declared to be model reference compliant. For more information, refer to the documentation about declaring model reference compliance.
这个是因为你选择的是rtwsfcnfmi.tlc、应该选择grtfmi.tlc。
-
Build duration: 0h 1m 29.551s
The call to grtfmi_make_rtw_hook, during the after_make hook generated the following error: Failed to build FMU The build process will terminate as a result.
Caused by:
Failed to build FMU
FMIKit-Simulink 常见问题解决方案
Ndmzi2024-12-19 16:38