Is there a way to eliminate rate scheduler task from generated code when we have two different time sampling for blocks in model ?

2 次查看(过去 30 天)
Subsystem blocks with different sample times

回答(1 个)

Jonas
Jonas 2021-10-15
Structure your model as an Export-Function.
Each task will appear in generated code without task scheduler. The task scheduler needs to be added externally when doing simulations, with a Stateflow chart for instance.

类别

Help CenterFile Exchange 中查找有关 Simulink Coder 的更多信息

产品


版本

R2020b

Community Treasure Hunt

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

Start Hunting!

Translated by