Main Content
Counter Limited
Count up and wrap to zero after specified upper limit
Libraries:
Simulink /
Sources
HDL Coder /
Sources
Description
The Counter Limited block counts up until the specified upper limit is reached. Then the counter wraps back to zero, and restarts counting up. The counter always initializes to zero.
Note
This block does not report wrap on overflow warnings during simulation. To report
these warnings, see the Simulink.restoreDiagnostic
reference page. The block does report errors due to wrap on overflow.
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a