How to create a list of all variable names/block parameter values used in a Simulink model?

10 visualizaciones (últimos 30 días)
I have a large simulink model with hundreds of block parameter values that need defined (example: constant has value of "FilterDeadTime" but this value isn't defined in the model or base workspace). I would like to get a list of all variables/block parameter values defined in the model so I can extract that data from a dataset that has all the values that my model could have. Is there an efficient way to list all variables defined in a Simulink model?
  2 comentarios
Dane el 10 de Abr. de 2023
Editada: Dane el 10 de Abr. de 2023
Sorry, I removed the mention of the hex file data extraction to avoid confusion. I have a tool that extracts constants, tables, etc from a controller hex file. My model only needs a fraction this data to run but is still too much to manually go through each block and define them. I need a programmatic way to search a simulink model for block parameter values that are "design data" that I need to define with the controller hex data.

Iniciar sesión para comentar.

Respuestas (1)

Fangjun Jiang
Fangjun Jiang el 11 de Abr. de 2023
This might be it.


Más información sobre Programmatic Model Editing en Help Center y File Exchange.

Community Treasure Hunt

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

Start Hunting!

Translated by