Simulink Reference    
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

A 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 block 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. Note that if this parameter is not zero, the simulation must use a fixed-step solver to ensure accurate clock updates.

Characteristics

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


  Chirp Signal Combinatorial Logic