~ubuntu-branches/ubuntu/raring/scilab/raring-proposed

« back to all changes in this revision

Viewing changes to modules/xcos/help/en_US/programming_scicos_blocks/scilab_computational_functions/sci_struct.xml

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2012-08-30 14:42:38 UTC
  • mfrom: (1.4.7)
  • Revision ID: package-import@ubuntu.com-20120830144238-c1y2og7dbm7m9nig
Tags: 5.4.0-beta-3-1~exp1
* New upstream release
* Update the scirenderer dep
* Get ride of libjhdf5-java dependency

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
 * See the file ./license.txt
23
23
 -->
24
24
<refentry xmlns="http://docbook.org/ns/docbook" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:svg="http://www.w3.org/2000/svg" xmlns:mml="http://www.w3.org/1998/Math/MathML" xmlns:db="http://docbook.org/ns/docbook" version="5.0-subset Scilab" xml:id="sci_struct">
25
 
  <refnamediv>
26
 
    <refname>sci_struct</refname>
27
 
    <refpurpose>Scicos block structure of a scilab computational function</refpurpose>
28
 
  </refnamediv>
29
 
  <refsection id="Contents_sci_struct">
30
 
    <title>Contents</title>
31
 
    <itemizedlist>
32
 
      <listitem>
33
 
        <para>
34
 
          <link linkend="sci_struct">sci_struct - Scicos block structure of a scilab computational function</link>
35
 
        </para>
36
 
      </listitem>
37
 
      <listitem>
38
 
        <itemizedlist>
39
 
          <listitem>
40
 
            <para>
41
 
              <xref linkend="Module_sci_struct">Module</xref>
42
 
            </para>
43
 
          </listitem>
44
 
          <listitem>
45
 
            <para>
46
 
              <xref linkend="Description_sci_struct">Description</xref>
47
 
            </para>
48
 
          </listitem>
49
 
          <listitem>
50
 
            <para>
51
 
              <xref linkend="Inputsoutputs_sci_struct">Inputs/outputs</xref>
52
 
            </para>
53
 
          </listitem>
54
 
          <listitem>
55
 
            <para>
56
 
              <xref linkend="Events_sci_struct">Events</xref>
57
 
            </para>
58
 
          </listitem>
59
 
          <listitem>
60
 
            <para>
61
 
              <xref linkend="Parameters_sci_struct">Parameters</xref>
62
 
            </para>
63
 
          </listitem>
64
 
          <listitem>
65
 
            <para>
66
 
              <xref linkend="States_sci_struct">States</xref>
67
 
            </para>
68
 
          </listitem>
69
 
          <listitem>
70
 
            <para>
71
 
              <xref linkend="Zerocrossingsurfacesandmodes_sci_struct">Zero crossing surfaces and modes</xref>
72
 
            </para>
73
 
          </listitem>
74
 
          <listitem>
75
 
            <para>
76
 
              <xref linkend="Miscallaneous_sci_struct">Miscallaneous</xref>
77
 
            </para>
78
 
          </listitem>
79
 
        </itemizedlist>
80
 
      </listitem>
81
 
    </itemizedlist>
82
 
  </refsection>
83
 
  <refsection id="Module_sci_struct">
84
 
    <title>Module</title>
85
 
    <itemizedlist>
86
 
      <listitem>
87
 
        <para>
88
 
          <link linkend="xcos">xcos</link>
89
 
        </para>
90
 
      </listitem>
91
 
    </itemizedlist>
92
 
  </refsection>
93
 
  <refsection id="Description_sci_struct">
94
 
    <title>Description</title>
95
 
    <para>
96
 
      A Scicos computational function of type 5 can be realized by the use of a Scilab function.
97
 
      That function does not really differs from all other scilab function : one can use all functions and
98
 
      instructions of the scilab language inside that function to do the computation.
99
 
    </para>
100
 
    <para>
101
 
      Such a function must be written in a file with extension .sci, must be loaded inside scilab by the
102
 
      common loading scilab function (, , , ,...) and must have
103
 
      two right hand side arguments and one left hand side argument, as the following calling sequence :
104
 
    </para>
105
 
    <para>
106
 
      
107
 
    </para>
108
 
    <para>
109
 
      When the simulator is calling such a computational function, it build a scilab structure (in the previous exemple this is the named  rhs/lhs arguments) from his own internal C reprensation of a block structure (see 
110
 
      for more details about the C structure of scicos
111
 
      blocks).
112
 
    </para>
113
 
    <para>
114
 
      That scilab structure is a scilab typed list variable that have the following fields :
115
 
    </para>
116
 
    <para>
117
 
      
118
 
    </para>
119
 
    <para>
120
 
      Each fields are then accessible inside the scilab computational function by the use of :
121
 
    </para>
122
 
    <para>
123
 
      
124
 
    </para>
125
 
    <para>
126
 
      
127
 
    </para>
128
 
  </refsection>
129
 
  <refsection id="Inputsoutputs_sci_struct">
