[Scilab-users] Using Modelica generic block MBLOCK in Xcos

R0M1 romain.desbats at ifsttar.fr
Tue Mar 18 17:19:41 CET 2014


Thanks a lot for your clarification. I should have thought a little more. 

So now the line in scicos_simulate are the following: 

215 if ierr == 0 then //++ no error 
216 [scs_m, %cpr, needcompile, ok] = do_eval(scs_m, %cpr,%scicos_context) 
217 if ~ok then 
218 error(msprintf(gettext("%s: Error during block parameters evaluation.\n"), "scicos_simulate")); 
219 end 
220 if needcompile <> 4 & size(%cpr) > 0 then 
221 %state0 = %cpr.state 
222 end 
223 alreadyran = %f 
224 else 
225 error(['Incorrect context definition, ' + lasterror()]) 
226 end 

So it seems that the problem is that the ok variable (result of do_eval ) is equal to %F (false) . However, I can not access the content of do_eval . And when I try to execute do_eval(scs_m, %cpr,%scicos_context) manually, I get an error because loading my diagram did not create %cpr . This is surprising because even when I compile a working diagram it does not produce %cpr . 

Any idea ? 




--
View this message in context: http://mailinglists.scilab.org/Scilab-users-Using-Modelica-generic-block-MBLOCK-in-Xcos-tp4029200p4030095.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20140318/1b13792c/attachment.htm>


More information about the users mailing list