Clock
R2026bDisplay and provide simulation time
Libraries:
Simulink /
Sources
Description
The Clock block outputs the current simulation time at each simulation step. This block is useful for other blocks that need the simulation time.
When you need the current time within a discrete system, use the Digital Clock block.
Examples
Extended Examples
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Programmatic Use: Add Block
To add the block programmatically, use the add_block function with one of these library block paths as the source.
"simulink/Sources/Clock"
Example: add_block("simulink/Sources/Clock","myModel/myBlock",MakeNameUnique="on")
Extended Capabilities
Version History
Introduced before R2006a


