Is there any way to get a list of variables required for simulating a Simulink model?

11 vues (au cours des 30 derniers jours)
I want to get a list of variables needed to run a Simulink simulation, for documentation purposes.

Réponse acceptée

Jyotish Robin
Jyotish Robin le 27 Mar 2017
Modifié(e) : Jyotish Robin le 28 Mar 2017
Hi Damon!
What you are looking for is 'Model Explorer'.
You can use the Model Explorer to view, modify, and add elements of Simulink® models and workspace variables. In the Model Explorer, you can get a list of variables that a model or block uses.
The Model Explorer lets you focus on specific elements (for example, blocks, signals, and properties) without navigating through the model or chart.
Take a look at the following link to know more about 'Model Explorer':
The below link specifically talks about 'finding variables used by model':
Hope the above suggestions help :)
  2 commentaires
Damon Delorenzis
Damon Delorenzis le 27 Mar 2017
Modifié(e) : Damon Delorenzis le 27 Mar 2017
Thank you Jyotish for your answer.
I had already seen the Model Explorer. But with the Model Explorer there is no summary list of variables needed to run a model, you have to go looking for the variables. For instance, I have an integrator block buried two levels down in a subsystem, and there is an Initial Condition specified by a variable in that integrator, and I don't see that variable in Model Explorer unless I go looking for it.
I was hoping to find a sort of summary table of variables needed to be initialized to run a model.
Also FYI the first link in your reply does not seem to work.
Jyotish Robin
Jyotish Robin le 30 Mar 2017
Maybe you could take a look at Simulink.findVars functionality. The following link takes you there:

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Simulink Functions dans Help Center et File Exchange

Produits

Community Treasure Hunt

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

Start Hunting!

Translated by