Borrar filtros
Borrar filtros

Switching cases in simulink

5 visualizaciones (últimos 30 días)
Tommy
Tommy el 6 de Nov. de 2014
Comentada: Tommy el 9 de Nov. de 2014
Hi Everyone
I have a question regarding to Simulink.
Is there a way to switch between two transfer function block based on the simulation time.
For example, when t <= 100, input signal will flow into the first transfer function, when t > 100, input signal will flow into the other transfer function block.
Please advise me.
Thank you for your help.
Tommy

Respuesta aceptada

Orion
Orion el 9 de Nov. de 2014
Not exactly,
the clock block outputs the current running time when you simulate a model. (0, 0.01, 0.02,... if you simulate in fixed-step with a sample time of 0.01 s.)
the '10' in the editor is the final time of the simulation.
if you want to change the time parameters of the simulation, make some changes in the configuration of the model.
Simulation->Configuration parameters (or ctrl+E).
  1 comentario
Tommy
Tommy el 9 de Nov. de 2014
Thank you very much for your help, Orion.

Iniciar sesión para comentar.

Más respuestas (1)

Orion
Orion el 6 de Nov. de 2014
just use a switch and 2 transfer functions
  1 comentario
Tommy
Tommy el 9 de Nov. de 2014
May I ask does the 'Clock' block represents the simulation time that is set at the top of the diagram (The '10' next to the record button) ?

Iniciar sesión para comentar.

Categorías

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

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by