Re: [Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Stéphane Mottelet
In Xcos the results are virtually the same with a plain PID block (with 
the same parameters). The chosen solver (CVODE/BDF) is OK to me.


Le 10/02/2022 à 11:06, Samuel Gougeon a écrit :

Hello,

Le 10/02/2022 à 10:35, Foad Sojoodi Farimani a écrit :
I had initially asked the question here 
 
on xcos Discord channel .
Basically, I want to replicate this SIMULINK tutorial 
 in xcos, and so far you may see the 
.zcox file in the attachment. However, my plots in xcos are quite 
different from the ones in the above YouTube video.



The video is 26mn long, with several versions of the diagram. Which 
version are you addressing?
Wrt to the version at 19:00, why do you skip the 1/s block and adds an 
INTEGRAL_m block in your sent version ?


Regards

___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


--
Stéphane Mottelet
Ingénieur de recherche
EA 4297 Transformations Intégrées de la Matière Renouvelable
Département Génie des Procédés Industriels
Sorbonne Universités - Université de Technologie de Compiègne
CS 60319, 60203 Compiègne cedex
Tel : +33(0)344234688
http://www.utc.fr/~mottelet
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Samuel Gougeon

Le 10/02/2022 à 11:06, Samuel Gougeon a écrit :

Hello,

Le 10/02/2022 à 10:35, Foad Sojoodi Farimani a écrit :
I had initially asked the question here 
 
on xcos Discord channel .
Basically, I want to replicate this SIMULINK tutorial 
 in xcos, and so far you may see the 
.zcox file in the attachment. However, my plots in xcos are quite 
different from the ones in the above YouTube video.



Setting the scope with ymin=0, ymax=1.5 and refresh period = 5 (or 10 or 
20) already helps showing and comparing.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Samuel Gougeon

Le 10/02/2022 à 11:06, Samuel Gougeon a écrit :

Hello,

Le 10/02/2022 à 10:35, Foad Sojoodi Farimani a écrit :
I had initially asked the question here 
 
on xcos Discord channel .
Basically, I want to replicate this SIMULINK tutorial 
 in xcos, and so far you may see the 
.zcox file in the attachment. However, my plots in xcos are quite 
different from the ones in the above YouTube video.



The video is 26mn long, with several versions of the diagram. Which 
version are you addressing?
Wrt to the version at 19:00, why do you skip the 1/s block and adds an 
INTEGRAL_m block in your sent version ?




OK, you have switched the positions of your integral and proportional 
branches.
Are INTEGRAL_m and INTEGRAL_f blocks equivalent? INTEGRAL_f has less 
parameters.


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Samuel Gougeon

Hello,

Le 10/02/2022 à 10:35, Foad Sojoodi Farimani a écrit :
I had initially asked the question here 
 
on xcos Discord channel .
Basically, I want to replicate this SIMULINK tutorial 
 in xcos, and so far you may see the 
.zcox file in the attachment. However, my plots in xcos are quite 
different from the ones in the above YouTube video.



The video is 26mn long, with several versions of the diagram. Which 
version are you addressing?
Wrt to the version at 19:00, why do you skip the 1/s block and adds an 
INTEGRAL_m block in your sent version ?


Regards___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] [question] xcos yielding different result than SIMULINK

2022-02-10 Thread Foad Sojoodi Farimani
I had initially asked the question here

on xcos Discord channel .
Basically, I want to replicate this SIMULINK tutorial
 in xcos, and so far you may see the
.zcox file in the attachment. However, my plots in xcos are quite different
from the ones in the above YouTube video. I suspect it has to do with the
default simulations parameters:

[image: unknown.png]

I would appreciate it if you could help me know how I can adjust the above
parameters or change the solver to get similar results as SIMULINK. Thanks
for your support in advance.

Best,
F.


ex002.zcos
Description: Binary data
___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users