Scilab Home page | Wiki | Bug tracker | Forge | Mailing list archives | ATOMS | File exchange
Please login or create an account
Change language to: English - Português - Русский - 日本語

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

Aide de Scilab >> Xcos > palettes > User defined functions palette > scifunc_block_m

scifunc_block_m

Scilab function block

Block Screenshot

Description

This block can realize any type of Scicos block. The function of the block is defined interactively using dialogue boxes and in Scilab language. During simulation, these instructions are interpreted by Scilab; the simulation of diagrams that include these types of blocks is slower. For more information see Scicos reference manual.

Dialog box

  • input ports sizes

    a matrix. Number of regular input ports

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

    Example : [1,1] for one input of size 1x1; [1,1;2,3] for two inputs of size 1x1 and 2x3

  • output port sizes

    a matrix. Number of regular output ports

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

    Example : [1,1] for one output of size 1x1; [1,1;2,3] for two outputs of size 1x1 and 2x3

  • input event ports sizes

    a column vector. Number of input event ports

    Properties : Type 'vec' of size -1

    Example : [1] for one input event port; [1;1] for two input event ports

  • output events ports sizes

    a column vector. Number of output event ports

    Properties : Type 'vec' of size -1

    Example : [1] for one output event port; [1;1] for two output event ports

  • initial continuous state

    a column vector.

    Properties : Type 'vec' of size -1

    Example : [0;0] for two initial continuous states

  • initial discrete state

    a column vector.

    Properties : Type 'vec' of size -1

    Example : [0;0] for two initial discrete states

  • System parameters vector

    a column vector.

    Properties : Type 'vec' of size -1

    Example : [0.5;1.5;2.5] for three parameters

  • initial firing vector

    a column 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(Number of output event ports)

    Example : [1;2] 1 and 2 are the preprogrammed events firing that correspond to the first output event port and to the second output event port respectively

  • is block always active

    Properties : Type 'vec' of size 1

    Example : 1 the block is always active; 0 the block is not always active

  • Other dialogues are opened consecutively where the user may write Scilab code associated with the computations needed (block initialization, outputs, continuous and discrete state, output events date, block ending).

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: scifunc

Example

Interfacing function

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

Computational function

  • SCI/modules/scicos/src/fortran/scifunc.f (Type 3)

Scilab Enterprises
Copyright (c) 2011-2017 (Scilab Enterprises)
Copyright (c) 1989-2012 (INRIA)
Copyright (c) 1989-2007 (ENPC)
with contributors
Last updated:
Thu Oct 02 13:54:43 CEST 2014