130
 
    <title>Inputs/outputs</title>
131
 
    <para>
132
 
      
133
 
    </para>
134
 
    <itemizedlist>
135
 
      <listitem>
136
 
        <para>
137
 
          <emphasis role="bold">block.nin :</emphasis> a scalar that gives the number of regular input ports. This is a read only data. 
138
 
        </para>
139
 
      </listitem>
140
 
      <listitem>
141
 
        <para>
142
 
          <emphasis role="bold">block.insz :</emphasis> a vector of size , that gives the dimensions and types of the regular input ports.
143
 
        </para>
144
 
        <itemizedlist>
145
 
          <listitem>
146
 
            <para>
147
 
              <emphasis role="bold"> :</emphasis> are the first dimensions.
148
 
            </para>
149
 
          </listitem>
150
 
          <listitem>
151
 
            <para>
152
 
              <emphasis role="bold"> :</emphasis> are the second dimensions.
153
 
            </para>
154
 
          </listitem>
155
 
          <listitem>
156
 
            <para>
157
 
              <emphasis role="bold"> :</emphasis> are the type of data (C coding).
158
 
              
159
 
            </para>
160
 
          </listitem>
161
 
        </itemizedlist>
162
 
        <para> This is a read only data. </para>
163
 
      </listitem>
164
 
      <listitem>
165
 
        <para>
166
 
          <emphasis role="bold">block.inptr :</emphasis> a list of size that enclosed typed matrices for regular input ports. Each element correspond to only one regular input port. Then i-th matrix of the block.inptr list will have the dimensions [ , ] and the type .
167
 
        </para>
168
 
        <para> The data type that can be provided by regular input ports are :</para>
169
 
        <itemizedlist>
170
 
          <listitem>
171
 
            <para>
172
 
              <emphasis role="bold">1:</emphasis> matrix of real numbers,
173
 
            </para>
174
 
          </listitem>
175
 
          <listitem>
176
 
            <para>
177
 
              <emphasis role="bold">2:</emphasis> matrix of complex numbers,
178
 
            </para>
179
 
          </listitem>
180
 
          <listitem>
181
 
            <para>
182
 
              <emphasis role="bold">3:</emphasis> matrix of int32 numbers,
183
 
            </para>
184
 
          </listitem>
185
 
          <listitem>
186
 
            <para>
187
 
              <emphasis role="bold">4:</emphasis> matrix of int16 numbers,
188
 
            </para>
189
 
          </listitem>
190
 
          <listitem>
191
 
            <para>
192
 
              <emphasis role="bold">5:</emphasis> matrix of int8 numbers,
193
 
            </para>
194
 
          </listitem>
195
 
          <listitem>
196
 
            <para>
197
 
              <emphasis role="bold">6:</emphasis> matrix of uint32 numbers,
198
 
            </para>
199
 
          </listitem>
200
 
          <listitem>
201
 
            <para>
202
 
              <emphasis role="bold">7:</emphasis> matrix of uint16 numbers,
203
 
            </para>
204
 
          </listitem>
205
 
          <listitem>
206
 
            <para>
207
 
              <emphasis role="bold">8:</emphasis> matrix of uint8 numbers.
208
 
              
209
 
            </para>
210
 
          </listitem>
211
 
        </itemizedlist>
212
 
        <para> This is a read only data. </para>
213
 
      </listitem>
214
 
      <listitem>
215
 
        <para>
216
 
          <emphasis role="bold">block.nout :</emphasis> a scalar that gives the number of regular output ports. This is a read only data. 
217
 
        </para>
218
 
      </listitem>
219
 
      <listitem>
220
 
        <para>
221
 
          <emphasis role="bold">block.outsz :</emphasis> a vector of size , that gives the dimensions and types of the regular output ports.
222
 
        </para>
223
 
        <itemizedlist>
224
 
          <listitem>
225
 
            <para>
226
 
              <emphasis role="bold"> :</emphasis> are the first dimensions.
227
 
            </para>
228
 
          </listitem>
229
 
          <listitem>
230
 
            <para>
231
 
              <emphasis role="bold"> :</emphasis> are the second dimensions.
232
 
            </para>
233
 
          </listitem>
234
 
          <listitem>
235
 
            <para>
236
 
              <emphasis role="bold"> :</emphasis> are the type of data (C coding).
237
 
              
238
 
            </para>
239
 
          </listitem>
240
 
        </itemizedlist>
241
 
        <para> This is a read only data. </para>
242
 
      </listitem>
243
 
      <listitem>
244
 
        <para>
245
 
          <emphasis role="bold">block.outptr :</emphasis> a list of size that enclosed typed matrices for regular output ports. Each element correspond to only one regular output port. Then i-th matrix of the block.outptr list will have the dimensions [ , ] and the type .
246
 
        </para>
247
 
        <para> The data type that can be provided by regular output ports are :</para>
248
 
        <itemizedlist>
249
 
          <listitem>
250
 
            <para>
251
 
              <emphasis role="bold">1:</emphasis> matrix of real numbers,
