Error while running Motion-Solve FMU model in Simulink

6 views (last 30 days)
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

Accepted Answer

Anurag Ojha
Anurag Ojha on 6 Jun 2023
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 Comments
Maor Kletter
Maor Kletter on 11 Jun 2023
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 on 12 Jun 2023
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!

Sign in to comment.

More Answers (0)

Products


Release

R2023a

Community Treasure Hunt

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

Start Hunting!