Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
5.3.0 - Français

Change language to:
English - 日本語 - Português

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

Manuel Scilab >> xcos > palettes > Sources palette > TKSCALE


Adjust constant value with a tk widget

Block Screenshot


This source block generates a piecewise constant signal the value of which can be set interactively using a TK widget in the course of the simulation. The output value is the value set by the slider (an integer between Min value and Max value) divided by the Normalization factor. Increasing proportionaly all three block parameters does not change the output range, but it does increase precision.

Dialog box

  • Min value

    An integer specifying the min value in the range of the scale.

    Properties : Type 'vec' of size 1.

  • Max value

    An integer specifying the max value in the range of the scale.

    Properties : Type 'vec' of size 1.

  • Normalization

    The output of the block is the integer value specified by the slider (an integer between Min value and the Max value) divided by this Normalization factor.

    Properties : Type 'vec' of size 1.

Default properties

  • always active: no

  • direct-feedthrough: no

  • zero-crossing: no

  • mode: no

  • regular outputs:

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

  • number/sizes of activation inputs: 1

  • number/sizes of activation outputs: 0

  • continuous-time state: no

  • discrete-time state: no

  • object discrete-time state: no

  • name of computational function: tkscaleblk

Interfacing function

  • SCI/modules/scicos_blocks/macros/Sources/TKSCALE.sci

Computational function

  • SCI/modules/scicos/macros/scicos_scicos/tkscaleblk.sci (Type 5)


Ramine Nikoukhah - INRIA

<< TIME_f Sources palette Thermohydraulics palette >>

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 Jan 26 16:24:17 CET 2011