How do I troubleshoot FMU Import issues in Simulink?

37 ビュー (過去 30 日間)
MathWorks Support Team
MathWorks Support Team 2022 年 11 月 14 日
編集済み: MathWorks Support Team 2023 年 6 月 6 日
I am using an FMU block to import a third-party functionality into Simulink. I run into errors or MATLAB crashes during the import workflow. How can I debug FMU import issues in Simulink?

採用された回答

MathWorks Support Team
MathWorks Support Team 2023 年 6 月 6 日
Imported FMUs in Simulink can cause failures for different reasons. Here are some common troubleshooting tips that will help in the debug process:
  1. Verify that the FMU simulates without any errors or issues in the third-party that was used to create it.
  2. In the FMU block, select the Enable FMU Debug Logging checkbox in the 'Simulation' tab to see a more descriptive error. 
  3. The following “Advanced” diagnostic parameter prevents a MATLAB crash (“out-of-process mode”) in some cases:
  4. Use the FMU Compliance checker. This tool can help determine if the issue stems from the generated FMU not adhering to standards (i.e. an issue from a third-party tool) or with MathWorks tools. https://github.com/modelica-tools/FMUComplianceChecker/releases
  5. Check that the “Communication step size” is compatible with the model: https://www.mathworks.com/help/simulink/ug/implement-an-fmi-block.html#mw_f1a9abe7-d7ed-4696-8c46-42c72d74ba83

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeCreate Standalone FMU についてさらに検索

製品

Community Treasure Hunt

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

Start Hunting!

Translated by