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 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133
|
.TH scicos_cpr "Janvier 1997" "Scilab Group" "Scicos data structure"
.so ../sci.an
.SH NAME
scicos_cpr - Scicos compiled diagram data structure
.SH DEFINITION
.nf
cpr=list(state,sim,cor,corinv)
.fi
.SH PARAMETERS
.TP 10
state
: Scilab \fVtlist\fR contains initial state.
.RS
.TP 15
state('x')
: continuous state vector.
.TP
state('z')
: discrete state vector.
.TP
state('tevts')
: vector of event dates
.TP
state('evtspt')
: vector of event pointers
.TP
state('pointi')
: pointer to next event
state('npoint')
: not used yet
state('outtb')
: vector of inputs/outputs initial values.
.RE
.TP
sim
: Scilab \fVtlist\fR. Usually generated by Scicos
\fVCompile\fR menu. Some useful entries are:
.RS
.TP 15
sim('rpar')
: vector of blocks' floating point parameters
.TP
sim('rpptr')
: (nblk+1) x 1 vector of integers,
\fVsim('rpar')(rpptr(i):(rpptr(i+1)-1))\fR is the vector of floating
point parameters of the \fVi\fRth block.
.TP
sim('ipar')
: vector of blocks' integer parameters
.TP
sim('ipptr')
: (nblk+1) x 1 vector of integers,
\fVsim('ipar')(ipptr(i):(ipptr(i+1)-1))\fR is the vector of integer
parameters of the \fVi\fRth block.
.TP
sim('funs')
: vector of strings containing the names of each block simulation function
.TP
sim('xptr')
: (nblk+1) x 1 vector of integers,
\fVstate('x')(xptr(i):(xptr(i+1)-1))\fR is the continuous state
vector of the \fVi\fRth block.
.TP
sim('zptr')
: (nblk+1) x 1 vector of integers,
\fVstate('z')(zptr(i):(zptr(i+1)-1))\fR is the discrete state
vector of the \fVi\fRth block.
.TP
sim('inpptr')
: (nblk+1) x 1 vector of integers,
\fVinpptr(i+1)-inpptr(i)\fR gives
the number of input ports. \fVinpptr(i)\fRth points to the
beginning of \fVi\fRth block inputs within the indirection table \fVinplnk\fR.
.TP
sim('inplnk')
: nblink x 1 vector of integers,
\fVinplnk(inpptr(i)-1+j)\fR is the
index of the link connected to the \fVj\fRth input port of the \fVi\fRth block.
where \fVj\fR goes from \fV1\fR to \fVinpptr(i+1)-inpptr(i))\fR.
.TP
sim('outptr')
: (nblk+1) x 1 vector of integers,
\fVoutptr(i+1)-outptr(i)\fR gives
the number of output ports. \fVoutptr(i)\fRth points to the
beginning of \fVi\fRth block outputs within the indirection table \fVoutlnk\fR.
.TP
sim('outlnk')
: nblink x 1 vector of integers,
\fVoutlnk(outptr(i)-1+j)\fR is the
index of the link connected to the \fVj\fRth output port of the \fVi\fRth block.
where \fVj\fR goes from \fV1\fR to \fVoutptr(i+1)-outptr(i))\fR.
.TP
sim('lnkptr')
: (nblink+1) x 1 vector of integers,
\fVk\fRth entry points to the
beginning of region within \fVouttb\fR dedicated to link indexed \fVk\fR.
.TP
sim('funs')
: vector of strings containing the names of each block simulation function
.TP
sim('funtyp')
: vector of block block types.
.RE
.TP
cor
: is a list with same recursive structure as scs_m each leaf
contains the index of associated block in \fVcpr\fR data structure.
.TP
corinv
: corinv(i) is the path of \fVi\fR th block defined in \fVcpr\fR data structure
in the \fVscs_m\fR data structure.
.SH DESCRIPTION
Scicos compiled diagram data structure contains all information needed
to simulate the system (see \fVscicosim\fR).
.SH SEE ALSO
scicos, scicos_model, scicos_main, scicosim
|