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

조회 수: 13 (최근 30일)
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
Dane
Dane 2023년 4월 10일
편집: Dane 2023년 4월 10일
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.

댓글을 달려면 로그인하십시오.

답변 (1개)

Fangjun Jiang
Fangjun Jiang 2023년 4월 11일
This might be it.

카테고리

Help CenterFile Exchange에서 Simulink Functions에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by