252
 
            </para>
253
 
          </listitem>
254
 
          <listitem>
255
 
            <para>
256
 
              <emphasis role="bold">2:</emphasis> matrix of complex numbers,
257
 
            </para>
258
 
          </listitem>
259
 
          <listitem>
260
 
            <para>
261
 
              <emphasis role="bold">3:</emphasis> matrix of int32 numbers,
262
 
            </para>
263
 
          </listitem>
264
 
          <listitem>
265
 
            <para>
266
 
              <emphasis role="bold">4:</emphasis> matrix of int16 numbers,
267
 
            </para>
268
 
          </listitem>
269
 
          <listitem>
270
 
            <para>
271
 
              <emphasis role="bold">5:</emphasis> matrix of int8 numbers,
272
 
            </para>
273
 
          </listitem>
274
 
          <listitem>
275
 
            <para>
276
 
              <emphasis role="bold">6:</emphasis> matrix of uint32 numbers,
277
 
            </para>
278
 
          </listitem>
279
 
          <listitem>
280
 
            <para>
281
 
              <emphasis role="bold">7:</emphasis> matrix of uint16 numbers,
282
 
            </para>
283
 
          </listitem>
284
 
          <listitem>
285
 
            <para>
286
 
              <emphasis role="bold">8:</emphasis> matrix of uint8 numbers.
287
 
              
288
 
            </para>
289
 
          </listitem>
290
 
        </itemizedlist>
291
 
        <para>
292
 
          Values of regular output ports will be saved in the<link linkend="C_struct">Cstructure</link> of the block only for =6 and =1.
293
 
        </para>
294
 
      </listitem>
295
 
    </itemizedlist>
296
 
    <para>
297
 
      
298
 
    </para>
299
 
  </refsection>
300
 
  <refsection id="Events_sci_struct">
301
 
    <title>Events</title>
302
 
    <para>
303
 
      
304
 
    </para>
305
 
    <itemizedlist>
306
 
      <listitem>
307
 
        <para>
308
 
          <emphasis role="bold">block.nevprt :</emphasis> a scalar given the event input port number (binary coding) which have activated the block. This is a read only data. 
309
 
        </para>
310
 
      </listitem>
311
 
      <listitem>
312
 
        <para>
313
 
          <emphasis role="bold">block.nevout :</emphasis> a scalar given the number of output event port of the block. This is a read only data. 
314
 
        </para>
315
 
      </listitem>
316
 
      <listitem>
317
 
        <para>
318
 
          <emphasis role="bold">block.evout :</emphasis> a vector of size corresponding to the register of output event. Values of output event register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =3.
319
 
        </para>
320
 
      </listitem>
321
 
    </itemizedlist>
322
 
    <para>
323
 
      
324
 
    </para>
325
 
  </refsection>
326
 
  <refsection id="Parameters_sci_struct">
327
 
    <title>Arguments</title>
328
 
    <para>
329
 
      
330
 
    </para>
331
 
    <itemizedlist>
332
 
      <listitem>
333
 
        <para>
334
 
          <emphasis role="bold">block.nrpar :</emphasis> a scalar given the number of real parameters. This is a read only data. 
335
 
        </para>
336
 
      </listitem>
337
 
      <listitem>
338
 
        <para>
339
 
          <emphasis role="bold">block.rpar :</emphasis> a vector of size corresponding to the real parameter register. This is a read only data. 
340
 
        </para>
341
 
      </listitem>
342
 
      <listitem>
343
 
        <para>
344
 
          <emphasis role="bold">block.nipar :</emphasis> a scalar given the number of integer parameters. This is a read only data. 
345
 
        </para>
346
 
      </listitem>
347
 
      <listitem>
348
 
        <para>
349
 
          <emphasis role="bold">block.ipar :</emphasis> a vector of size correspondig to the integer parameter register. This is a read only data. 
350
 
        </para>
351
 
      </listitem>
352
 
      <listitem>
353
 
        <para>
354
 
          <emphasis role="bold">block.nopar :</emphasis> a scalar given the number of object parameters. This is a read only data. 
355
 
        </para>
356
 
      </listitem>
357
 
      <listitem>
358
 
        <para>
359
 
          <emphasis role="bold">block.oparsz :</emphasis> a matrix of size , that respectively gives the first and the second dimension of object parameters. This is a read only data. 
360
 
        </para>
361
 
      </listitem>
362
 
      <listitem>
363
 
        <para>
364
 
          <emphasis role="bold">block.opartyp :</emphasis> a vector of size given the C coding type of data. This is a read only data. 
365
 
        </para>
366
 
      </listitem>
367
 
      <listitem>
368
 
        <para>
369
 
          <emphasis role="bold">block.opar :</emphasis> a list of size given the values of object parameters. Each element of can be either a typed matrix or a list. Only matrix that encloses numbers of type real, complex, int32, int16, int8, uint32, uint16 and uint8 are allowed, all other types of scilab data will be enclosed in a sub-list. This is a read only data.
