Simulink Event Scheduler Help: Sequential Aperiodic Partitions

10 次查看(过去 30 天)
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?

回答(1 个)

Sivsankar
Sivsankar 2024-8-6
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 .

类别

Help CenterFile Exchange 中查找有关 Schedule Model Components 的更多信息

产品


版本

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by