Error while running Motion-Solve FMU model in Simulink

6 次查看(过去 30 天)
Hello,
I would like to run Motion-Solve model(Altair) via Simulink using FMU model. I used FMU import in Simulink and then run the model with scope in the output.
The error showed in the log file is:
# Debug Logging enabled for block 'untitled/FMU'
Log from FMU: [category:log, status:fmi2Error]
Error: Failed to load mscicos.dll

采纳的回答

Anurag Ojha
Anurag Ojha 2023-6-6
Hello Maor,
Based on the error message, it seems that there is an issue with loading the required mscicos.dll file for the Motion-Solve solver when running the FMU model in Simulink. This can occur for various reasons, but there are a few steps you can take to troubleshoot and resolve this issue:
  1. Make sure that the mscicos.dll file is present in the same directory as the FMU file. You can check this by navigating to the folder containing the FMU file and ensuring that the mscicos.dll file is present there.
  2. Try adding the directory containing the mscicos.dll file to the system's PATH variable. This can be done by following the steps outlined in this article: https://www.architectryan.com/2018/03/17/add-to-the-path-on-windows-10/
  3. If none of the above step's work, try reinstalling the Motion-Solve software.
For more information refer to following MATLAB documentation:
Hope it helps!
  2 个评论
Maor Kletter
Maor Kletter 2023-6-11
Hey, Thanks for your elaborate answer.
Regard section 1 mscicos.dll is located in where Motion-Solve is installed motionsolve\bin\win64. I cannot copy it to other directory as you suggested. Please explaine again what should I do in section 1.
Maor Kletter
Maor Kletter 2023-6-12
Thank you what you recommended in section 2 of your answer(Try adding the directory containing the “mscicos.dll” file to the system's PATH variable) solved my problem an now it is works!

请先登录,再进行评论。

更多回答(0 个)

产品


版本

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by