# [Scilab-users] Xcos Loudspeaker simulation Algebraic loop and Bode plot

```Good morning,

I'm attempting to make a Xcos version of a Simulink model of a loudspeaker
that I found on  Daniel San AusÃ­n's Thesis (page 8)
<https://upcommons.upc.edu/bitstream/handle/2099.1/26644/Master%20Thesis%20-%20Daniel%20Sanz%20Ausin.pdf>

. Please see the attached file for the signal flow chart.```
```

It's "quite simple", just additions and multiplications.
The parameters Le, Re, Bl, Mms, Rms, Cms are the  Thiele & Small
<https://en.wikipedia.org/wiki/Thiele/Small_parameters>   parameters of a
loudspeaker (it's just floating values).
The input voltage can be a sinus, a noise or whatever.

I'm getting a message error "Algebraic loop".
Do you know how to solve that ? I think it can be a problem in the
simulation setup as I'm new to Scilab/Xcos.

Here is the Xcos diagram:  linear_LS.zcos
<http://mailinglists.scilab.org/file/t497760/linear_LS.zcos>

I'm also trying to display the Bode plot at different stages of the diagram
that's why I'm using the CPGE toolbox.

If you have an idea to solve the problem, feel free to contact me.

I'll also try a different approach with the state-space bloc.

--
Sent from:
http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
_______________________________________________
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users
```