필터 지우기
필터 지우기

Why Execution Order of Sum block is not shown in the Simulink model?

조회 수: 3 (최근 30일)
Fahad
Fahad 2023년 6월 1일
댓글: Fahad 2024년 2월 12일
Following is a snapshot of my simulink model.
The Information Overlays in the Simulink provides the Execution Order of the blocks.
In my model for some blocks the execution order is shown but for others it is not. I am curious why it is so? (why execution order of Sum and Relational Operators are not visible below?)

답변 (1개)

Paul
Paul 2023년 6월 1일
It's possible that Simulink has determined that those blocks don't need to be executed (I think there is a Block Reduction optimization option). What happens if a Scope is attached to the output of a Sum block so that the Sum block must execute? Does that make that Sum block show up in the execution order?
  댓글 수: 5
Paul
Paul 2023년 6월 4일
Don't know when "Reduced Blocks" was added to Information Overlays. I'm using 2022a.
Again, adding the Scope is only intended as test to see if the block in quesition is being reduced out of model, in order to answer your question of why a block is not shown in the execution order. At this point, I'm only guessing that the blocks in question are being reduced out of the model.
Another option to determine if block reduction is causing the blocks in question to not be shown in the exeuction order is to turn off block reduction. In R2022a, block reduction can be turned off by going to
Model Settings -> Simulation Target -> Advanced Parameters
and uncheck Block Reduction. I assume it would be the same in 2020a
Here's the R2020a block reduction doc page with more information.
Fahad
Fahad 2024년 2월 12일
So, I placed the whole logic in question inside a Function call subsystem which is triggered by Function call generator and after that the Execution Order is visible as shown in the attached pic.

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 Schedule Model Components에 대해 자세히 알아보기

제품


릴리스

R2020a

Community Treasure Hunt

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

Start Hunting!

Translated by