Simulink Event Scheduler Help: Sequential Aperiodic Partitions

1 回表示 (過去 30 日間)
Brandon
Brandon 2024 年 7 月 25 日
回答済み: Sivsankar 2024 年 8 月 6 日
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 Center および File ExchangeSchedule Model Components についてさらに検索

製品


リリース

R2022b

Community Treasure Hunt

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

Start Hunting!

Translated by