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

Change language to:
Français - 日本語 - Português - Русский

Please note that the recommended version of Scilab is 2025.0.0. This page might be outdated.
See the recommended documentation of this function

Scilab Help >> Xcos > Scilab/Xcos Data Structures > Compilation/Simulation > scicos_state

scicos_state

Define a state structure

Module

state

Scilab typed list of type xcs. It contains all the states of the model, that is, everything than can evolve during the simulation.

state contains x, z, oz, iz, tevts, evtspt, pointi and outtb.

Size : 9.

Type : scilab tlist.

  • x

    The continuous-time state register, which is obtained by concatenating the continuous-time states of all the blocks.

    Size : total of all the size of continuous-time state registers.

    Type : column vector of real numbers.

  • z

    The discrete-time state register, which is obtained by concatenating the discrete-time states of all the blocks.

    Size : total of all the size of discrete-time state registers.

    Type : column vector of real number.

  • oz

    The list of the object discrete-time state, which is obtained by concatenating the object discrete-time states of all the blocks.

    Size : total of all the size of object state.

    Type : list of scilab object.

  • iz

    Vector of size equal to the number of blocks.

    That vector is used to store pointers of the working state register (work). If a block needs to allocate memory at initialization (flag 4), the associated pointer is saved here.

    Size : number of blocks.

    Type : column vector of real numbers.

  • tevts

    Vector of size equal to the number of activation sources. It contains the scheduled times for programmed activations in evtspt.

    Size : number of activation sources.

    Type : column vector of integers.

  • evtspt

    Vector of size equal to the number of activation sources. It is an event scheduler.

    Size : number of activation sources.

    Type : column vector of integers.

  • pointi

    The number of the next programmed event.

    Size : 1.

    Type : integer.

  • outtb

    Scilab list containing all output registers of blocks. Each element of that list contains typed matrix-based data.

    Size : number of regular output ports.

    Type : list of scilab matrix.

File content

  • SCI/modules/scicos/macros/scicos_scicos/scicos_state.sci

Report an issue
<< scicos_sim Compilation/Simulation Diagram >>

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:
Wed Apr 01 10:14:06 CEST 2015