+7 votes
483 views
by Dimitrije Jelic (22 points)

I have a simple model consisting of an Integrator and Comparator components, as presented in the Figure below:

However, when I try to compile the model, I get the following error:

Validation was not completed successfully!

Algebraic loop detected:

1) Integrator

2) Comparator

1 Answer

+1 vote
by Dimitrije Jelić (404 points)
selected by Dimitrije Jelić
 
Best answer

Greetings,

As explained in the documentation, an Algebraic loop is a set of components that form a loop where an output of each component is connected to a direct feedthrough input of the next one. In the case of the model in the figure you attached, the Integrator and comparator ports are both direct feedthrough and, as such, form an algebraic loop.

To fix this, a simple Unit delay component should be added between the Integrator and the comparator.

...