Simulink Reference Previous page   Next Page
Clock

Display and provide the simulation time

Library

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.

Data Type Support

The Clock block outputs a real-valued signal of type double.

Parameters and Dialog Box

Display time
Use the Display time check box to display the current simulation time inside the Clock icon.
Decimation
The Decimation parameter value is the increment at which the clock is updated; it can be any positive integer. For example, if the decimation is 1000, then, for a fixed integration step of 1 millisecond, the clock updates at 1 second, 2 seconds, and so on.

Characteristics

Sample Time
Continuous
Scalar Expansion
N/A
Dimensionalized
No
Zero Crossing
No


Previous page  Chirp Signal Combinatorial Logic Next page

© 1994-2005 The MathWorks, Inc.