370
 
        </para>
371
 
      </listitem>
372
 
    </itemizedlist>
373
 
    <para>
374
 
      
375
 
    </para>
376
 
  </refsection>
377
 
  <refsection id="States_sci_struct">
378
 
    <title>States</title>
379
 
    <para>
380
 
      
381
 
    </para>
382
 
    <itemizedlist>
383
 
      <listitem>
384
 
        <para>
385
 
          <emphasis role="bold">block.nz :</emphasis> a scalar given the number of discrete state for the block. This is a read only data. 
386
 
        </para>
387
 
      </listitem>
388
 
      <listitem>
389
 
        <para>
390
 
          <emphasis role="bold">block.z :</emphasis> a vector of size corresponding to the discrete state register. Values of discrete state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =2 and =5. 
391
 
        </para>
392
 
      </listitem>
393
 
      <listitem>
394
 
        <para>
395
 
          <emphasis role="bold">block.noz :</emphasis> a scalar that gives the number of discrete object state. This is a read only data. 
396
 
        </para>
397
 
      </listitem>
398
 
      <listitem>
399
 
        <para>
400
 
          <emphasis role="bold">block.ozsz :</emphasis> a matrix of size , that respectively gives the first and the second dimension of discrete object state. This is a read only data. 
401
 
        </para>
402
 
      </listitem>
403
 
      <listitem>
404
 
        <para>
405
 
          <emphasis role="bold">block.oztyp :</emphasis> a vector of size given the C coding type of data. 
406
 
        </para>
407
 
      </listitem>
408
 
      <listitem>
409
 
        <para>
410
 
          <emphasis role="bold">block.oz :</emphasis> a list of size given the values of discrete object states. Each element of can be either a typed matrix or a list. Only matrix that encloses numbers of type real, complex, int32, int16, int8, uint32, uint16 and uint8 are allowed, all other types of scilab data will be enclosed in a sub-list. Values of discrete object state will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =2 and =5. 
411
 
        </para>
412
 
      </listitem>
413
 
      <listitem>
414
 
        <para>
415
 
          <emphasis role="bold">block.nx :</emphasis> a scalar given the number of continuous state for the block. This is a read only data. 
416
 
        </para>
417
 
      </listitem>
418
 
      <listitem>
419
 
        <para>
420
 
          <emphasis role="bold">block.x :</emphasis> a vector of size given the value of the continuous state register. Values of the continuous state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6 and =2. 
421
 
        </para>
422
 
      </listitem>
423
 
      <listitem>
424
 
        <para>
425
 
          <emphasis role="bold">block.xd :</emphasis> a vector of size given the value of the derivative continuous state register. Values of the derivative continuous state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =0 and =2. 
426
 
        </para>
427
 
      </listitem>
428
 
      <listitem>
429
 
        <para>
430
 
          <emphasis role="bold">block.res :</emphasis> a vector of size corresponding to the Differential Algebraic Equation (DAE) residual. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =0, and =10.
431
 
        </para>
432
 
      </listitem>
433
 
    </itemizedlist>
434
 
    <para>
435
 
      
436
 
    </para>
437
 
  </refsection>
438
 
  <refsection id="Zerocrossingsurfacesandmodes_sci_struct">
439
 
    <title>Zero crossing surfaces and modes</title>
440
 
    <para>
441
 
      
442
 
    </para>
443
 
    <itemizedlist>
444
 
      <listitem>
445
 
        <para>
446
 
          <emphasis role="bold">block.ng :</emphasis> a scalar given the number of zero crossing surfaces for the block. This is a read only data. 
447
 
        </para>
448
 
      </listitem>
449
 
      <listitem>
450
 
        <para>
451
 
          <emphasis role="bold">block.g :</emphasis> a vector of size corresponding to the zero crossing register. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =9. 
452
 
        </para>
453
 
      </listitem>
454
 
      <listitem>
455
 
        <para>
456
 
          <emphasis role="bold">block.nmode :</emphasis> a scalar given the number of mode for the block. This is a read only data. 
457
 
        </para>
458
 
      </listitem>
459
 
      <listitem>
460
 
        <para>
461
 
          <emphasis role="bold">block.mode :</emphasis> a vector of size that corresponds to the mode register. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =9, with =1. 
462
 
        </para>
463
 
      </listitem>
464
 
    </itemizedlist>
465
 
    <para>
466
 
      
467
 
    </para>
468
 
  </refsection>
469
 
  <refsection id="Miscallaneous_sci_struct">
470
 
    <title>Miscallaneous</title>
471
 
    <para>
472
 
      
473
 
    </para>
474
 
    <itemizedlist>
475
 
      <listitem>
476
 
        <para>
477
 
          <emphasis role="bold">block.type :</emphasis> a scalar given the type of the block. This is a read only data.
478
 
        </para>
479
 
      </listitem>
480
 
      <listitem>
481
 
        <para>
482
 
          <emphasis role="bold">block.label :</emphasis> a string given the label of the block. This is a read only data.
