Simulink Event Scheduler Help: Sequential Aperiodic Partitions

1 visualización (últimos 30 días)
Brandon
Brandon el 25 de Jul. de 2024
Respondida: Sivsankar el 6 de Ag. de 2024
Hi,
I'm struggling to manage two cascading subsystems which are both aperiodic partitions. The first subsystem is triggered by the input write event. I want the second subsystem to trigger immediately after (once the output from the first is available.) They are separate partitions. Simulink diagnostics forced me to insert this rate transfer block which I don't entirely understand. The simulation currently runs but the outputs from the second subsystem are empty. Help?

Respuestas (1)

Sivsankar
Sivsankar el 6 de Ag. de 2024
Hi Brandon,
I understand that you are having difficulty in capturing what the Rate Transition block does. The Rate Transition block transfers data from the output of a block operating at one rate to the input of a block operating at a different rate. Essentially blocks operating at different sample time. You can leverage the documentation on Rate Transition blocks as follows:
Since you have not shared your model, I could suggest some troubleshooting methods that may help you:
  • Ensure that the parameter Ensure data integrity during data transfer is selected in the Rate Transition block.
  • You can attach a scope to the signal with the output from the first subsystem to verify if it triggers upon input and is working as expected. You can also add a scope to the input signal of the second subsystem to ensure that it is receiving the expected data.
  • You can see the execution order of the blocks by going to the information overlays section in the debug tab. See if it is the desired order of execution.
  • Keep in mind that the execution order is such that the first subsystem completes before the second one starts.
Hope any of these workarounds may help.
Thanks .

Categorías

Más información sobre Schedule Model Components en Help Center y File Exchange.

Productos


Versión

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by