<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Pierre,</div>
    <div class="moz-cite-prefix"><br>
    </div>
    <div class="moz-cite-prefix">Le 29/02/2020 à 11:32, Perrichon a
      écrit :<br>
    </div>
    <blockquote type="cite"
cite="mid:!&!AAAAAAAAAAAuAAAAAAAAAHTRbxuKTONJuQv%2FnFKuTP8BANlTnCJhprtFudq2LHCBs8EBACQA%2F%2F8AABAAAAAD5A2gUnT2SKZqCQmPSK3rAQAAAAA=@wanadoo.fr">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <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;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.EmailStyle19
        {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="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">Hello,<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">I try to understand and find a reason why
          my projects done with xcos scilab 5.5.2 not run i 6.1.0<o:p></o:p></p>
        <p class="MsoNormal">So I isolate at least one reason in a basic
          test program (see attached files)<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Here, zcos file are lunched into scilab
          5.5.2 or 6.10, with the A.sce file which test the version<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">A.ctx is a context file. Here is a simple
          variable definition A=50 in that case.<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Every zcos file contains in its simulation
          contexte, the instruction « exec("A.ctx") » ; accessible with
          simulation-> context modifying <o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">To run this program, make a directory, a
          copy of the attached files, and change eventually line 4 in
          A.sce :<o:p></o:p></p>
        <p class="MsoNormal">Root="c:\0 -
          tampon"                                                               
          // Répertoire de travail pour le test<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">So run A.sce inside xcos scilab 5.5.2 or
          6.1.0<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal">Scilab 5.5.2 run correctly :<o:p></o:p></p>
        <p class="MsoNormal"><diagram image><br>
          <br>
          <o:p></o:p></p>
        <p class="MsoNormal">Scilab 6.1.0 is bugged :<o:p></o:p></p>
        <p class="MsoNormal"><img style="width:2.0333in;height:.95in"
            id="Image_x0020_2" src="cid:part1.734363A5.39F8F28D@free.fr"
            class="" width="195" height="91"></p>
      </div>
    </blockquote>
    <p><br>
    </p>
    <p>Apparently, the problem is that the context is not executed when
      the diagram is loaded.<br>
      Despite what the context message indicates:</p>
    <p><img src="cid:part2.3ACADC15.69569AFC@free.fr" alt="" width="309"
        height="134"></p>
    <p>Indeed, the message mprintf("Chargement du contexte d''exécution
      %s\n\n",FichierContexte)<br>
      set in the context is not displayed when the diagram is loaded in
      6.1.0 ; only when the context<br>
      is updated (or simply edited and revalidated).</p>
    <p>With Scilab 5.5, the context is not executed when loading the
      diagram,but when running it.</p>
    <p>So, to me, there are apparently 2 issues:</p>
    <ol>
      <li>The <i>Set Context</i> message should be fixed: "... and
        every time the diagram is <b>run</b>" (not loaded)</li>
      <li>The fact that the context is executed when the diagram is run
        should be restored in Scilab 6.</li>
    </ol>
    <p>Regards</p>
    <p>Samuel<br>
    </p>
    <br>
  </body>
</html>