Main Content
Digital Clock
Output simulation time at specified sampling interval
Libraries:
Simulink /
Sources
Description
The Digital Clock block outputs the simulation time only at the specified sampling interval. At other times, the block holds the output at the previous value. To control the precision of this block, use the Sample time parameter in the block dialog box.
Use this block rather than the Clock block, which outputs continuous time, when you need the current simulation time within a discrete system.
Examples
Ports
Output
Parameters
Block Characteristics
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|
Extended Capabilities
Version History
Introduced before R2006a