Documentation

This is machine translation

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

Note: This page has been translated by MathWorks. Please click here
To view all translated materals including this page, select Japan from the country navigator on the bottom of this page.

Sample Time

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

Functions

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

Classes

Simulink.SampleTime Object containing sample time information
Simulink.BlockPortData Describe 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.

Print Sample Time Information

Display sample time information when printing a model.

Resolve Rate Transitions

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

Concepts

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.

Was this topic helpful?