Simulink Block execution information problem

1 view (last 30 days)
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.

Accepted Answer

Guy Rouleau
Guy Rouleau on 6 Dec 2013
  2 Comments
Troy Vie
Troy Vie on 9 Dec 2013
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 on 10 Dec 2013
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.

Sign in to comment.

More Answers (1)

Paul
Paul on 6 Dec 2013
I'm sorry I'm confused by your question could you explain what you want to do ?
  2 Comments
Troy Vie
Troy Vie on 9 Dec 2013
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 on 10 Dec 2013
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?

Sign in to comment.

Categories

Find more on Modeling in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!