<div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Thanks a lot for your clarification. I should have thought a little more.<br><br>So now the line in <font face="courier new,courier,monaco,monospace,sans-serif" size="2">scicos_simulate</font> are the following:<br><br><font face="courier new,courier,monaco,monospace,sans-serif" size="2">215  if ierr == 0 then //++ no error<br>216    [scs_m, %cpr, needcompile, ok] = do_eval(scs_m, %cpr,%scicos_context)<br>217    if ~ok then<br>218      error(msprintf(gettext("%s: Error during block parameters evaluation.\n"), "scicos_simulate"));<br>219    end<br>220    if needcompile <> 4 & size(%cpr) > 0 then<br>221      %state0 = %cpr.state<br>222    end<br>223    alreadyran = %f<br>224  else<br>225    error(['Incorrect context definition, ' + lasterror()])<br>226  end</font><br><br>So it seems that the problem is that the <font face="courier new,courier,monaco,monospace,sans-serif" size="2">ok</font> variable (result of <font face="courier new,courier,monaco,monospace,sans-serif">do_eval</font>) is equal to <font face="courier new,courier,monaco,monospace,sans-serif" size="2">%F<font face="arial,helvetica,sans-serif" size="3"> (false)</font></font>. However, I can not access the content of <font face="courier new,courier,monaco,monospace,sans-serif" size="2">do_eval</font>. And when I try to execute <font face="courier new,courier,monaco,monospace,sans-serif" size="2">do_eval(scs_m, %cpr,%scicos_context)<font size="3"><font face="arial,helvetica,sans-serif">manually, I get an error because loading my diagram did not create <font face="courier new,courier,monaco,monospace,sans-serif" size="2">%cpr</font>. This is surprising because even when I compile a working diagram it does not produce <font face="courier new,courier,monaco,monospace,sans-serif" size="2">%cpr</font>.<br><br>Any idea?<br></font></font></font></div>

        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://mailinglists.scilab.org/Scilab-users-Using-Modelica-generic-block-MBLOCK-in-Xcos-tp4029200p4030095.html">Re: Using Modelica generic block MBLOCK in 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/>