Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.1.0 - Português

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

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

Ajuda do Scilab >> Xcos > palettes > Sources_pal > Counter

Counter

Counter

Block Screenshot

Description

This block counts with an increment/decrement value equal to one from Minimum to Maximum or from Maximum to Minimum depending on the choice of the Rule parameter.

Data types

  • Output: scalar double.

Parameters

  • Minimum

    The lowest number of the counter.

    Properties : Type 'vec' of size 1.

  • Maximum

    The highest number of the counter.

    Properties : Type 'vec' of size 1.

  • Rule (1:Increment, 2:Decrement)

    The rule of counting :

    • 1: Counts from the lowest number to the highest number. The count is increasing.

    • 2: Counts from the highest number to the lowest number. The count is decreasing.

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

  • object discrete-time state: no

  • name of computational function: counter

Example

This diagram shows the Counter block output versus time.

Interfacing function

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

Computational function

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

See also

Report an issue
<< CONST_m Sources_pal CURV_f >>

Copyright (c) 2022-2023 (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:
Tue Feb 25 08:52:41 CET 2020