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

13 views (last 30 days)
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 Comments
Dane
Dane on 10 Apr 2023
Edited: Dane on 10 Apr 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.

Sign in to comment.

Answers (1)

Fangjun Jiang
Fangjun Jiang on 11 Apr 2023
This might be it.

Categories

Find more on Simulink Functions 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!