<div style="color:#000; background-color:#fff; font-family:HelveticaNeue, Helvetica Neue, Helvetica, Arial, Lucida Grande, sans-serif;font-size:10pt"><div><span>Bonjour et Merci</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>J'ai pris note de votre message mais je n'ai pas eu encore assez de temps pour m'y pencher sérieusement. </span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div
 style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Néanmoins je pense que je dois commettre un autre type d'erreur due à ma méconnaissance du logiciel. Car en plus des petits écarts, j'obtiens parfois des résultats très surprenants lorsque j'essaie d'utiliser un correcteur PID. Les résultats sous Xcos et Scilab sont trop différents.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Je me permets de vous joindre le fruit de ma
 réflexion actuelle sous la forme de fichiers xcos et Scilab, ainsi qu'une petite note explicative. Je n'ai nullement l'intention de vous faire travailler à ma place, mais peut être que vous verrez instantanément ce qui ne va pas.</span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span>Le point de départ était de faire étudier des fonctions de transfert avec correcteurs PID mais je voulais épargner aux étudiants le code scilab et donc utiliser la version "graphique" en utilisant Xcos et ses schémas blocs. Mais actuellement je suis un peu bloqué.</span></div><div style="color:
 rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Cordialement</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><br></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;">Noel DEMISSY</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande',
 sans-serif; background-color: transparent; font-style: normal;">Enseignant.</div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div style="color: rgb(0, 0, 0); font-size: 13px; font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: transparent; font-style: normal;"><span><br></span></div><div><br></div>  <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 10pt;"> <div style="font-family: HelveticaNeue, 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12pt;"> <div dir="ltr"> <hr size="1">  <font size="2" face="Arial"> <b><span style="font-weight:bold;">De :</span></b> Serge Steer [via Scilab / Xcos - Mailing Lists Archives]
 <<a href="/user/SendEmail.jtp?type=node&node=4028652&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>><br> <b><span style="font-weight: bold;">À :</span></b> noelec57 <<a href="/user/SendEmail.jtp?type=node&node=4028652&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>> <br> <b><span style="font-weight: bold;">Envoyé le :</span></b> Vendredi 14 février 2014 14h39<br> <b><span style="font-weight: bold;">Objet :</span></b> Re: Scilab vs Xcos<br> </font> </div> <div class="y_msg_container"><br><div id="yiv5724510600">

        Le 09/02/2014 16:14, noelec57 a écrit :
