App close when I want to simulate the demo of XCOS

Scilab beginner!
I can open the demo, but when I push the simulation button, the app just crash, closed at once!

I tried to open different demo, it looks like the same.

I am using Scilab 25.0.0 on win11 but company managed system.

is this because I donot add the proper toolbox?

here is the running information from advanced console:

Main Modelica : C:\Users\z00400yy\AppData\Local\Temp\SCI_TMP_9108_17258\RLC_Modelica_im.mo

Flat Modelica : C:\Users\z00400yy\AppData\Local\Temp\SCI_TMP_9108_17258\RLC_Modelica_imf.mo
Simulation C code :C:\Users\z00400yy\AppData\Local\Temp\SCI_TMP_9108_17258\RLC_Modelica_im.c
“Modelica blocks are reduced to a block with:”
“Number of differential states: 2”
“Number of algebraic states: 1”
“Number of discrete time states : 0”
“Number of zero-crossing surfaces: 0”
“Number of modes : 0”
“Number of inputs : 0”
“Number of outputs: 2”
“Input/output dependency:[T]”
“Analytical Jacobian: enabled (%Jacobian=%t)”
“Parameter embedding mode: enabled (%Modelica_ParEmb=%t)”
“”
“Generated files path: C:\Users\z00400yy\AppData\Local\Temp\SCI_TMP_9108_17258”
“”
Generate a loader file
Generate a Makefile
Running the Makefile
“sorry compiling problem”
“Attempt to reference field of non-structure array.”
“c_pass1: build the modelica meta-block failed”

“xcos_simulate: Error during block parameters update.”

Hello and Welcome to Scilab’s Discourse !

Which compiler have you installed (or which compiler is made available in your user account by your company ) ? Modelica examples need a compiler (preferably Visual Studio).

S.

visual studio code

I already make the scilab work on a computer which do no managed by company by install the GCC.

is the visual studio code going to work?

you created the Plotting library… :smiley:

and others, a lot of…

1 Like

Do the Xcos examples with Modelica block compile fine on this computer ?

Yeah, now legacy stuff…

no.
it has the following error.
////////////////////////////////////////////////////////////////////////
Mingw Compiler support for Scilab
Load macros
Load help
atomsLoad: An error occurred while loading ‘mingw-10.3.1’:
add_help_chapter: error on line #71: “add_help_chapter: Wrong value for input argument #2: An existing directory expected.”
at line 346 of function atomsLoad ( D:\Program Files\scilab-2024.1.0\modules\atoms\macros\atomsLoad.sci line 362 )
at line 1 of executed string

////////////////////////////////////////////////////////////////////////

it is ok. I already have one which I can use.
Thank you.

@ mottelet

I try to fix this problem but no luck.

is there anyway I can delete the “existing directory”???

the “del_help_chapter” is not working.

Hello,

I suggest that you completely remove your SCIHOME directory. You can display its value on the Scilab command line, e.g. on my PC it is

 SCIHOME = 

  "C:\Users\steph\AppData\Roaming\Scilab\scilab-2025.0.0"

You may have to make AppData visible before accessing it in Explorer. After that reinstall the toolbox and test again.

S.

still not work.(siclab 2023 exist and works fine, maybe because of this?)

the wrong infor shows here,

atomsLoad: An error occurred while loading ‘mingw-10.3.1’:
add_help_chapter: error on line #71: “add_help_chapter: Wrong value for input argument #2: An existing directory expected.”
at line 346 of function atomsLoad ( D:\Program Files\scilab-2025.0.0\modules\atoms\macros\atomsLoad.sci line 362 )

siclab 2023 works file on the managed computer.
at least have one can work.

thks.

it working now on the managed computer, after I clear the related register items of scilab 2025 and reinstall.

–install scilab 2025;
–start scilab and install mingw;
–restart scilab;
–exit and restart computer;
–working…

Can you describe this step please ?

open the registry editor as a administrator,
ctr+f, search “scilab 2025”,
delete the found item,
press F3 to the do further search and delete until no searching result.

I also deleted the folder you mentioned, but only delete the folder is not working.