Counter Limited
Counter with reset when the upper limit is reached.
blockType: Counter Limited
Path in the library:
|
Description
The Counter Limited block counts until the specified upper limit is reached. The counter then returns to zero and starts counting again. The counter is always initialised with zero.
Ports
Output
#
OUT_1
—
counter values
scalar
Details
The counter value as an unsigned integer with a bit size of 8, 16, or 32 bits. The block uses the smallest number of bits required to represent the upper limit.
Data types |
|
Complex numbers support |
No |
Parameters
Main
#
Sample time —
interval between calculation steps
SampleTime (real number / vector of two real numbers)
Details
Specify the interval between calculation steps as a non-negative number. To inherit a calculation step, set this parameters to -1
.
Default value |
|
Program usage name |
|
Tunable |
No |
Evaluatable |
Yes |
#
Upper limit —
upper limit
Real number
Details
A limit value in the form of a finite real scalar.
Default value |
|
Program usage name |
|
Tunable |
Yes |
Evaluatable |
Yes |