[Scilab-users] Help to set parameters in an Xcos Diagram

cedricbdo cedric.benslimane at aeroconseil.com
Fri Mar 22 09:07:03 CET 2013


Thank you very much for your quick answer.

 

Cedric

 

De : Clément David-2 [via Scilab / Xcos - Mailing Lists Archives] [mailto:ml-node+s994242n4026322h79 at n3.nabble.com] 
Envoyé : jeudi 21 mars 2013 18:00
À : BENSLIMANE Cedric
Objet : Re: Help to set parameters in an Xcos Diagram

 

Hello Cédric, 

The max integration time interval can be set using the scs_m.props.tol 
vector which is documented [1]. 

To set a specific parameter values, define a variable in the diagram 
context which is used as dt then set it the right value the 
scicos_context struct. 

For more information on setting variable values, take a look at the 
"Optimization of a PID" [2] wiki page. 

[1]: http://help.scilab.org/docs/5.4.0/en_US/scicos_params.html
[2]: <a href="http://wiki.scilab.org/Xcos/Examples/PID?highlight=%28%">http://wiki.scilab.org/Xcos/Examples/PID?highlight=%28%
scicos_context%29 


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


-- 
Clément DAVID 
Development Engineer / Account Manager 
----------------------------------------------------------- 
Scilab Enterprises 
143bis rue Yves Le Coz - 78000 Versailles, France 
Mobile: +33.6.26.26.51.90 
Phone: +33.2.90.22.78.96 
http://www.scilab-enterprises.com

_______________________________________________ 
users mailing list 
[hidden email] 
http://lists.scilab.org/mailman/listinfo/users



________________________________

If you reply to this email, your message will be added to the discussion below:

http://mailinglists.scilab.org/Help-to-set-parameters-in-an-Xcos-Diagram-tp4026319p4026322.html 

To unsubscribe from Help to set parameters in an Xcos Diagram, click here <http://mailinglists.scilab.org/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=4026319&code=Y2VkcmljLmJlbnNsaW1hbmVAYWVyb2NvbnNlaWwuY29tfDQwMjYzMTl8MTI2NzYwODIyMw==> .
NAML <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>  



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.

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. 




--
View this message in context: http://mailinglists.scilab.org/Help-to-set-parameters-in-an-Xcos-Diagram-tp4026319p4026328.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20130322/c6bd7059/attachment.htm>


More information about the users mailing list