This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Sample Time

Control block execution rates, assign discrete, continuous, or hybrid sample time


Simulink.BlockDiagram.getSampleTimesReturn all sample times associated with model
Simulink.Block.getSampleTimesReturn sample time information for a block


Simulink.SampleTimeObject containing sample time information
Simulink.BlockPortDataDescribe block input or output port

Examples and How To

Specify Sample Time

Methods for programmatically and interactively specifying and accessing sample time information.

View Sample Time Information

How to access sample time information interactively.

Resolve Rate Transitions

How Simulink® resolves rate transitions between blocks caused by different block sample times.


What Is Sample Time?

The sample time of a block indicates when the block generates outputs or updates its internal state.

Types of Sample Time

Understand how Simulink represents and categorizes sample times.

Blocks for Which Sample Time Is Not Recommended

Best practices for modeling sample times.

Sample Times in Subsystems

How Simulink calculates the sample times of virtual and enabled subsystems.

Sample Times in Systems

How Simulink calculates the sample times of discrete and hybrid systems.

Block Compiled Sample Time

How to access the sample rate of a block during simulation.

How Propagation Affects Inherited Sample Times

How blocks inherit sample times.

Backpropagation in Sample Times

How backward propagation of sample time works.

Specify Execution Domain

Enforce discrete dynamics for a model or subsystem