What does this Simulink Modelerror "Compiling the model failed : mech2 InvalidReplacement" mean (and what can I do about it)?

2 次查看(过去 30 天)
I've been running a Simscape Multibody model for the past several weeks slowly adding functionality. This morning my model ran successfully but now after making mostly cosmetic changes (renamed a few blocks, added a couple of scopes, and changed a hard coded parameter to a variable name from the workspace) I am getting this error when updating the diagram:
Compiling the model failed : mech2 InvalidReplacement
None of the blocks in my model are highlighted to indicate where the problem lies. I don't have any variables or blocks named "mech2" and I can't find any reference to this error online. What is this error trying to tell me?
Dan

回答(1 个)

Arnav Mendiratta
Arnav Mendiratta 2017-3-3
This error is very generic and happens during compilation of some Simscape blocks where Simulink tries to replace a certain block during compilation phase and it is unable to verify all the connections.
If you have access to MathWorks' Software Maintenance Service, you can reach out to the Technical Support with your model and they would be able to help you figure out cause of this behavior.

类别

Help CenterFile Exchange 中查找有关 Simulation and Analysis 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by