Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.1 - Русский

Change language to:
English - 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 >> Xcos > palettes > User defined functions palette > generic_block3

generic_block3

Generic block

Block Screenshot

Description

The block provides a generic interfacing function but the computational function needs to be defined separately, either as a Scilab function or a Fortran or a C function. Besides the name of the function, user should specify information such as the type, whether or not the block contains a direct feed-through term. The function realising computational functions of generic blocks of a Scicos diagram must be saved along with the diagram and loaded or dynamically linked before simulation.

Parameters

  • Simulation function

    Name of the function to be loaded.

    Properties : Type 'str' of size 1

  • Function type

    Type of the computational function supported by Scicos.

    Properties : Type 'vec' of size 1

  • Input ports sizes

    Number of regular input ports.

    Properties : Type 'mat' of size [-1,2]

  • Input ports type

    Set the datatype of the regular input ports.

    Properties : Type 'vec' of size -1

  • Output port sizes

    Number of regular output ports.

    Properties : Type 'mat' of size [-1,2]

  • Output ports type

    Set the datatype of the regular output ports.

    Properties : Type 'vec' of size -1

  • Input event ports sizes

    a vector of ones, size of event input ports. The size of the vector gives the number of event input ports.

    Properties : Type 'vec' of size -1

  • Output events ports sizes

    a vector of ones, size of event output ports. The size of the vector gives the number of of event output ports.

    Properties : Type 'vec' of size -1

  • Initial continuous state

    A column vector of Initial State Conditions.

    Properties : Type 'vec' of size -1

  • Initial discrete state

    A column vector Initial discrete Conditions.

    Properties : Type 'vec' of size -1

  • Initial object state

    A Scilab list that defined the initial object state (oz).

    Properties : Type 'lis' of size -1

  • Real parameters vector

    column vector. Any parameters used in the block can be defined here as a column vector.

    Properties : Type 'vec' of size -1

  • Integer parameters vector

    column vector. Any integer parameters used in the block can be defined here as a column vector.

    Properties : Type 'vec' of size -1

  • Object parameters list

    A Scilab list that defined the list of the Object parameters (opar).

    Properties : Type 'lis' of size -1

  • Number of modes

    Number of Right hand side functions in the system.

    Properties : Type 'vec' of size 1

  • Number of zero_crossings

    No. of zero-crossings

    Properties : Type 'vec' of size 1

  • Initial firing vector

    vector. Size of this vector corresponds to the number of event outputs. The value of the i-th entry specifies the time of the preprogrammed event firing on the i-th output event port. If less than zero, no event is preprogrammed.

    Properties : Type 'vec' of size sum(%6)

  • Direct feedthrough

    character "y" or "n", specifies if block has a direct input to output feedthrough.

    Properties : Type 'vec' of size 1

  • Time dependence

    Time dependence : character "y" or "n", specifies if block output depends explicitly on time.

    Properties : Type 'vec' of size 1

Default properties

  • always active: no

  • direct-feedthrough: yes

  • zero-crossing: no

  • mode: no

  • regular inputs:

    - port 1 : size [1,1] / type 1

  • regular outputs:

    - port 1 : size [1,1] / type 1

  • number/sizes of activation inputs: 0

  • number/sizes of activation outputs: 0

  • continuous-time state: no

  • discrete-time state: no

  • object discrete-time state: no

  • name of computational function: sinblk

Interfacing function

  • SCI/modules/scicos_blocks/macros/Misc/generic_block3.sci

Computational function

  • SCI/modules/scicos_blocks/src/fortran/sinblk.f (Type 4)

Report an issue
<< fortran_block User defined functions palette scifunc_block_m >>

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:
Mon Jan 03 14:40:11 CET 2022