-
將解壓后的文件夾添加到 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?