Error while running Motion-Solve FMU model in Simulink

6 vues (au cours des 30 derniers jours)
Maor Kletter
Maor Kletter le 29 Mai 2023
Commenté : Maor Kletter le 12 Juin 2023
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

Réponse acceptée

Anurag Ojha
Anurag Ojha le 6 Juin 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 commentaires
Maor Kletter
Maor Kletter le 11 Juin 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 le 12 Juin 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!

Connectez-vous pour commenter.

Plus de réponses (0)

Produits


Version

R2023a

Community Treasure Hunt

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

Start Hunting!

Translated by