필터 지우기
필터 지우기

Simulink Block execution information problem

조회 수: 3 (최근 30일)
Troy Vie
Troy Vie 2013년 12월 6일
댓글: Troy Vie 2013년 12월 10일
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에서 Modeling에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by