From: ashish singh on
"Sripati Sah" <ssah_itbhu(a)yahoo.com> wrote in message <h5v36s$nbe$1(a)fred.mathworks.com>...
> Hi Seema,
>
> Did you find a solution to this problem? I have a similar problem when trying to update a transfer function based on plant output.
>
> Regards,
> Sri
>
> "Seema " <seema_mathew47(a)rediffmail.com> wrote in message <h0ijl7$84g$1(a)fred.mathworks.com>...
> > Hi all,
> >
> > I have written an M-file level 2 S-function, with two inputs. One input is fed back from the output. I keep getting the error ' Trouble solving algebraic loop containing 'motorposition' at time 0.Stopping simulation.There may be a singularity in the solution.If the model is correct, try reducing step size.'
> > I tried to remove the algebraic loop by making the S function an Atomic Subsystem and enbling the minimize algebraic loops. I know the problem must be with the S function, but cant understand what?
> > me also having the same error being displayed............
if u got the solution plzz help me out also, as i have stuck in that
one solution was to change the type of solver to fixed step and ODE4 .
but i dont think the results are correct.