Output simulation time at specified sampling interval
Simulink / Sources
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.
Data Types |
|
Direct Feedthrough |
|
Multidimensional Signals |
|
Variable-Size Signals |
|
Zero-Crossing Detection |
|