| Contents | Index |
Sources
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.
The Clock block outputs a real-valued signal of type double.
For more information, see Data Types Supported by Simulink in the Simulink documentation.

Select this check box to display the current simulation time inside the Clock block icon.
Specify a positive integer for the interval at which Simulink updates the Clock icon when you select Display time.
Suppose that the decimation is 1000. For a fixed integration step of 1 millisecond, the Clock icon updates at 1 second, 2 seconds, and so on.
The following Simulink demos show how to use the Clock block:
Sample Time | Continuous |
Scalar Expansion | N/A |
Dimensionalized | No |
Zero-Crossing Detection | No |

Learn more about Simulink through this collection of videos, articles, technical literature and the Getting Started with Simulink Guide.
| © 1984-2012- The MathWorks, Inc. - Site Help - Patents - Trademarks - Privacy Policy - Preventing Piracy - RSS |