1
.TH curblock "Janvier 1997" "Scilab Group" "Scicos function"
4
curblock - get current block index in a Scicos simulation function
12
: integer, index of the block corresponding to the Scilab simulation
13
function where this function is called.
15
During simulation it may be interesting to get the index of the current
16
block to trace execution, to get its label, to animate the block icon
17
according to simulation...
19
For block with a computational function written in Scilab, Scilab
20
primitive function \fVcurblock()\fR allows to get the index of the
21
current block in the compiled data structure.
23
To obtain path to the block in the Scicos main structure user may uses
24
the \fVcorinv\fR table (see scicos_cpr).
26
For block with a computational function written in C user may uses the
27
C function \fVk=C2F(getcurblock)()\fR. Where \fVC2F\fR is the C
28
compilation macro defined in \fV<SCIDIR>/routines/machine.h\fR
30
For block with a computational function written in Fortran user may uses the
31
integer function \fVk=getcurblock()\fR.
33
getblocklabel, getscicosvars, setscicosvars, scicos_cpr, scicos_main