Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

scicos newbie question: when i loop back simulation fails with message "algebraic loop"

321 views
Skip to first unread message

schuffe

unread,
Dec 3, 2009, 5:51:06 PM12/3/09
to
Hi,

any advice for my newbie question would be appreciated. here is what i
do,
sine wave generator ==> summation (+) ==> gain ==> POINT A
from Point A i connect back to summation and to a plot block.
Simulation
comes up with error "algebraic loop". what is wrong?

Thanks,
Schuffe

Serge Steer

unread,
Dec 9, 2009, 12:57:50 PM12/9/09
to
schuffe a �crit :


to understand the problem suppose that the output of summation (+) is
the variable y at point A the signal value is gain*y so the second input
of summation is gain*y and the outut of summation is sin(t)+gain*y and
it should be equal to y. It is the reason why you got an "algebraic
loop" error. In this simple case it should be solved by the simulator
(or manually with y=sin(t)/(1-gain)) but in many cases such algebraic
loops may be costly or impossible to solve.

RRogers

unread,
Dec 10, 2009, 9:15:39 AM12/10/09
to

Try inserting some delay in the closed loop you have; say in the gain
block or possibly in the "connect back". You are asking a dynamic
simulator to solve a DC recursion.
You should be able to make it small enough not to matter. In fact
there should be some in the gain anyway in a dynamic system.
You might also write out the algebra and solve the recursion (i.e. y=f
(input,y)-> y=g(input)) by hand and then use that as the output block.

0 new messages