<meta http-equiv=Content-Type content="text/html; charset=utf-8">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<!--[if !mso]>
<style>
v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style>
<![endif]-->

<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->




<div class=WordSection1>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Thank you very much for your quick answer.<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'>Cedric<o:p></o:p></span></p>

<p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri","sans-serif";
color:#1F497D'><o:p> </o:p></span></p>

<div style='border:none;border-left:solid blue 1.5pt;padding:0cm 0cm 0cm 4.0pt'>

<div>

<div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0cm 0cm 0cm'>

<p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>De :</span></b><span
style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Clément David-2
[via Scilab / Xcos - Mailing Lists Archives]
[mailto:<a href="/user/SendEmail.jtp?type=node&node=4026328&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>] <br>
<b>Envoyé :</b> jeudi 21 mars 2013 18:00<br>
<b>À :</b> BENSLIMANE Cedric<br>
<b>Objet :</b> Re: Help to set parameters in an Xcos Diagram<o:p></o:p></span></p>

</div>

</div>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='margin-bottom:12.0pt'>Hello Cédric, <br>
<br>
The max integration time interval can be set using the scs_m.props.tol <br>
vector which is documented [1]. <br>
<br>
To set a specific parameter values, define a variable in the diagram <br>
context which is used as dt then set it the right value the <br>
scicos_context struct. <br>
<br>
For more information on setting variable values, take a look at the <br>
"Optimization of a PID" [2] wiki page. <br>
<br>
[1]: <a href="http://help.scilab.org/docs/5.4.0/en_US/scicos_params.html"
target="_top" rel="nofollow" link="external">http://help.scilab.org/docs/5.4.0/en_US/scicos_params.html</a><br>
[2]: <a
href="http://wiki.scilab.org/Xcos/Examples/PID?highlight=%28%">http://wiki.scilab.org/Xcos/Examples/PID?highlight=%28%<br>
scicos_context%29 <o:p></o:p></p>

<div>

<p class=MsoNormal><br>
> I'd like to set  parameters of my scs_m structure for an Xcos Diagram
(see <br>
> attached file) using command lines. <br>
> <br>
> To be specific I'd like to set the following imulation parameters : <br>
> <br>
> - final integration time <br>
> <br>
> - max integration time interval <br>
> <br>
> I want them to be equal to a dt that I already define in my program. I am <br>
> using this code so far : <br>
> <br>
>   <br>
> <br>
>     loadXcosLibs()
importXcosDiagram('C:\STAMPE_3.5\STAMPE_SRC\essai.xcos'); <br>
> <br>
>     typeof(scs_m)          // Diagram
structure <br>
> <br>
>     scs_m.props.tf = dt;          
 // Final integration time <br>
> <br>
>       <br>
> <br>
>     xcos_simulate(scs_m,4); <br>
> <br>
>       <br>
> <br>
> But I don't know what command line to use to set the max step of
integration <br>
> time for my simulation. <br>
> <br>
>   <br>
> <br>
> Also, I'd like to set to dt in the same way the parameters (period, <br>
> iniialization time) of the block "CLOCK_c" which is in my xcos
diagram. <br>
> <br>
> I think I must use something like scs_m.objs.something = dt. <br>
> <br>
>   <br>
> <br>
> I would be very thankful for any help :) essai.xcos <br>
> <<a href="http://mailinglists.scilab.org/file/n4026319/essai.xcos"
target="_top" rel="nofollow" link="external">http://mailinglists.scilab.org/file/n4026319/essai.xcos</a>>
  <o:p></o:p></p>

</div>

<p class=MsoNormal style='margin-bottom:12.0pt'><br>
-- <br>
Clément DAVID <br>
Development Engineer / Account Manager <br>
----------------------------------------------------------- <br>
Scilab Enterprises <br>
143bis rue Yves Le Coz - 78000 Versailles, France <br>
Mobile: +33.6.26.26.51.90 <br>
Phone: +33.2.90.22.78.96 <br>
<a href="http://www.scilab-enterprises.com" target="_top" rel="nofollow" link="external">http://www.scilab-enterprises.com</a><br>
<br>
_______________________________________________ <br>
users mailing list <br>
<a href="/user/SendEmail.jtp?type=node&node=4026322&i=0" target="_top" rel="nofollow" link="external">[hidden
email]</a> <br>
<a href="http://lists.scilab.org/mailman/listinfo/users" target="_top" rel="nofollow" link="external">http://lists.scilab.org/mailman/listinfo/users</a><br>
<br>
<o:p></o:p></p>

<div class=MsoNormal align=center style='text-align:center'>

<hr size=1 width="100%" noshade style='color:#CCCCCC' align=center>

</div>

<div>

<div>

<p class=MsoNormal><b><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'>If you reply to this email, your message will be added to the
discussion below:<o:p></o:p></span></b></p>

</div>

<p class=MsoNormal><span style='font-size:9.0pt;font-family:"Tahoma","sans-serif";
color:#444444'><a
href="http://mailinglists.scilab.org/Help-to-set-parameters-in-an-Xcos-Diagram-tp4026319p4026322.html" target="_top" rel="nofollow" link="external">http://mailinglists.scilab.org/Help-to-set-parameters-in-an-Xcos-Diagram-tp4026319p4026322.html</a>
<o:p></o:p></span></p>

</div>

<div style='margin-top:4.8pt'>

<p class=MsoNormal style='line-height:18.0pt'><span style='font-size:8.5pt;
font-family:"Tahoma","sans-serif";color:#666666'>To unsubscribe from Help to
set parameters in an Xcos Diagram, <a
href="" target="_top" rel="nofollow" link="external">click
here</a>.<br>
<a
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" target="_top" rel="nofollow" link="external"><span
style='font-size:7.0pt;font-family:"Times New Roman","serif"'>NAML</span></a> <o:p></o:p></span></p>

</div>

</div>

</div>


<DIV><P><HR>
Le contenu de ce message est prévu uniquement pour le destinataire nommé. Il contient des informations qui peuvent être confidentielles. A moins d'être le destinataire nommé ou autorisé par le destinataire, vous ne pouvez pas copier, employer ou révéler à une autre personne le contenu de ce message. Si vous le recevez par erreur, s'il vous plait, informez nous immédiatement et détruisez le.<BR>
<BR>
The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 
</P></DIV>





        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Help-to-set-parameters-in-an-Xcos-Diagram-tp4026319p4026328.html">RE: Help to set parameters in an Xcos Diagram</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/>