Counter

Scicos Block
fr - eng

##
Counter

### Contents

- Counter
  - Palette
  - Description
  - Dialog box
  - Default properties
  - Interfacing function
  - Computational function
  - See also
  - Authors

### Palette

- Sources - Sources palette

### Description

This block counts from minimal to maximal or from maximal to minimal depending on the choice of the rule.

### Dialog box

- 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. If it is 1 then the counter counts from the lower number to the higher number. the count in this case is increasing. otherwise, if the rule is equal to 2 the counter will decrease and it will count from the higher number to the lower one.
  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

### Interfacing function

- SCI/macros/scicos_blocks/Sources/Counter.sci [view code]

### Computational function

- SCI/routines/scicos/counter.c (Type 4) [view code]

### See also

- Modulo_Count - Modulo counter (Scicos Block)

### Authors

Fady NASSIF INRIA