File: curblock.cat

package info (click to toggle)
scilab 2.4-1
  • links: PTS
  • area: non-free
  • in suites: potato, slink
  • size: 55,196 kB
  • ctags: 38,019
  • sloc: ansic: 231,970; fortran: 148,976; tcl: 7,099; makefile: 4,585; sh: 2,978; csh: 154; cpp: 101; asm: 39; sed: 5
file content (34 lines) | stat: -rw-r--r-- 1,189 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34

curblock(Janvier 1997)                                 curblock(Janvier 1997)
NAME
  curblock - get current block index in a Scicos simulation function

CALLING SEQUENCE
  k=curblock()

PARAMETERS

  k    : integer, index of the block corresponding to the Scilab simulation
       function where this function is called.

DESCRIPTION
  During simulation it may be interesting to get the index of the current
  block to trace execution, to get its label, to animate the block icon
  according to simulation...

  For block with a computational function written in Scilab, Scilab primitive
  function curblock()  allows to get the index of the current block in the
  compiled data structure.

  To obtain path to the block in the Scicos main structure user may uses the
  corinv table (see scicos_cpr).

  For block with a computational function written in C user may uses the C
  function  k=C2F(getcurblock)(). Where C2F is the C compilation macro
  defined in <SCIDIR>/routines/machine.h

  For block with a computational function written in Fortran user may uses
  the integer  function  k=getcurblock().

SEE ALSO
  getblocklabel, getscicosvars, setscicosvars, scicos_cpr, scicos_main