Simulink Block execution information problem

1 次查看(过去 30 天)
Hi,
I have a question about the way we can get the block execution information in Simulink.
For example, I have the following model. with different input values, the output depends on the switch connected with 1 or 2.
but with one input pair (In1, In2, In3) assignment, only part of the model will be executed. Such as when In3 = 1, the switch will be connected the cal1, and the block cal2 actually not execute or simulate this time.
Is there any way I can check which blocks in the model actually executed in one simulation?
The ideal expect result should like following: based on current input assignment the involved Block list:
In1,
In2,
In3,
Cal1,
Switch,
Out1.
Thanks.

采纳的回答

Guy Rouleau
Guy Rouleau 2013-12-6
  2 个评论
Troy Vie
Troy Vie 2013-12-9
Hi Guy Rouleau:
Thank you for your reply. I will check your answer, and if I have further question, I will let you know.
Troy Vie
Troy Vie 2013-12-10
Hi Guy Rouleau:
I checked those website you recommended, but it is not what I want.
Actually, I want to know is there any place or function from Matlab/Simulink that I can obtain the model execution related informations.
Take the above one as an example, the switch can connect either of the input into one simulation. it means there will be another input actually be disabled in the same simulation. If this is the case, the disabled input actually is what I am not interested in. Then How can I obtain the rest of the model which contains all of the blocks executed?
Best regards.

请先登录,再进行评论。

更多回答(1 个)

Paul
Paul 2013-12-6
I'm sorry I'm confused by your question could you explain what you want to do ?
  2 个评论
Troy Vie
Troy Vie 2013-12-9
Hi Paul:
sorry for the confusion.
What I want to is simple. no matter how complex the original model is. With an input, only part of the model actually executed. I only want to obtain which blocks in the model were executed.
Troy Vie
Troy Vie 2013-12-10
Hi Paul:
In brief, I want to see the run-time simulation information. e.g. which blocks are involved in a simulation (with a given input). If I can know the block execution sequence, it will be better.
Do you know any way to this?

请先登录,再进行评论。

类别

Help CenterFile Exchange 中查找有关 Block Libraries 的更多信息

Community Treasure Hunt

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

Start Hunting!

Translated by