Scilab Website | Contribute with GitLab | Mailing list archives | ATOMS toolboxes
Scilab Online Help
6.0.1 - English

Change language to:
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 Help >> Xcos > palettes > Sources palette > Modulo_Count

Modulo_Count

Modulo counter (0 to N counter)

Block Screenshot

Description

It is a discrete block. The block outputs a periodic scalar piecewise constant signal. Signal begin at Initial State value. The output is incremented when block received an event on its activation input until output reaches the Upper Limit parameter value. At this time the output is reset to 0. For a periodic event input, the output is a quantized sawtooth signal.

Data type

  • Output: scalar double.

Dialog box

  • Initial State

    Scalar. Initial discrete state.

    Properties : Type 'vec' of size 1

  • Upper Limit (positive number)

    Scalar. Number of required step.

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

Example

This diagram shows the Modulo_count usage as a quantized sawtooth generator application.

Interfacing function

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

Computational function

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

Report an issue
<< GENSQR_f Sources palette PULSE_SC >>

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 Feb 12 19:26:57 CET 2018