[Scilab-Dev] New xcos blocks executing scilab primitive functions

ericgernot gernot.eric at wanadoo.fr
Fri May 3 20:56:24 CEST 2019


Hi guys, 

I have been out for a while, but reading this topic again raised a question: 

If I understand well, when the simulation starts, the Xcos engine creates
all the blocks' structures, one for each block I guess, allocating memory
for the block at this moment.

But the Scilab engine can only work with numbers in its own memory
allocation, right ?
(I see it there:
https://help.scilab.org/docs/6.0.2/en_US/DoubleManagement_callscilab.html)
Or is it possible to have it directly operate on memory outside of it ?

Reading the block structure definition, I may see a solution:
"void **work;    // Table of pointers to the block workspace (if allocation
done by the block)".

Which code has to be modified so that when the Sci_func block structure is
created, the block is directly allocated a workspace made of pointers to
Scilab memory?




--
Sent from: http://mailinglists.scilab.org/Scilab-developers-Mailing-Lists-Archives-f2574944.html



More information about the dev mailing list