Name

SCALAR2VECTOR — Scalar to vector

Block Screenshot

Contents

Palette

Description

This block convert a scalar value into a vector of identical elements.When using blocks with more than one input port (such as the Sum or Relational Operator block), you can mix vector and scalar inputs. When you do this, the scalar inputs are expanded into vectors of identical elements whose widths are equal to the width of the vector inputs. If more than one input port is a vector, they must have the same number of elements.

Dialog box

  • size of output

    Number of component in vector output.

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

Interfacing function

  • SCI/modules/scicos_blocks/macros/Branching/SCALAR2VECTOR.sci

Computational function

  • SCI/modules/scicos_blocks/src/c/scalar2vector.c (Type 4)

Authors

Ramine Nikoukhah - INRIA