Effacer les filtres
Effacer les filtres

Simulink Block execution information problem

3 vues (au cours des 30 derniers jours)
Troy Vie
Troy Vie le 6 Déc 2013
Commenté : Troy Vie le 10 Déc 2013
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.

Réponse acceptée

Guy Rouleau
Guy Rouleau le 6 Déc 2013
  2 commentaires
Troy Vie
Troy Vie le 9 Déc 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 le 10 Déc 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.

Connectez-vous pour commenter.

Plus de réponses (1)

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

Connectez-vous pour commenter.

Catégories

En savoir plus sur Modeling dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by