How to create a subsystem running at an integer number of sampling rate of its parent's subsystem, which is a function call triggered?

2 次查看(过去 30 天)
Hi,
In Simulink, I have a function-call subsystem running at 10ms. Inside this I want to have a subsystem running at 4 seconds. Can you please advise?
Thanks,

回答(1 个)

Fangjun Jiang
Fangjun Jiang 2020-7-12
If the parent system is "triggered" at 10ms rate, the child system is never going to be able to run at 4s rate. Without special processing (saving states maybe), every time the parent system is triggered, states are reset.
Make it a system running at a regular 10ms sample rate, specify the child system running at regular 4s sample rate.

类别

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

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by