File: curblock.cat

package info (click to toggle)
scilab 2.6-4
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 54,632 kB
  • ctags: 40,267
  • sloc: ansic: 267,851; fortran: 166,549; sh: 10,005; makefile: 4,119; tcl: 1,070; cpp: 233; csh: 143; asm: 135; perl: 130; java: 39
file content (32 lines) | stat: -rw-r--r-- 1,213 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
curblock          Scilab Group          Scicos function            curblock
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