483
 
        </para>
484
 
      </listitem>
485
 
    </itemizedlist>
486
 
    <para>
487
 
      
488
 
    </para>
489
 
  </refsection>
 
25
    <refnamediv>
 
26
        <refname>sci_struct</refname>
 
27
        <refpurpose>Scicos block structure of a scilab computational function</refpurpose>
 
28
    </refnamediv>
 
29
    <refsection id="Contents_sci_struct">
 
30
        <title>Contents</title>
 
31
        <itemizedlist>
 
32
            <listitem>
 
33
                <para>
 
34
                    <link linkend="sci_struct">sci_struct - Scicos block structure of a scilab computational function</link>
 
35
                </para>
 
36
            </listitem>
 
37
            <listitem>
 
38
                <itemizedlist>
 
39
                    <listitem>
 
40
                        <para>
 
41
                            <xref linkend="Module_sci_struct">Module</xref>
 
42
                        </para>
 
43
                    </listitem>
 
44
                    <listitem>
 
45
                        <para>
 
46
                            <xref linkend="Description_sci_struct">Description</xref>
 
47
                        </para>
 
48
                    </listitem>
 
49
                    <listitem>
 
50
                        <para>
 
51
                            <xref linkend="Inputsoutputs_sci_struct">Inputs/outputs</xref>
 
52
                        </para>
 
53
                    </listitem>
 
54
                    <listitem>
 
55
                        <para>
 
56
                            <xref linkend="Events_sci_struct">Events</xref>
 
57
                        </para>
 
58
                    </listitem>
 
59
                    <listitem>
 
60
                        <para>
 
61
                            <xref linkend="Parameters_sci_struct">Parameters</xref>
 
62
                        </para>
 
63
                    </listitem>
 
64
                    <listitem>
 
65
                        <para>
 
66
                            <xref linkend="States_sci_struct">States</xref>
 
67
                        </para>
 
68
                    </listitem>
 
69
                    <listitem>
 
70
                        <para>
 
71
                            <xref linkend="Zerocrossingsurfacesandmodes_sci_struct">Zero crossing surfaces and modes</xref>
 
72
                        </para>
 
73
                    </listitem>
 
74
                    <listitem>
 
75
                        <para>
 
76
                            <xref linkend="Miscallaneous_sci_struct">Miscallaneous</xref>
 
77
                        </para>
 
78
                    </listitem>
 
79
                </itemizedlist>
 
80
            </listitem>
 
81
        </itemizedlist>
 
82
    </refsection>
 
83
    <refsection id="Module_sci_struct">
 
84
        <title>Module</title>
 
85
        <itemizedlist>
 
86
            <listitem>
 
87
                <para>
 
88
                    <link linkend="xcos">xcos</link>
 
89
                </para>
 
90
            </listitem>
 
91
        </itemizedlist>
 
92
    </refsection>
 
93
    <refsection id="Description_sci_struct">
 
94
        <title>Description</title>
 
95
        <para>
 
96
            A Scicos computational function of type 5 can be realized by the use of a Scilab function.
 
97
            That function does not really differs from all other scilab function : one can use all functions and
 
98
            instructions of the scilab language inside that function to do the computation.
 
99
        </para>
 
100
        <para>
 
101
            Such a function must be written in a file with extension .sci, must be loaded inside scilab by the
 
102
            common loading scilab function (, , , ,...) and must have
 
103
            two right hand side arguments and one left hand side argument, as the following calling sequence :
 
104
        </para>
 
105
        <para>
 
106
            
 
107
        </para>
 
108
        <para>
 
109
            When the simulator is calling such a computational function, it build a scilab structure (in the previous exemple this is the named  rhs/lhs arguments) from his own internal C reprensation of a block structure (see 
 
110
            for more details about the C structure of scicos
 
111
            blocks).
 
112
        </para>
 
113
        <para>
 
114
            That scilab structure is a scilab typed list variable that have the following fields :
 
115
        </para>
 
116
        <para>
 
117
            
 
118
        </para>
 
119
        <para>
 
120
            Each fields are then accessible inside the scilab computational function by the use of :
 
121
        </para>
 
122
        <para>
 
123
            
 
124
        </para>
 
125
        <para>
 
126
            
 
127
        </para>
 
128
    </refsection>
 
129
    <refsection id="Inputsoutputs_sci_struct">
 
130
        <title>Inputs/outputs</title>
 
131
        <para>
 
132
            
 
133
        </para>
 
134
        <itemizedlist>
 
135
            <listitem>
 
136
                <para>
 
137
                    <emphasis role="bold">block.nin :</emphasis> a scalar that gives the number of regular input ports. This is a read only data. 
 
138
                </para>
 
139
            </listitem>
 
140
            <listitem>
 
141
                <para>
 
142
                    <emphasis role="bold">block.insz :</emphasis> a vector of size , that gives the dimensions and types of the regular input ports.
 
143
                </para>
 
144
                <itemizedlist>
 
145
                    <listitem>
 
146
                        <para>
 
