How to display a graph from a specific time in Simulink?

3 ビュー (過去 30 日間)
BBBC
BBBC 2021 年 3 月 30 日
回答済み: Aashray 2025 年 6 月 19 日
Hey there!
I have a question on how to show a scope in Simulink from a specific time, for example; In the attached graph I would like to show the graph from 0.3 seconds, I thought I could solve it with the offset parameter of the display, but this does not do what I want, it only moves the graph and it starts in 0.3 seconds, but the start is still shown of the graph which is precisely what I do not want to graph.
If anyone could help me, I thanks in advance.

回答 (1 件)

Aashray
Aashray 2025 年 6 月 19 日
Hi @BBBC,
I faced a similar issue once, and after some experimentation, I found that we can use Enabled Subsystem. Here is how I built the system:
  1. Add a Clock block to track simulation time.
  2. Use a “Compare To Constant” block (>= 0.3) to generate an enable signal once time reaches 0.3 seconds.
  3. Feed this enable signal into the Enable port of an Enabled Subsystem.
  4. Inside the Enabled Subsystem, keep the desired system.
  5. Connect the original signal to the input of the Enabled Subsystem.
I have attached the model I made for your reference.

カテゴリ

Help Center および File ExchangeSimulink についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by