FMIKit-Simulink 常见问题解决方案

  1. 将解压后的文件夹添加到 MATLAB 路径中:

    addpath(fullfile(pwd, 'FMIKit-Simulink-3.1'));
    
  2. 初始化 FMIKit:

    FMIKit.initialize();
    
  3. 设置求解器rtwsfcnfmi.tlc、或grtfmi.tlc再Ctrl+B即可。

  4. 帮助文档可查看导出FUM和导入FMU。
    FMIKit-Simulink-3.1\html\index.html这个文件夹下

  5. 问题: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

    这个问题是不是模型原始就已经不能运行。

  6. 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。

  7. 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

相关推荐
听星3 个月前
联合仿真(FMI,FMU)资料收集
仿真·fmi·fmu