147
                            <emphasis role="bold"> :</emphasis> are the first dimensions.
 
148
                        </para>
 
149
                    </listitem>
 
150
                    <listitem>
 
151
                        <para>
 
152
                            <emphasis role="bold"> :</emphasis> are the second dimensions.
 
153
                        </para>
 
154
                    </listitem>
 
155
                    <listitem>
 
156
                        <para>
 
157
                            <emphasis role="bold"> :</emphasis> are the type of data (C coding).
 
158
                            
 
159
                        </para>
 
160
                    </listitem>
 
161
                </itemizedlist>
 
162
                <para> This is a read only data. </para>
 
163
            </listitem>
 
164
            <listitem>
 
165
                <para>
 
166
                    <emphasis role="bold">block.inptr :</emphasis> a list of size that enclosed typed matrices for regular input ports. Each element correspond to only one regular input port. Then i-th matrix of the block.inptr list will have the dimensions [ , ] and the type .
 
167
                </para>
 
168
                <para> The data type that can be provided by regular input ports are :</para>
 
169
                <itemizedlist>
 
170
                    <listitem>
 
171
                        <para>
 
172
                            <emphasis role="bold">1:</emphasis> matrix of real numbers,
 
173
                        </para>
 
174
                    </listitem>
 
175
                    <listitem>
 
176
                        <para>
 
177
                            <emphasis role="bold">2:</emphasis> matrix of complex numbers,
 
178
                        </para>
 
179
                    </listitem>
 
180
                    <listitem>
 
181
                        <para>
 
182
                            <emphasis role="bold">3:</emphasis> matrix of int32 numbers,
 
183
                        </para>
 
184
                    </listitem>
 
185
                    <listitem>
 
186
                        <para>
 
187
                            <emphasis role="bold">4:</emphasis> matrix of int16 numbers,
 
188
                        </para>
 
189
                    </listitem>
 
190
                    <listitem>
 
191
                        <para>
 
192
                            <emphasis role="bold">5:</emphasis> matrix of int8 numbers,
 
193
                        </para>
 
194
                    </listitem>
 
195
                    <listitem>
 
196
                        <para>
 
197
                            <emphasis role="bold">6:</emphasis> matrix of uint32 numbers,
 
198
                        </para>
 
199
                    </listitem>
 
200
                    <listitem>
 
201
                        <para>
 
202
                            <emphasis role="bold">7:</emphasis> matrix of uint16 numbers,
 
203
                        </para>
 
204
                    </listitem>
 
205
                    <listitem>
 
206
                        <para>
 
207
                            <emphasis role="bold">8:</emphasis> matrix of uint8 numbers.
 
208
                            
 
209
                        </para>
 
210
                    </listitem>
 
211
                </itemizedlist>
 
212
                <para> This is a read only data. </para>
 
213
            </listitem>
 
214
            <listitem>
 
215
                <para>
 
216
                    <emphasis role="bold">block.nout :</emphasis> a scalar that gives the number of regular output ports. This is a read only data. 
 
217
                </para>
 
218
            </listitem>
 
219
            <listitem>
 
220
                <para>
 
221
                    <emphasis role="bold">block.outsz :</emphasis> a vector of size , that gives the dimensions and types of the regular output ports.
 
222
                </para>
 
223
                <itemizedlist>
 
224
                    <listitem>
 
225
                        <para>
 
226
                            <emphasis role="bold"> :</emphasis> are the first dimensions.
 
227
                        </para>
 
228
                    </listitem>
 
229
                    <listitem>
 
230
                        <para>
 
231
                            <emphasis role="bold"> :</emphasis> are the second dimensions.
 
232
                        </para>
 
233
                    </listitem>
 
234
                    <listitem>
 
235
                        <para>
 
236
                            <emphasis role="bold"> :</emphasis> are the type of data (C coding).
 
237
                            
 
238
                        </para>
 
239
                    </listitem>
 
240
                </itemizedlist>
 
241
                <para> This is a read only data. </para>
 
242
            </listitem>
 
243
            <listitem>
 
244
                <para>
 
245
                    <emphasis role="bold">block.outptr :</emphasis> a list of size that enclosed typed matrices for regular output ports. Each element correspond to only one regular output port. Then i-th matrix of the block.outptr list will have the dimensions [ , ] and the type .
 
246
                </para>
 
247
                <para> The data type that can be provided by regular output ports are :</para>
 
248
                <itemizedlist>
 
249
                    <listitem>
 
250
                        <para>
 
251
                            <emphasis role="bold">1:</emphasis> matrix of real numbers,
 
252
                        </para>
 
253
                    </listitem>
 
254
                    <listitem>
 
255
                        <para>
 
256
                            <emphasis role="bold">2:</emphasis> matrix of complex numbers,
 
257
                        </para>
 
258
                    </listitem>
 
259
                    <listitem>
 
260
                        <para>
 
261
                            <emphasis role="bold">3:</emphasis> matrix of int32 numbers,
 
262
                        </para>
 
