Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
2025.0.0 - English


scicos_params

Define a param structure

params

Diagram configuration values. Some of the value are graphical information, others directly configure the simulator.

Type : scilab tlist of type "params" with fields : wpar, title, tol, tf, context, void1, options, void2, void3 and doc.

wpar

This vector is not currently used. It may be used in the future to code window sizes of the editor.

Type : column vector or real.

title

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.

Size : 2.

Type : row vector of strings.

tol

A vector containing simulation parameters including various tolerances used by the solver. This vector is composed of : [ atol , rtol , ttol , deltat , scale , solver , hmax ] where :

(1) atol

Integrator absolute tolerance for the numerical solver.

(2) rtol

Integrator relative tolerance for the numerical solver.

(3) ttol

Tolerance on time.

If an integration period is less than ttol, the numerical solver is not called.

(4) deltat

Maximum integration time interval.

If an integration period is larger than deltat, the numerical solver is called more than once in such a way that for each call the integration period remains below deltat.

(5) scale

Real-time scaling; the value 0 corresponds to no real-time scaling.

It associates a Scicos simulation time to the real time in seconds.

A value of 1 means that each Scicos unit of time corresponds to one second. A value of 0.5 means that each Scicos unit of time corresponds to 500 milliseconds.

(7) hmax

Maximum step size for the numerical solver.

0 means no limit, let the solver use its own time predicate.

Size : 7.

Type : column vector of real.

tf

Final time simulation. The simulation stops at this time.

Size : 1.

Type : real.

context

A vector of strings containing Scilab instructions defining Scilab variables to be used inside block's dialog box as symbolic parameters.

All valid Scilab instructions can be used and also comments.

Size : number of lines of the context.

Type : column vector of strings.

void1

unused field.

Size : -.

Type : -.

options

Scilab object of type "scsopt" defining graphical properties of the editor such as background color and link color.

Type : scilab tlist of type "scsopt" with fields : 3D, Background, link, ID and Cmap

3D

Not used.

Background

Vector with two entries: background and foreground colors as Scilab colors.

The default value is [8,1].

link

Not used.

ID

Not used.

Cmap

Not used.

void2

unused field.

Size : -.

Type : -.

void3

unused field.

Size : -.

Type : -.

doc

User defined diagram documentation structure.

Size : 1.

Type : Strings.

Report an issue
<< scicos_model Scilab/Xcos Data Structures scicos_sim >>

Copyright (c) 2022-2024 (Dassault Systèmes)
Copyright (c) 2017-2022 (ESI Group)
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 24 11:13:15 CEST 2024