Event triggered subsystems in Simulink

Good morning,
I have two different dynamic models in the same file and I would like that thee second block (which is the 2nd model) executes when the first block output reaches/exceeds certain values and stops when this output goes down below this threshold. Both blocks have other inputs and outputs but the above-mentioned signal determines the execution. Do you have any idea how to deal with this? Thanks in advance.
Joseph

 Respuesta aceptada

Sebastian Castro
Sebastian Castro el 13 de Mzo. de 2015

0 votos

Joseph,
You could use conditional subsystems, which include Enabled and Triggered subsystems.
Enabled subsystems have their own sample time, so they will continuously execute as long as the condition (your threshold, for instance) is true.
Triggered subsystems will execute once every time there is an "edge" or transition in the value of the condition -- for example, on the rising edge when the condition goes from false to true.
- Sebastian

1 comentario

Joseph  Agius
Joseph Agius el 13 de Mzo. de 2015
Thanks, I've used an enabled subsystem and it worked as I desired. Thanks once again.
Joseph

Iniciar sesión para comentar.

Más respuestas (0)

Categorías

Más información sobre Schedule Model Components en Centro de ayuda y File Exchange.

Preguntada:

el 13 de Mzo. de 2015

Comentada:

el 13 de Mzo. de 2015

Community Treasure Hunt

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

Start Hunting!

Translated by