What is algebraic Loop? When it Occurs in Xcos? How to Overcome it?

I am extending a Proportional Controller using Scilab SBHS to a controller based on user-defined controller and coded using Scilab functions. When I am executing the same I get an error called as algebraic Loop? I want the remedy for same.

Secondly, I want to use the user-defined function as a controller in Function inside the function. How is it to be implemented?

Scilab 31-08-18, 1:39 p.m. arundsonar21
The algebraic loop error in Xcos can be solved by adding a small delay in the feedback path.
If this doesnt solve it, it will be great if you share the simulation files (for example via google drive) and pin-point to a particular case of interest.
31-08-18, 3:27 p.m. rupakrokade

Log-in to answer to this question.