22
22
* See the file ./license.txt
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="scicos_params">
26
<refname>scicos_params</refname>
27
<refpurpose>Define a param structure</refpurpose>
29
<refsection id="Module_scicos_params">
34
<link linkend="xcos">xcos</link>
39
<refsection id="params_scicos_params">
53
<emphasis role="bold">wpar</emphasis>
55
<para> This vector is not currently used.</para>
56
<para> It may be used in the future to code window sizes of the editor.</para>
61
Type : column vector or real.
66
<emphasis role="bold">title</emphasis>
68
<para> Vector of character strings, where the first one is the diagram title and default name of save file name, and the second one is the path of the directory of the file name.</para>
73
Type : row vector of strings.
78
<emphasis role="bold">tol</emphasis>
81
A vector containing simulation parameters including
82
various tolerances used by the solver:
89
<emphasis role="bold">atol </emphasis>
92
Integrator absolute tolerance for the numerical solver.
100
<emphasis role="bold">rtol </emphasis>
103
Integrator relative tolerance for the numerical solver.
111
<emphasis role="bold">ttol </emphasis>
117
If an integration period is less
118
than ttol, the numerical solver is not called.
126
<emphasis role="bold">deltat</emphasis>
129
Maximum integration time interval.
132
If an integration period is larger than
133
deltat, the numerical solver is called more than
134
once in such a way that for each call the integration
135
period remains below deltat
142
<emphasis role="bold">scale </emphasis>
145
Real-time scaling; the value 0 corresponds to no
149
It associates a Scicos simulation time to the real
153
A value of 1 means that each Scicos unit of time
154
corresponds to one second.
162
<emphasis role="bold">solver</emphasis>
165
Choice of numerical solver.
168
The value 0 implies an ODE solver and 100
169
implies a DAE solver.
177
<emphasis role="bold">hmax </emphasis>
180
Maximum step size for the numerical solver.
195
Type : column vector of real.
200
<emphasis role="bold">tf</emphasis>
202
<para> Final time simulation.</para>
203
<para> The simulation stops at this time.</para>
204
<para> The default value is 100000.</para>
214
<emphasis role="bold">context</emphasis>
216
<para> A vector of strings containing Scilab instructions defining Scilab variables to be used inside block's dialog box as symbolic parameters.</para>
217
<para> All valid Scilab instructions can be used and also comments.</para>
219
Size : number of lines of the context.
222
Type : column vector of strings.
227
<emphasis role="bold">void1</emphasis>
229
<para> unused field.</para>
239
<emphasis role="bold">options</emphasis>
241
<para> Scilab object of type scsopt defining graphical properties of the editor such as background color and link color.</para>
243
The fields are the following:
250
<emphasis role="bold">3D </emphasis>
253
A list with two entries. The first one is a boolean
254
indicating whether or not blocks should have 3D aspect.
257
The second entry indicates the color in the current colormap
258
to be used to create the 3D effect.
261
The default is 33 which corresponds to gray added by
262
Scicos to the standard colormap, which contains 32 colors.
265
The default value is list(%t,33).
273
<emphasis role="bold">Background</emphasis>
276
Vector with two entries: background and
280
The default value is [8,1].
288
<emphasis role="bold">link </emphasis>
291
Default link colors for regular and activation links.
294
These colors are used only at link construction.
297
Changing them does not affect already constructed links.
300
The default value is [1,5], which corresponds to black and
301
red if the standard Scilab colormap is used.
309
<emphasis role="bold">ID </emphasis>
312
A list of two vectors including font number and sizes.
315
The default value is [5,1],[4,1].
323
<emphasis role="bold">Cmap </emphasis>
326
An n,3 matrix containing RGB values of colors
327
to be added to the colormap.
330
The default value is, [0.8,0.8,0.8] i.e., the color gray.
342
Type : scilab tlist of type scsopt.
347
<emphasis role="bold">void2</emphasis>
349
<para> unused field.</para>
359
<emphasis role="bold">void3</emphasis>
361
<para> unused field.</para>
371
<emphasis role="bold">doc</emphasis>
373
<para> User defined diagram documentation structure.</para>
383
<refsection id="Filecontent_scicos_params">
384
<title>File content</title>
387
<para> SCI/modules/scicos/macros/scicos_scicos/scicos_params.sci</para>
26
<refname>scicos_params</refname>
27
<refpurpose>Define a param structure</refpurpose>
29
<refsection id="Module_scicos_params">
34
<link linkend="xcos">xcos</link>
39
<refsection id="params_scicos_params">
53
<emphasis role="bold">wpar</emphasis>
55
<para> This vector is not currently used.</para>
56
<para> It may be used in the future to code window sizes of the editor.</para>
61
Type : column vector or real.
66
<emphasis role="bold">title</emphasis>
68
<para> Vector of character strings, where the first one is the diagram title and default name of save file name, and the second one is the path of the directory of the file name.</para>
73
Type : row vector of strings.
78
<emphasis role="bold">tol</emphasis>
81
A vector containing simulation parameters including
82
various tolerances used by the solver:
89
<emphasis role="bold">atol </emphasis>
92
Integrator absolute tolerance for the numerical solver.
100
<emphasis role="bold">rtol </emphasis>
103
Integrator relative tolerance for the numerical solver.
111
<emphasis role="bold">ttol </emphasis>
117
If an integration period is less
118
than ttol, the numerical solver is not called.
126
<emphasis role="bold">deltat</emphasis>
129
Maximum integration time interval.
132
If an integration period is larger than
133
deltat, the numerical solver is called more than
134
once in such a way that for each call the integration
135
period remains below deltat
142
<emphasis role="bold">scale </emphasis>
145
Real-time scaling; the value 0 corresponds to no
149
It associates a Scicos simulation time to the real
153
A value of 1 means that each Scicos unit of time
154
corresponds to one second.
162
<emphasis role="bold">solver</emphasis>
165
Choice of numerical solver.
168
The value 0 implies an ODE solver and 100
169
implies a DAE solver.
177
<emphasis role="bold">hmax </emphasis>
180
Maximum step size for the numerical solver.
195
Type : column vector of real.
200
<emphasis role="bold">tf</emphasis>
202
<para> Final time simulation.</para>
203
<para> The simulation stops at this time.</para>
204
<para> The default value is 100000.</para>
214
<emphasis role="bold">context</emphasis>
216
<para> A vector of strings containing Scilab instructions defining Scilab variables to be used inside block's dialog box as symbolic parameters.</para>
217
<para> All valid Scilab instructions can be used and also comments.</para>
219
Size : number of lines of the context.
222
Type : column vector of strings.
227
<emphasis role="bold">void1</emphasis>
229
<para> unused field.</para>
239
<emphasis role="bold">options</emphasis>
241
<para> Scilab object of type scsopt defining graphical properties of the editor such as background color and link color.</para>
243
The fields are the following:
250
<emphasis role="bold">3D </emphasis>
253
A list with two entries. The first one is a boolean
254
indicating whether or not blocks should have 3D aspect.
257
The second entry indicates the color in the current colormap
258
to be used to create the 3D effect.
261
The default is 33 which corresponds to gray added by
262
Scicos to the standard colormap, which contains 32 colors.
265
The default value is list(%t,33).
273
<emphasis role="bold">Background</emphasis>
276
Vector with two entries: background and
280
The default value is [8,1].
288
<emphasis role="bold">link </emphasis>
291
Default link colors for regular and activation links.
294
These colors are used only at link construction.
297
Changing them does not affect already constructed links.
300
The default value is [1,5], which corresponds to black and
301
red if the standard Scilab colormap is used.
309
<emphasis role="bold">ID </emphasis>
312
A list of two vectors including font number and sizes.
315
The default value is [5,1],[4,1].
323
<emphasis role="bold">Cmap </emphasis>
326
An n,3 matrix containing RGB values of colors
327
to be added to the colormap.
330
The default value is, [0.8,0.8,0.8] i.e., the color gray.
342
Type : scilab tlist of type scsopt.
347
<emphasis role="bold">void2</emphasis>
349
<para> unused field.</para>
359
<emphasis role="bold">void3</emphasis>
361
<para> unused field.</para>
371
<emphasis role="bold">doc</emphasis>
373
<para> User defined diagram documentation structure.</para>
383
<refsection id="Filecontent_scicos_params">
384
<title>File content</title>
387
<para> SCI/modules/scicos/macros/scicos_scicos/scicos_params.sci</para>