Simulink Reference Previous page   Next Page
Digital Clock

Output simulation time at the specified sampling interval

Library

Sources

Description


The Digital Clock block outputs the simulation time only at the specified sampling interval. At other times, the output is held at the previous value.

Use this block rather than the Clock block (which outputs continuous time) when you need the current time within a discrete system.

Data Type Support

A Digital Clock block outputs a real signal of type double.

Parameters and Dialog Box

Sample time
The sampling interval. The default value is 1 second. See Specifying Sample Time in the online documentation for more information.

Characteristics

Sample Time
Discrete
Scalar Expansion
No
Dimensionalized
No
Zero Crossing
No


Previous page  Derivative Direct Look-Up Table (n-D) Next page

Learn more about the latest releases of MathWorks products:

 © 1994-2009 The MathWorks, Inc.    -   Site Help   -   Patents   -   Trademarks   -   Privacy Policy   -   Preventing Piracy   -   RSS