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

12 messages
Open this post in threaded view
|

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

 This post was updated on . 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). 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 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.zcosI'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. You can answer in French.  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
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hi FlorentI'm interested in the loudspeaker rmodel (I work in the loudspeaker industry). The Master Thesis you're referencing to, it uses Matlab. Did you get hold of the Matlab files? ... Are you simply taking some inspiration from this Thesis and experimenting with XCOS?I tried to download your zcos file, but it came as a ZIP file. When extracted it contains a few files, but no ZCOS file. Appologies if I'm a lost cause here, since I have no experience with XCOS, even basic stuff might throw me off. Please explain.Best regards,Claus _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hi Claus, No, unfortunately I didn't get the Simulink files. And we don't have Simulink where I'm working. Here is the zcos file  linear_LS.zcos  . I'm new to Xcos too, I started last week. Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hi FlorianI see it's a zcos file, but GMAIL downloads it as a zip file. I just rename it from zip to zcos, and it loads into Scilab. I'll look at it tomorrow. :-)Best regards,ClausOn Tue, Mar 6, 2018 at 8:36 PM, Florent wrote:Hi Claus, No, unfortunately I didn't get the Simulink files. And we don't have Simulink where I'm working. Here is the zcos file  linear_LS.zcos   . I'm new to Xcos too, I started last week. Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 In reply to this post by Florent Hi Team Scilab I wish I could buy this book in English:https://www.d-booker.fr/scilab-2-xcos/112-scilab-xcos.html/ClausI'm new to Xcos too, I started last week. Best regards, Florent _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 In reply to this post by Claus Futtrup Hi FlorianI loaded the zcos file this morning and compared it to Fig. 2.5 in the Master Thesis. It looks like your Re-box is connected before the integrator, which means it becomes omega-dependent. This is not what we normally do. Did you intend it to be this way? I'm not sure this is actually your problem - I'm just trying to help - and clear the path.Best regards,ClausOn Tue, Mar 6, 2018 at 8:40 PM, Claus Futtrup wrote:Hi FlorianI see it's a zcos file, but GMAIL downloads it as a zip file. I just rename it from zip to zcos, and it loads into Scilab. I'll look at it tomorrow. :-)Best regards,ClausOn Tue, Mar 6, 2018 at 8:36 PM, Florent wrote:Hi Claus, No, unfortunately I didn't get the Simulink files. And we don't have Simulink where I'm working. Here is the zcos file  linear_LS.zcos   . I'm new to Xcos too, I started last week. Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hi Claus, I multiplied i(t) by Re in order to match with the equation: Or in an other form: What do you mean be omega-dependent? Is it because in the integration 1/s, s=jw? Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hi FlorianYes, because of the integration. I'm comparing to the source (the thesis), Fig. 2.5.Best regards,ClausOn Wed, Mar 7, 2018 at 5:56 PM, Florent wrote:Hi Claus, I multiplied i(t) by Re in order to match with the equation: Or in an other form: What do you mean be omega-dependent? Is it because in the integration 1/s, s=jw? Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users _______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 Hoo, you're right I did a "copy/paste" mistake... Thanks for notice that. Now I don't get the Algebraic loop error anymore but i cannot display the Bode plot, I need to work on it. Best regards, Florent -- Sent from: http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html_______________________________________________ users mailing list [hidden email] http://lists.scilab.org/mailman/listinfo/users
Open this post in threaded view
|

## Re: Xcos Loudspeaker simulation Algebraic loop and Bode plot

 This post was updated on . In reply to this post by Florent Good morning, Here is an update of my "problem". First of all I had a problem of compatibility between Scilab/Xcos and the toolbox CPGE. Before I was using Scilab 6.0.1 and CPGE Version: 1.6.0. Now, with Scilab 5.4.1 and CPGE Version: 1.5.2, the Bode plot works. But it doesn't give the result expected... For the Displacement vs Frequency, a Low Pass behavior is expected. For the Velocity vs Frequency, a Band Pass behavior is expected. For the Acceleration vs Frequency, a High Pass behavior is expected (similar to the pressure response). And here is what is get: And the file linear_LS_working.zcos-- 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