Invalid Simulink object name: EquivalentModelX

Question:

I am trying to run my model offline and I get the following error:

Invalid Simulink object name : name_of_my_model/powergui/EquivalentModel2.

In the Artemis Guide block, in the State-Space Solver Options tab, when I select "trapezoidal", then it runs fine (with a warning about using native SPS solver but at least it runs). If I select "art5", I get the error.

What can I do?

 

Answer:

This kind of problem (Invalid Simulink object name) is usually related to a SimPowerSystems (SPS) block that is not properly connected to the circuit. The solution is either to delete the block from the model if it's not used or to connect it to the SPS circuit properly.

In the attached model, the simple circuit returns the error. The problem is the GND block. If you delete it, it works. If you drag it somewhere else in the model, you will not see any wire. This means that the block is not attached to the circuit and therefore returns this kind of error. You can attach it properly to the circuit to make it work.

testArtemis0.mdl - Artemis "Invalid Simulink object name" error example model