algebraic loop

classic Classic list List threaded Threaded
3 messages Options
Bruno Chaumontet Bruno Chaumontet
Reply | Threaded
Open this post in threaded view
|

algebraic loop

hi,

i'm using scilab scicos 4.2 : wonderfull
unfortunatly i want to use a recursive form
s(t)=e(t)+s(t-1)
for this, i use a sample and hold and a loop

and i get an error "algebraic loop"

i understand, but how can i simulate this recursive form ?

thanks a lot

--
Bruno Chaumontet
http://bruno.chaumontet.net
[hidden email]

Cordero R. Cordero R.
Reply | Threaded
Open this post in threaded view
|

Re: algebraic loop

Dear Mr. Chaumontet
I recommend you to use a Z transform.
s(t) = s(t-1) + e(t) -> S(z) = S(z)*(1/z) + E(z) -> S(z) = (z/(z-1))*E(z)
Use the discrete transfer function of SCICOS, where e(t) is the input and s(t) is the output.
Don't forget to select an appropiate sample time.
Good luck.
Raymundo Cordero
PerĂº
Bruno Chaumontet Bruno Chaumontet
Reply | Threaded
Open this post in threaded view
|

Re: algebraic loop

thanks a lot

2008/1/7, Cordero R. <[hidden email]>:
> Dear Mr. Chaumontet
> I recommend you to use a Z transform.
> s(t) = s(t-1) + e(t) -> S(z) = S(z)*(1/z) + E(z) -> S(z) = (z/(z-1))*E(z)
> Use the discrete transfer function of SCICOS, where e(t) is the input and
> s(t) is the output.
> Don't forget to select an appropiate sample time.
> Good luck.
> Raymundo Cordero
> PerĂº


--
Bruno Chaumontet
http://bruno.chaumontet.net
[hidden email]