I’ve tested the following code in Scilab 2025.0.0 and 2026.0.0 running under Windows 11, and both versions launch a blank Xcos canvas with no summation block:
loadXcosLibs();
scs_m = scicos_diagram();
scs_m.props.title = "Test";
scs_m.objs(1) = SUMMATION("define");
scs_m.objs(1).graphics.sz = [30 50];
scs_m.objs(1).graphics.orig = [100 100];
xcos(scs_m);
However, when I run the same code in Scilab 6.1.1, the script works fine, and a summation block is displayed.
Also note that running tree_show(scs_m) does show the presence of the summation block in the tree after running the script in these latest versions. But no block is displayed in the canvas.
I can carry on using version 6.1.1 for now, but it’s not ideal. I would like this working in future versions if possible.
I have a compiled version of Scilab 2024.1.0 working (which also doesn’t properly run the script). If anyone can tell me what might be the problem, I can have a look myself if that will help.