Counter
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.
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.
This diagram shows the Counter block output versus time. Open this example in Xcos