<div style='font-family: arial,helvetica,sans-serif; font-size: 12pt; color: #000000'>Hi everyone,<br><br>Problems are still there...<br><br>When I try with the following code to run the attached model (with one custom block, compiling well), I get this error:<br><br><font face="courier new,courier,monaco,monospace,sans-serif" size="2">-->exec('folder\test.sce', -1)</font><br><font face="courier new,courier,monaco,monospace,sans-serif" size="2"> !--error 10000 <br>scicos_simulate : Error during block parameters evaluation.<br>at line     218 of function scicos_simulate called by :  <br>Info=scicos_simulate(scs_m,list(),%scicos_context);<br>at line      62 of exec file called by :    <br>folder\test.sce', -1<br></font><br>Of course, removing the custom block makes the model work fine.<br><br>The content of the function <font face="courier new,courier,monaco,monospace,sans-serif" size="2">scicos_simulate</font> is:<br><br><font face="courier new,courier,monaco,monospace,sans-serif" size="2">209  //** retrieve Info list<br>210  if Info <> list() then<br>211    [%tcur, %cpr, alreadyran, needstart, needcompile, %state0] = Info(:)<br>213  else<br>213    %tcur = 0;<br>214    %cpr = list();<br>215    alreadyran = %f;<br>216    needstart = %t;<br>217    needcompile = 4;<br>218    %state0 = list();<br>219  end</font><br><br>I don't see why line 218 would create a problem.<br><br>Here is my code:<br><br><font face="courier new,courier,monaco,monospace,sans-serif" size="2">loadScicos;<br>loadXcosLibs();<br>exec(loadpallibs,-1);<br><br>importXcosDiagram('model_NL2.xcos')<br><br><br>T=0.0001;<br>end_time=0.201;<br><br>C=1;<br>R=1;<br><br>// model simulation<br>%scicos_context=[];<br>%scicos_context.C=C;<br>%scicos_context.R=R;<br>%scicos_context.T=T;<br>%scicos_context.end_time=end_time;<br>Info=scicos_simulate(scs_m,list(),%scicos_context);</font><br><br><div><span name="x"></span><font size="1"><font size="2">Romain</font></font><br></div><hr id="zwchr"><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #1010FF;margin-left:5px;padding-left:5px;color:#000;font-weight:normal;font-style:normal;text-decoration:none;font-family:Helvetica,Arial,sans-serif;font-size:12pt;"><b>De: </b>"R0M1 [via Scilab / Xcos - Mailing Lists Archives]" <<a href="/user/SendEmail.jtp?type=node&node=4029312&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>><br><b>À: </b>"R0M1" <<a href="/user/SendEmail.jtp?type=node&node=4029312&i=1" target="_top" rel="nofollow" link="external">[hidden email]</a>><br><b>Envoyé: </b>Vendredi 14 Mars 2014 11:52:50<br><b>Objet: </b>Re: [Scilab-users] Using Modelica generic block MBLOCK in Xcos<br><br>

        Just to make the community benefit of Dirk's answer:
<br><br><blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' style="border-left:2px solid #CCCCCC;padding:0 1em" class="quote dark-border-color"><div class="quote light-border-color">
<div class="quote-author" style="font-weight: bold;">Dirk wrote</div>
<div class="quote-message">Rename "NL_Capacitor1" to "NL_CapacitorA" this will avoid
<br>a name clash generated by the modelica compiler!
</div>
</div></blockquote>


        
        
        
        <br>
        <br>
        <hr noshade="noshade" size="1">
        <div style="color:#444; font: 12px tahoma,geneva,helvetica,arial,sans-serif;">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                <a href="http://mailinglists.scilab.org/Scilab-users-Using-Modelica-generic-block-MBLOCK-in-Xcos-tp4029200p4029302.html" target="_blank" rel="nofollow" link="external">http://mailinglists.scilab.org/Scilab-users-Using-Modelica-generic-block-MBLOCK-in-Xcos-tp4029200p4029302.html</a>
        </div>
        <div style="color:#666; font: 11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from [Scilab-users] Using Modelica generic block MBLOCK in Xcos, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>
                <a href="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" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></blockquote><br></div><!--start-attachments--><div class="small"><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>input.csv</strong> (2K) <a href="http://mailinglists.scilab.org/attachment/4029312/0/input.csv" target="_top" rel="nofollow" link="external">Download Attachment</a><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>model_NL2.xcos</strong> (100K) <a href="http://mailinglists.scilab.org/attachment/4029312/1/model_NL2.xcos" target="_top" rel="nofollow" link="external">Download Attachment</a><br/><img src="http://mailinglists.scilab.org/images/icon_attachment.gif" > <strong>NL_Capacitor.mo</strong> (298 bytes) <a href="http://mailinglists.scilab.org/attachment/4029312/2/NL_Capacitor.mo" target="_top" rel="nofollow" link="external">Download Attachment</a></div><!--end-attachments-->

        
        
        
<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-tp4029200p4029312.html">Re: [Scilab-users] 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/>