<HTML dir=ltr><HEAD>
<META content="text/html; charset=unicode" http-equiv=Content-Type>
<META name=GENERATOR content="MSHTML 8.00.7601.17874"></HEAD>
<BODY>
<DIV><FONT color=#000000 size=2 face=Arial>Hello</FONT></DIV>
<DIV><FONT size=2 face=Arial></FONT> </DIV>
<DIV><FONT size=2 face=Arial>I'm using scilab 5.4 with Xcos module. Due to the bug 10434 (<FONT size=3 face="Times New Roman">"clear" command erases scilab variables) on scilab 5.4.0, I'm using the current nightly build scilab-branch-5.4-1350142218 version. With this version, the "clear" issue has been fixed so that I can use Xcos variables but now the 'scicos_simulate()' function gives: </FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman"><FONT color=#ff0000>!--error 21 <BR>Index invalide.<BR>at line      99 of function do_eval called by :  <BR>at line     216 of function scicos_simulate called by :  <BR>scicos_simulate(scs_m);</FONT><BR></FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">For information, I've checked that scicos_simulate.sci and do_eval.sci functions are the same for both scilab-5.4.0 and </FONT></FONT><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">scilab-branch-5.4-1350142218 versions.</FONT></FONT></DIV>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman"> </DIV></FONT></FONT>
<DIV><FONT size=2 face=Arial><FONT size=3 face="Times New Roman">Please see the scilab example for using 'scicos_simulate()' function:</DIV></FONT></FONT>
<DIV> </DIV>
<DIV><STRONG><FONT color=#008000>->importXcosDiagram("SCI/modules/xcos/demos/batch_simulation.xcos")<BR> ans  =<BR> <BR>  T  <BR> <BR>--><BR> <BR>-->typeof(scs_m) //The diagram data structure<BR> ans  =<BR> <BR> diagram   <BR> <BR>--><BR> <BR>-->//This diagram uses 3 context variables : <BR> <BR>-->//  Amplitude : the sin function amplitude<BR> <BR>-->//  Pulsation : the sin function pulsation<BR> <BR>-->//  Tf        : the final simulation time<BR> <BR>-->scs_m.props.context; //the embedded definition<BR></FONT></STRONG> <BR>--><BR> <BR>-->//first batch simulation with the parameters embedded in the diagram <BR> <BR><STRONG><FONT color=#ff0000>-->scicos_simulate(scs_m);<BR> !--error 21 <BR>Index invalide.<BR>at line      99 of function do_eval called by :  <BR>at line     216 of function scicos_simulate called by :  <BR>scicos_simulate(scs_m);<BR> <BR></FONT></STRONG> <BR>-->// Change the final time value<BR> <BR>-->Context.Tf=10;<BR> <BR><STRONG><FONT color=#ff0000>-->scicos_simulate(scs_m,Context);<BR> !--error 21 <BR>Index invalide.<BR>at line      99 of function do_eval called by :  <BR>at line     216 of function scicos_simulate called by :  <BR>scicos_simulate(scs_m,Context);<BR></FONT> <BR></STRONG> <BR>-->// without display<BR> <BR>-->Context.Tf=10;<BR> <BR>-->Context.Pulsation=9;<BR> <BR><STRONG><FONT color=#ff0000>-->scicos_simulate(scs_m,list(),Context,'nw');<BR> !--error 21 <BR>Index invalide.<BR>at line      99 of function do_eval called by :  <BR>at line     216 of function scicos_simulate called by :  <BR>scicos_simulate(scs_m,list(),Context,'nw');</FONT></STRONG></DIV></BODY></HTML>