Re: [Scilab-users] Getting rid of Modelica info pop-up window in Xcos

2013-01-31 Thread Clément David
Hello,

We can not support 'silent' modelica compilation however some of our
internal non-regression test re-define messagebox to silent any popup
window using the following snip.

--

function btn = messagebox(msg, msgboxtitle, msgboxicon, buttons,
ismodal)
btn = 0;
endfunction

importXcosDiagram(SCI +
/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.xcos);
xcos_simulate(scs_m, 4);

--
Clément David
Scilab Enterprises

Le mardi 29 janvier 2013 à 03:11 -0800, amiege a écrit :
 Hi, 
 
 I am running an Xcos model which contains some COSELICA blocks. Every
 time I run it, the following window pops up:
 ...
 This is fine for interactive simulation, but I am trying to run the
 model iteratively as part of an optimization routine, which means that
 I end with a lot of Java pop-up windows to close. So far, I have
 limited the amount of iterations in the optimization to avoid crashing
 the software with too many windows, but I would now like to increase
 it. Does anybody know to turn this pop-up window off for scripted
 simulations, given that COSELICA is undocumented?


___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


Re: [Scilab-users] Getting rid of Modelica info pop-up window in Xcos

2013-01-31 Thread amiege
Clément David-2 wrote
 Hello,We can not support 'silent' modelica compilation however some of
 ourinternal non-regression test re-define messagebox to silent any
 popupwindow using the following snip.--function btn = messagebox(msg,
 msgboxtitle, msgboxicon, buttons,ismodal)btn =
 0;endfunctionimportXcosDiagram(SCI
 +/modules/xcos/demos/ModelicaBlocks/RLC_Modelica.xcos);xcos_simulate(scs_m,
 4);--Clément DavidScilab Enterprises

Thanks, I have since then switched to a normal Xcos model so the problem
has gone away. However, I will definitely try the messagebox function you
suggest if I ever revert to using a COSELICA model.

Arnaud



--
View this message in context: 
http://mailinglists.scilab.org/Getting-rid-of-Modelica-info-pop-up-window-in-Xcos-tp4025830p4025846.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users


[Scilab-users] Getting rid of Modelica info pop-up window in Xcos

2013-01-29 Thread amiege
Hi,
I am running an Xcos model which contains some COSELICA blocks. Every time I
run it, the following window pops up:

http://mailinglists.scilab.org/file/n4025830/modelica_info.jpg 
This is fine for interactive simulation, but I am trying to run the model
iteratively as part of an optimization routine, which means that I end with
a lot of Java pop-up windows to close. So far, I have limited the amount of
iterations in the optimization to avoid crashing the software with too many
windows, but I would now like to  increase it. Does anybody know to turn
this pop-up window off for scripted simulations, given that COSELICA is
undocumented?
Thanks in advance,
Arnaud



--
View this message in context: 
http://mailinglists.scilab.org/Getting-rid-of-Modelica-info-pop-up-window-in-Xcos-tp4025830.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at 
Nabble.com.___
users mailing list
users@lists.scilab.org
http://lists.scilab.org/mailman/listinfo/users