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 CenterFile Exchange에서 Simulink에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by