How do I decide the order of execution of multiple packet output blocks in Real time windows Target model ?

2 views (last 30 days)
I have a model in which I have multiple Packet Output blocks and I want to know the order of execution of them in real time. And if I want to change it, I should be able to do so. I tried looking at the generated C source code but it is too big to analyse and find out which things happen first. Is there a graphic way to know the order of execution of events in a model and if yes How do I change it ?

Answers (1)

Jan Houska
Jan Houska on 2 Mar 2015
Block execution order control is a Simulink feature, and this order also applies to the generated code. To display the execution order, please go to Display, Blocks, Sorted Execution Order in model menu. To change the execution order, please go to block context menu, Properties, Priority (the lower the number, the higher the execution priority). For more details, please search the Simulink documentation for Control and Display the Sorted Order.

Community Treasure Hunt

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

Start Hunting!