<div class="yiv5724510600shrinkable-quote"><div class='shrinkable-quote'><br>> Bonjour
<br>>
<br>> Je rejoins en tant qu'enseignant les utilisateurs de Scilab et Xcos. Pour le
<br>> moment j'essaie de l'utiliser pour la modélisation de systèmes asservis
<br>> continus avec PID. Je suis parvenu à obtenir la réponse de mon système en
<br>> utilisant Xcos (mode graphique) et scilab (ligne de code). Malheureusement
<br>> le même système étudié avec la même fonction de transfert ne fournit pas
<br>> exactement la même réponse. Par exemple, j'ai cherché le point d'instabilité
<br>> avec la méthode Ziegler Nichols. j'obtiens deux valeurs différentes de gain
<br>> critique. Idem, l'application d'un PID avec les mêmes valeurs ne fournit pas
<br>> la mêe réponse( variation d'environ 10% !!).
<br>>
<br>> Je ne parviens pas à trouver la raison de cette différence.
<br>>
<br>> A titre d'exemple, avec la fonction de transfert en BO suivante :  60 /
<br>> (1+8*s) * (1+2*s) * (1+s)
<br>>
<br>> le système en BF à retour unitaire  provoque des oscillations stables dans
<br>> un cas avec un gain critique de 0,281 sous scilab et 0,287 sous xcos.
</div>Vous ne dites pas comment vous avez obtenu ces deux valeurs. pour 
</div>calculer la valeur du gain critique vous pouvez utiliser la fonction 
<br>kpure de Scilab
<br>h=60 /((1+8*%s) * (1+2*%s) * (1+%s));
<br>Ki=kpure(h)  //->0.28125
<br>//Vérification
<br>H=(Ki*h) /.(1.0);
<br>roots(H.den)
<br><br>Si sous Xcos vous avez obtenu ce gain par simulation il faut savoir que 
<br>l'integration numérique repose sur des tolérances. Dans xcos ces 
<br>tolérances sont par défaut "tolérantes". pour améliorer la précision des 
<br>résultats vous devez spécifier des tolérance absolue et relatives plus 
<br>strictes (menu: Simulation/Configurer)
<div class="yiv5724510600shrinkable-quote"><div class='shrinkable-quote'><br>>   
<br>> Peut être que quelqu'un peut me dire, lequel des deux résultats je dois
<br>> prendre et surtout pourquoi cet écart ?
<br>>
<br>> Merci.
<br>>
<br>>
<br>>
<br>> --
<br>> View this message in context: <a rel="nofollow" target="_blank" href="http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555.html" link="external">http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555.html</a><br>> Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
<br>> _______________________________________________
<br>> users mailing list
<br>> <a rel="nofollow" href="" target="_top" link="external">[hidden email]</a>
<br>> <a rel="nofollow" target="_blank" href="http://lists.scilab.org/mailman/listinfo/users" link="external">http://lists.scilab.org/mailman/listinfo/users</a></div></div>_______________________________________________
<br>users mailing list
<br><a rel="nofollow" href="" target="_top" link="external">[hidden email]</a>
<br><a rel="nofollow" target="_blank" href="http://lists.scilab.org/mailman/listinfo/users" link="external">http://lists.scilab.org/mailman/listinfo/users</a><br>

        
        
        
        <br>
        <br>
        <hr noshade="" size="1" color="#cccccc">
        <div style="color: rgb(68, 68, 68); font-style: normal; font-variant: normal; font-weight: normal; font-size: 12px; line-height: normal; font-family: tahoma, geneva, helvetica, arial, sans-serif;">
                <div style="font-weight:bold;">If you reply to this email, your message will be added to the discussion below:</div>
                <a rel="nofollow" target="_blank" href="http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555p4028640.html" link="external">http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555p4028640.html</a>
        </div>
        <div style="color: rgb(102, 102, 102); font-style: normal; font-variant: normal; font-weight: normal; font-size: 11px; font-family: tahoma, geneva, helvetica, arial, sans-serif; margin-top: 0.4em; line-height: 1.5em;">
                
                To unsubscribe from Scilab vs Xcos, <a rel="nofollow" target="_blank" href="" link="external">click here</a>.<br>
                <a rel="nofollow" target="_blank" href="http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml" style="font-style: normal; font-variant: normal; font-weight: normal; font-size: 9px; line-height: normal; font-family: serif;" link="external">NAML</a>
        </div></div><br><br></div> </div> </div>  </div><!--start-attachments--><div class="small"><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>Scilab vs Xcos.doc</strong> (374K) <a href="http://mailinglists.scilab.org/attachment/4028652/0/Scilab%20vs%20Xcos.doc" target="_top" rel="nofollow" link="external">Download Attachment</a><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>systeme_C_ZN.xcos</strong> (90K) <a href="http://mailinglists.scilab.org/attachment/4028652/1/systeme_C_ZN.xcos" target="_top" rel="nofollow" link="external">Download Attachment</a><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>systeme_PID.xcos</strong> (187K) <a href="http://mailinglists.scilab.org/attachment/4028652/2/systeme_PID.xcos" target="_top" rel="nofollow" link="external">Download Attachment</a></div><!--end-attachments-->

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Scilab-vs-Xcos-tp4028555p4028652.html">Re: Scilab vs Xcos</a><br/>
Sent from the <a href="http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html">Scilab users - Mailing Lists Archives mailing list archive</a> at Nabble.com.<br/>