Skip to content
MathWorks - Mobile View
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
MathWorks
  • 製品
  • ソリューション
  • アカデミア
  • サポート
  • コミュニティ
  • イベント
  • MATLAB を入手する
  • MathWorks アカウントへのサインインMathWorks アカウントへのサインイン
  • Access your MathWorks Account
    • マイ アカウント
    • コミュニティのプロファイル
    • ライセンスを関連付ける
    • サインアウト

ビデオ・Webセミナー

  • MathWorks
  • ビデオ
  • ビデオ ホーム
  • 検索
  • ビデオ ホーム
  • 検索
  • 営業へのお問い合わせ
  • 評価版
2:06 Video length is 2:06.
  • Description
  • Full Transcript
  • Related Resources

How to Use Sample Times in Simulink

Many engineering applications require control over when the block updates and produces output. Simulink® provides a way to do this by allowing you to set the sample time or rate for discrete and hybrid systems. You can further understand and visualize sample times in the model by using annotations, colors, and the Timing Legend. Colors and annotations relate to different sample time groups existing in the model. The Timing Legend gives you an interactive way to identify rate, rate types, and rate sources, and navigate to them in the model.

Many engineering applications require control over when the block updates and produces output. Simulink provides a way to do this by allowing you to set the sample time for discrete, continuous, and multi-rate components.

This model of a fuel control system has sample times set to control when the discrete, continuous, and multi-rate components are updated.

Sample time is set as a parameter in the block dialog. You can also set the sample time value to be inherited. Setting the sample time to be inherited allows that block’s sample time to be controlled by the block it’s connected to.

You can understand and visualize sample times in the model by using annotations, colors, and the Timing Legend. Colors and annotations relate to different sample time groups existing in the model. In this model, we can see that the subsystem related to fuel rate control is discrete and the subsystem related to engine gas dynamics is multi-rate.

When we highlight the continuous rate in the model, we can identify our plant – the Engine Gas Dynamics subsystem.

But why is Engine Gas Dynamics multi-rate? It doesn’t have the second discrete rate. But it does have the first. We can now highlight the origin to learn what block is driving this rate. The highlighting helps us identify where in the model the rate is. Now that we’ve identified the block, we can decide whether we want to keep it discrete.

If I highlight the Triggered rate, I see that Fuel Rate Control subsystem contains it, yet that subsystem is not multi-rate. And triggered sample times, such as a function call being sent, are always a subset of another sample time like the discrete sample time. So, therefore, it won’t change the subsystem to multi-rate. The same thing is true for a constant sample time in a component.

Sample times are a fundamental concept in Simulink, because it is one of the main ways to control when a block updates and outputs its value. And understanding how sample times operate can help you better understand your model.

Related Products

  • Simulink

Learn more about Sample Time
Learn more about Run-Time Software Modeling (6 videos)
Learn more about Simulink

Bridging Wireless Communications Design and Testing with MATLAB

Read white paper

Feedback

Featured Product

Simulink

  • Request Trial
  • Get Pricing

Up Next:

4:26
When and How to Use a Data Dictionary

Related Videos:

36:42
Simulink: Tips and Tricks
41:49
How to Develop Interactive User Interfaces for Simulink...
8:40
Use of Model-Based Design and Polyspace Products by Solar...
2:38
Model-Based Design Applied: Students Use Model-Based Design...

View more related videos

MathWorks - Domain Selector

Select a Web Site

Choose a web site to get translated content where available and see local events and offers. Based on your location, we recommend that you select: .

  • Switzerland (English)
  • Switzerland (Deutsch)
  • Switzerland (Français)
  • 中国 (简体中文)
  • 中国 (English)

You can also select a web site from the following list:

How to Get Best Site Performance

Select the China site (in Chinese or English) for best site performance. Other MathWorks country sites are not optimized for visits from your location.

Americas

  • América Latina (Español)
  • Canada (English)
  • United States (English)

Europe

  • Belgium (English)
  • Denmark (English)
  • Deutschland (Deutsch)
  • España (Español)
  • Finland (English)
  • France (Français)
  • Ireland (English)
  • Italia (Italiano)
  • Luxembourg (English)
  • Netherlands (English)
  • Norway (English)
  • Österreich (Deutsch)
  • Portugal (English)
  • Sweden (English)
  • Switzerland
    • Deutsch
    • English
    • Français
  • United Kingdom (English)

Asia Pacific

  • Australia (English)
  • India (English)
  • New Zealand (English)
  • 中国
    • 简体中文Chinese
    • English
  • 日本Japanese (日本語)
  • 한국Korean (한국어)

Contact your local office

  • 営業へのお問い合わせ
  • 評価版

MathWorks

Accelerating the pace of engineering and science

MathWorksはエンジニアや研究者向け数値解析ソフトウェアのリーディングカンパニーです。

ディスカバー…

製品を見る

  • MATLAB
  • Simulink
  • 学生向けソフトウェア
  • ハードウェア サポート
  • File Exchange

製品評価版の入手または製品の購入

  • ダウンロード
  • 評価版ソフトウェア
  • 営業へのお問い合わせ
  • 価格とライセンス
  • MathWorksストア

使い方を学ぶ

  • ドキュメンテーション
  • チュートリアル
  • 例
  • ビデオ・Webセミナー
  • トレーニング

サポートを受ける

  • インストールのヘルプ
  • MATLAB Answers
  • 技術コンサルティング
  • ライセンスセンター
  • サポートへのお問い合わせ

MathWorks について

  • 採用情報
  • ニュースルーム
  • 社会貢献
  • ユーザー事例
  • MathWorks について
  • Select a Web Site United States
  • トラストセンター
  • 商標
  • プライバシー ポリシー
  • 違法コピー防止
  • アプリケーション ステータス

© 1994-2022 The MathWorks, Inc.

  • Facebook
  • Twitter
  • Instagram
  • YouTube
  • LinkedIn
  • RSS

MATLAB を語ろう