263
                    </listitem>
 
264
                    <listitem>
 
265
                        <para>
 
266
                            <emphasis role="bold">4:</emphasis> matrix of int16 numbers,
 
267
                        </para>
 
268
                    </listitem>
 
269
                    <listitem>
 
270
                        <para>
 
271
                            <emphasis role="bold">5:</emphasis> matrix of int8 numbers,
 
272
                        </para>
 
273
                    </listitem>
 
274
                    <listitem>
 
275
                        <para>
 
276
                            <emphasis role="bold">6:</emphasis> matrix of uint32 numbers,
 
277
                        </para>
 
278
                    </listitem>
 
279
                    <listitem>
 
280
                        <para>
 
281
                            <emphasis role="bold">7:</emphasis> matrix of uint16 numbers,
 
282
                        </para>
 
283
                    </listitem>
 
284
                    <listitem>
 
285
                        <para>
 
286
                            <emphasis role="bold">8:</emphasis> matrix of uint8 numbers.
 
287
                            
 
288
                        </para>
 
289
                    </listitem>
 
290
                </itemizedlist>
 
291
                <para>
 
292
                    Values of regular output ports will be saved in the<link linkend="C_struct">Cstructure</link> of the block only for =6 and =1.
 
293
                </para>
 
294
            </listitem>
 
295
        </itemizedlist>
 
296
        <para>
 
297
            
 
298
        </para>
 
299
    </refsection>
 
300
    <refsection id="Events_sci_struct">
 
301
        <title>Events</title>
 
302
        <para>
 
303
            
 
304
        </para>
 
305
        <itemizedlist>
 
306
            <listitem>
 
307
                <para>
 
308
                    <emphasis role="bold">block.nevprt :</emphasis> a scalar given the event input port number (binary coding) which have activated the block. This is a read only data. 
 
309
                </para>
 
310
            </listitem>
 
311
            <listitem>
 
312
                <para>
 
313
                    <emphasis role="bold">block.nevout :</emphasis> a scalar given the number of output event port of the block. This is a read only data. 
 
314
                </para>
 
315
            </listitem>
 
316
            <listitem>
 
317
                <para>
 
318
                    <emphasis role="bold">block.evout :</emphasis> a vector of size corresponding to the register of output event. Values of output event register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =3.
 
319
                </para>
 
320
            </listitem>
 
321
        </itemizedlist>
 
322
        <para>
 
323
            
 
324
        </para>
 
325
    </refsection>
 
326
    <refsection id="Parameters_sci_struct">
 
327
        <title>Arguments</title>
 
328
        <para>
 
329
            
 
330
        </para>
 
331
        <itemizedlist>
 
332
            <listitem>
 
333
                <para>
 
334
                    <emphasis role="bold">block.nrpar :</emphasis> a scalar given the number of real parameters. This is a read only data. 
 
335
                </para>
 
336
            </listitem>
 
337
            <listitem>
 
338
                <para>
 
339
                    <emphasis role="bold">block.rpar :</emphasis> a vector of size corresponding to the real parameter register. This is a read only data. 
 
340
                </para>
 
341
            </listitem>
 
342
            <listitem>
 
343
                <para>
 
344
                    <emphasis role="bold">block.nipar :</emphasis> a scalar given the number of integer parameters. This is a read only data. 
 
345
                </para>
 
346
            </listitem>
 
347
            <listitem>
 
348
                <para>
 
349
                    <emphasis role="bold">block.ipar :</emphasis> a vector of size correspondig to the integer parameter register. This is a read only data. 
 
350
                </para>
 
351
            </listitem>
 
352
            <listitem>
 
353
                <para>
 
354
                    <emphasis role="bold">block.nopar :</emphasis> a scalar given the number of object parameters. This is a read only data. 
 
355
                </para>
 
356
            </listitem>
 
357
            <listitem>
 
358
                <para>
 
359
                    <emphasis role="bold">block.oparsz :</emphasis> a matrix of size , that respectively gives the first and the second dimension of object parameters. This is a read only data. 
 
360
                </para>
 
361
            </listitem>
 
362
            <listitem>
 
363
                <para>
 
364
                    <emphasis role="bold">block.opartyp :</emphasis> a vector of size given the C coding type of data. This is a read only data. 
 
365
                </para>
 
366
            </listitem>
 
367
            <listitem>
 
368
                <para>
 
369
                    <emphasis role="bold">block.opar :</emphasis> a list of size given the values of object parameters. Each element of can be either a typed matrix or a list. Only matrix that encloses numbers of type real, complex, int32, int16, int8, uint32, uint16 and uint8 are allowed, all other types of scilab data will be enclosed in a sub-list. This is a read only data.
 
370
                </para>
 
371
            </listitem>
 
372
        </itemizedlist>
 
373
        <para>
 
374
            
 
375
        </para>
 
376
    </refsection>
 
377
    <refsection id="States_sci_struct">
 
378
        <title>States</title>
 
379
        <para>
 
380
            
 
381
        </para>
 
