<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta name="Microsoft Theme 2.00" content="strtedge 111"><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (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]--><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
@font-face
        {font-family:"Comic Sans MS";
        panose-1:3 15 7 2 3 3 2 2 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
h1
        {mso-style-priority:9;
        mso-style-link:"Titre 1 Car";
        margin-top:12.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:16.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;}
h2
        {mso-style-priority:9;
        mso-style-link:"Titre 2 Car";
        margin-top:2.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h3
        {mso-style-priority:9;
        mso-style-link:"Titre 3 Car";
        margin-top:2.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h4
        {mso-style-priority:9;
        mso-style-link:"Titre 4 Car";
        margin-top:2.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:14.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h5
        {mso-style-priority:9;
        mso-style-link:"Titre 5 Car";
        margin-top:2.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:13.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
h6
        {mso-style-priority:9;
        mso-style-link:"Titre 6 Car";
        margin-top:2.0pt;
        margin-right:0cm;
        margin-bottom:0cm;
        margin-left:0cm;
        margin-bottom:.0001pt;
        page-break-after:avoid;
        font-size:11.0pt;
        font-family:"Arial",sans-serif;
        color:black;
        mso-fareast-language:EN-US;
        font-weight:normal;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#003399;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#660000;
        text-decoration:underline;}
pre
        {mso-style-priority:99;
        mso-style-link:"Préformaté HTML Car";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
        {mso-style-name:msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black;}
span.Titre1Car
        {mso-style-name:"Titre 1 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 1";
        font-family:"Arial",sans-serif;
        color:black;
        font-weight:bold;}
span.Titre2Car
        {mso-style-name:"Titre 2 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 2";
        font-family:"Arial",sans-serif;
        color:black;}
span.Titre3Car
        {mso-style-name:"Titre 3 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 3";
        font-family:"Arial",sans-serif;
        color:black;}
span.Titre4Car
        {mso-style-name:"Titre 4 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 4";
        font-family:"Arial",sans-serif;
        color:black;}
span.Titre5Car
        {mso-style-name:"Titre 5 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 5";
        font-family:"Arial",sans-serif;
        color:black;}
span.Titre6Car
        {mso-style-name:"Titre 6 Car";
        mso-style-priority:9;
        mso-style-link:"Titre 6";
        font-family:"Arial",sans-serif;
        color:black;}
span.EmailStyle24
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.PrformatHTMLCar
        {mso-style-name:"Préformaté HTML Car";
        mso-style-priority:99;
        mso-style-link:"Préformaté HTML";
        font-family:"Consolas",serif;
        color:black;
        mso-fareast-language:EN-US;}
span.EmailStyle27
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 70.85pt 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1027" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body bgcolor=white lang=FR link="#003399" vlink="#660000"><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>Hello Paul,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>Thanks you for your quit response<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>It confirms that « tf » is a reserved word in Xcos context, and must be used with caution.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>In fact, I shall drive in September a student in Master2 on a subject concerning turbines simulation, and I inherit a program done with Xcos where condition « if ~exists(« foo ») foo=xx » is systematically used, and I see a big number of Xcos blocks and hundreds of variables.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>This is correctly done because all variables are not necessary transmitted when launching Xcos. Part of them are redefined, part of them are values by default, which explains this program structure done by a student a few year ago.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>So, has to control that, my main question was to know where I could finf a list of reserved words or variables in xcos.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>We have together seen that « tf » was one of them, which also define the « Final Integration Time »<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>I had a look on the Help in Scilab (describing a lot of thing », very clearly, but nothing about « tf » for example.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><!--[if gte vml 1]><v:shapetype id="_x0000_t75" coordsize="21600,21600" o:spt="75" o:preferrelative="t" path="m@4@5l@4@11@9@11@9@5xe" filled="f" stroked="f">
<v:stroke joinstyle="miter" />
<v:formulas>
<v:f eqn="if lineDrawn pixelLineWidth 0" />
<v:f eqn="sum @0 1 0" />
<v:f eqn="sum 0 0 @1" />
<v:f eqn="prod @2 1 2" />
<v:f eqn="prod @3 21600 pixelWidth" />
<v:f eqn="prod @3 21600 pixelHeight" />
<v:f eqn="sum @0 0 1" />
<v:f eqn="prod @6 1 2" />
<v:f eqn="prod @7 21600 pixelWidth" />
<v:f eqn="sum @8 21600 0" />
<v:f eqn="prod @7 21600 pixelHeight" />
<v:f eqn="sum @10 21600 0" />
</v:formulas>
<v:path o:extrusionok="f" gradientshapeok="t" o:connecttype="rect" />
<o:lock v:ext="edit" aspectratio="t" />
</v:shapetype><v:shape id="Ellipse_x0020_2" o:spid="_x0000_s1026" type="#_x0000_t75" style='position:absolute;margin-left:31.2pt;margin-top:19pt;width:87pt;height:15pt;z-index:251659264;visibility:visible;mso-wrap-distance-left:9pt;mso-wrap-distance-top:0;mso-wrap-distance-right:9pt;mso-wrap-distance-bottom:0;mso-position-horizontal:absolute;mso-position-horizontal-relative:text;mso-position-vertical:absolute;mso-position-vertical-relative:text'>
<v:imagedata src="cid:image002.png@01D1C5A3.8D6CBD70" o:title="" />
<o:lock v:ext="edit" aspectratio="f" />
</v:shape><![endif]--><![if !vml]><span style='mso-ignore:vglayout;position:absolute;z-index:251659264;margin-left:58px;margin-top:129px;width:145px;height:25px'><img width=116 height=20 style='width:1.2083in;height:.2083in' src="cid:image008.png@01D1C5A3.8D6CBD70" v:shapes="Ellipse_x0020_2"></span><![endif]><span style='mso-fareast-language:FR'><img width=384 height=236 style='width:4.0in;height:2.4583in' id="_x0000_i1027" src="cid:image009.jpg@01D1C5A3.8D6CBD70"></span><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>For example, what are the others reserved keyword for the rest of these variables, in the above table ?<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>A list would be welcome, or a reference to access this one.<o:p></o:p></span></u></p><p class=MsoNormal><u><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p><span style='text-decoration:none'> </span></o:p></span></u></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>Your sincerely,<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'>Pierre<o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Comic Sans MS";color:#2E74B5;mso-fareast-language:FR'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Comic Sans MS";color:#2E74B5;mso-fareast-language:FR'><o:p> </o:p></span></p><p class=MsoNormal><b><span style='font-size:7.0pt;font-family:"Comic Sans MS";color:#538135;mso-fareast-language:FR'>Before printing, think about ENVIRONMENTAL responsabity<o:p></o:p></span></b></p></div><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:FR'>De :</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:windowtext;mso-fareast-language:FR'> users [mailto:users-bounces@lists.scilab.org] <b>De la part de</b> Paul Bignier<br><b>Envoyé :</b> lundi 13 juin 2016 09:09<br><b>À :</b> Users mailing list for Scilab <users@lists.scilab.org><br><b>Objet :</b> Re: [Scilab-users] Xcos - Problem with tf variable name in a superblock<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'><br>Hello Pierre,<br><br>100000 is indeed the "Final integration time" parameter in the Simulation->Setup menu.<br>By using exists() (you might want to use <a href="https://help.scilab.org/docs/5.5.2/en_US/isdef.html">isdef()</a> instead) you don't override the existing parameters,<br>and in Scilab, functions can see the superior-scope variables (here, 'tf').<br>So just write "tmf=3; tf=2;" in your context and everything should run fine.<br><br>Regards,<br>Paul<span style='mso-fareast-language:FR'><o:p></o:p></span></p><div><p class=MsoNormal>On 06/10/2016 06:47 PM, Perrichon wrote:<o:p></o:p></p></div><blockquote style='margin-top:5.0pt;margin-bottom:5.0pt'><p class=MsoNormal><span style='font-family:"Times New Roman",serif;mso-fareast-language:FR'><img border=0 width=39 height=38 style='width:.4083in;height:.4in' id="_x0000_i1025" src="cid:image010.jpg@01D1C5A3.8D6CBD70"><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:10.0pt'>Hello</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>I retrieve an old xcos program about hydraulic simulation.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Worry :</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>A superblock containing a vairable « tf «  doesn’t match the value programmed in the initialization part.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>If « tf » a reserved word and where can I find a  reserved list</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Or is it a bugg ?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Are other variables concerned?</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Thanks for yout help</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'>Regards.</span><o:p></o:p></p><p class=MsoNormal><span style='font-size:10.0pt'> </span><o:p></o:p></p><p class=MsoNormal><span style='mso-fareast-language:FR'><img border=0 width=429 height=300 style='width:4.4666in;height:3.125in' id="Image_x0020_1" src="cid:image003.jpg@01D1C59D.4CB56A30"></span><o:p></o:p></p><p class=MsoNormal><span style='font-family:"Times New Roman",serif;mso-fareast-language:FR'><br><br><br><o:p></o:p></span></p><pre>_______________________________________________<o:p></o:p></pre><pre>users mailing list<o:p></o:p></pre><pre><a href="mailto:users@lists.scilab.org">users@lists.scilab.org</a><o:p></o:p></pre><pre><a href="http://lists.scilab.org/mailman/listinfo/users">http://lists.scilab.org/mailman/listinfo/users</a><o:p></o:p></pre></blockquote><p class=MsoNormal><span style='font-family:"Times New Roman",serif;mso-fareast-language:FR'><br><br><o:p></o:p></span></p><pre>-- <o:p></o:p></pre><pre>Paul BIGNIER<o:p></o:p></pre><pre>Development engineer<o:p></o:p></pre><pre>-----------------------------------------------------------<o:p></o:p></pre><pre>Scilab Enterprises<o:p></o:p></pre><pre>143bis rue Yves Le Coz - 78000 Versailles, France<o:p></o:p></pre><pre>Phone: +33.1.80.77.04.68<o:p></o:p></pre><pre><a href="http://www.scilab-enterprises.com">http://www.scilab-enterprises.com</a><o:p></o:p></pre></div></body></html>