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

3 visualizaciones (últimos 30 días)
BBBC
BBBC el 30 de Mzo. de 2021
Respondida: Aashray el 19 de Jun. de 2025
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.

Respuestas (1)

Aashray
Aashray el 19 de Jun. de 2025
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.

Categorías

Más información sobre Simulink en Help Center y File Exchange.

Etiquetas

Community Treasure Hunt

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

Start Hunting!

Translated by