382
        <itemizedlist>
 
383
            <listitem>
 
384
                <para>
 
385
                    <emphasis role="bold">block.nz :</emphasis> a scalar given the number of discrete state for the block. This is a read only data. 
 
386
                </para>
 
387
            </listitem>
 
388
            <listitem>
 
389
                <para>
 
390
                    <emphasis role="bold">block.z :</emphasis> a vector of size corresponding to the discrete state register. Values of discrete state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =2 and =5. 
 
391
                </para>
 
392
            </listitem>
 
393
            <listitem>
 
394
                <para>
 
395
                    <emphasis role="bold">block.noz :</emphasis> a scalar that gives the number of discrete object state. This is a read only data. 
 
396
                </para>
 
397
            </listitem>
 
398
            <listitem>
 
399
                <para>
 
400
                    <emphasis role="bold">block.ozsz :</emphasis> a matrix of size , that respectively gives the first and the second dimension of discrete object state. This is a read only data. 
 
401
                </para>
 
402
            </listitem>
 
403
            <listitem>
 
404
                <para>
 
405
                    <emphasis role="bold">block.oztyp :</emphasis> a vector of size given the C coding type of data. 
 
406
                </para>
 
407
            </listitem>
 
408
            <listitem>
 
409
                <para>
 
410
                    <emphasis role="bold">block.oz :</emphasis> a list of size given the values of discrete object states. Each element of can be either a typed matrix or a list. Only matrix that encloses numbers of type real, complex, int32, int16, int8, uint32, uint16 and uint8 are allowed, all other types of scilab data will be enclosed in a sub-list. Values of discrete object state will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =2 and =5. 
 
411
                </para>
 
412
            </listitem>
 
413
            <listitem>
 
414
                <para>
 
415
                    <emphasis role="bold">block.nx :</emphasis> a scalar given the number of continuous state for the block. This is a read only data. 
 
416
                </para>
 
417
            </listitem>
 
418
            <listitem>
 
419
                <para>
 
420
                    <emphasis role="bold">block.x :</emphasis> a vector of size given the value of the continuous state register. Values of the continuous state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6 and =2. 
 
421
                </para>
 
422
            </listitem>
 
423
            <listitem>
 
424
                <para>
 
425
                    <emphasis role="bold">block.xd :</emphasis> a vector of size given the value of the derivative continuous state register. Values of the derivative continuous state register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =4, =6, =0 and =2. 
 
426
                </para>
 
427
            </listitem>
 
428
            <listitem>
 
429
                <para>
 
430
                    <emphasis role="bold">block.res :</emphasis> a vector of size corresponding to the Differential Algebraic Equation (DAE) residual. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =0, and =10.
 
431
                </para>
 
432
            </listitem>
 
433
        </itemizedlist>
 
434
        <para>
 
435
            
 
436
        </para>
 
437
    </refsection>
 
438
    <refsection id="Zerocrossingsurfacesandmodes_sci_struct">
 
439
        <title>Zero crossing surfaces and modes</title>
 
440
        <para>
 
441
            
 
442
        </para>
 
443
        <itemizedlist>
 
444
            <listitem>
 
445
                <para>
 
446
                    <emphasis role="bold">block.ng :</emphasis> a scalar given the number of zero crossing surfaces for the block. This is a read only data. 
 
447
                </para>
 
448
            </listitem>
 
449
            <listitem>
 
450
                <para>
 
451
                    <emphasis role="bold">block.g :</emphasis> a vector of size corresponding to the zero crossing register. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =9. 
 
452
                </para>
 
453
            </listitem>
 
454
            <listitem>
 
455
                <para>
 
456
                    <emphasis role="bold">block.nmode :</emphasis> a scalar given the number of mode for the block. This is a read only data. 
 
457
                </para>
 
458
            </listitem>
 
459
            <listitem>
 
460
                <para>
 
461
                    <emphasis role="bold">block.mode :</emphasis> a vector of size that corresponds to the mode register. Values of that register will be saved in the<link linkend="C_struct">C structure</link> of the block only for =9, with =1. 
 
462
                </para>
 
463
            </listitem>
 
464
        </itemizedlist>
 
465
        <para>
 
466
            
 
467
        </para>
 
468
    </refsection>
 
469
    <refsection id="Miscallaneous_sci_struct">
 
470
        <title>Miscallaneous</title>
 
471
        <para>
 
472
            
 
473
        </para>
 
474
        <itemizedlist>
 
475
            <listitem>
 
476
                <para>
 
477
                    <emphasis role="bold">block.type :</emphasis> a scalar given the type of the block. This is a read only data.
 
478
                </para>
 
479
            </listitem>
 
480
            <listitem>
 
481
                <para>
 
482
                    <emphasis role="bold">block.label :</emphasis> a string given the label of the block. This is a read only data.
 
483
                </para>
 
484
            </listitem>
 
485
        </itemizedlist>
 
486
        <para>
 
487
            
 
488
        </para>
 
489
    </refsection>
490
490
</refentry>